Class EditorMinimapOptions
java.lang.Object
org.primefaces.json.JSONObject
com.github.blutorange.primefaces.config.monacoeditor.EditorMinimapOptions
- All Implemented Interfaces:
Serializable
public class EditorMinimapOptions extends org.primefaces.json.JSONObject implements Serializable
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EditorMinimapOptions()
-
Method Summary
Modifier and Type Method Description Number
getMaxColumn()
Number
getScale()
String
getShowSlider()
String
getSide()
Boolean
isEnabled()
Boolean
isRenderCharacters()
EditorMinimapOptions
setEnabled(Boolean enabled)
EditorMinimapOptions
setMaxColumn(Number maxColumn)
EditorMinimapOptions
setRenderCharacters(Boolean renderCharacters)
EditorMinimapOptions
setScale(Number scale)
EditorMinimapOptions
setShowSlider(EMinimapShowSlider showSlider)
EditorMinimapOptions
setShowSlider(String showSlider)
EditorMinimapOptions
setSide(EMinimapSide side)
EditorMinimapOptions
setSide(String side)
Methods inherited from class org.primefaces.json.JSONObject
accumulate, append, doubleToString, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, quote, remove, similar, stringToValue, testValidity, toJSONArray, toString, toString, valueToString, wrap, write
-
Constructor Details
-
EditorMinimapOptions
public EditorMinimapOptions()
-
-
Method Details
-
isEnabled
- Returns:
- Enable the rendering of the minimap. Defaults to
true
.
-
setEnabled
- Parameters:
enabled
- Enable the rendering of the minimap. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMaxColumn
- Returns:
- Limit the width of the minimap to render at most a certain number of columns. Defaults to
120
.
-
setMaxColumn
- Parameters:
maxColumn
- Limit the width of the minimap to render at most a certain number of columns. Defaults to120
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isRenderCharacters
- Returns:
- Render the actual text on a line (as opposed to color blocks). Defaults to
true
.
-
setRenderCharacters
- Parameters:
renderCharacters
- Render the actual text on a line (as opposed to color blocks). Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getScale
- Returns:
- Relative size of the font in the minimap. Defaults to
1
.
-
setScale
- Parameters:
scale
- Relative size of the font in the minimap. Defaults to1
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getShowSlider
- Returns:
- Control the rendering of the minimap slider. Defaults to
mouseover
.
-
setShowSlider
- Parameters:
showSlider
- Control the rendering of the minimap slider. Defaults tomouseover
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setShowSlider
-
getSide
- Returns:
- Control the side of the minimap in editor. Defaults to
right
.
-
setSide
- Parameters:
side
- Control the side of the minimap in editor. Defaults toright
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setSide
-