Class EditorMinimapOptions
java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorMinimapOptions
- All Implemented Interfaces:
Serializable
public class EditorMinimapOptions
extends org.primefaces.shaded.json.JSONObject
implements Serializable
Configuration options for editor minimap
- See Also:
-
Field Summary
Fields inherited from class org.primefaces.shaded.json.JSONObject
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScale()
getSide()
getSize()
setAutohide
(Boolean autohide) setEnabled
(Boolean enabled) setMaxColumn
(Number maxColumn) setRenderCharacters
(Boolean renderCharacters) setSectionHeaderFontSize
(Number sectionHeaderFontSize) setSectionHeaderLetterSpacing
(Number sectionHeaderLetterSpacing) setShowMarkSectionHeaders
(Boolean showMarkSectionHeaders) setShowRegionSectionHeaders
(Boolean showRegionSectionHeaders) setShowSlider
(String showSlider) setShowSlider
(EMinimapShowSlider showSlider) setSide
(EMinimapSide side) setSize
(EMinimapSize size) Methods inherited from class org.primefaces.shaded.json.JSONObject
accumulate, append, clear, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getMapType, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optBooleanObject, optBooleanObject, optDouble, optDouble, optDoubleObject, optDoubleObject, optEnum, optEnum, optFloat, optFloat, optFloatObject, optFloatObject, optInt, optInt, optIntegerObject, optIntegerObject, optJSONArray, optJSONArray, optJSONObject, optJSONObject, optLong, optLong, optLongObject, optLongObject, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
-
Constructor Details
-
EditorMinimapOptions
public EditorMinimapOptions()
-
-
Method Details
-
isAutohide
- Returns:
- Control the rendering of minimap.
-
setAutohide
- Parameters:
autohide
- Control the rendering of minimap.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
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.
-
getSectionHeaderFontSize
- Returns:
- Font size of section headers. Defaults to
9
.
-
setSectionHeaderFontSize
- Parameters:
sectionHeaderFontSize
- Font size of section headers. Defaults to9
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSectionHeaderLetterSpacing
- Returns:
- Spacing between the section header characters (in CSS px). Defaults to
1
.
-
setSectionHeaderLetterSpacing
- Parameters:
sectionHeaderLetterSpacing
- Spacing between the section header characters (in CSS px). Defaults to1
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowMarkSectionHeaders
- Returns:
- Whether to show MARK: comments as section headers. Defaults to
true
.
-
setShowMarkSectionHeaders
- Parameters:
showMarkSectionHeaders
- Whether to show MARK: comments as section headers. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowRegionSectionHeaders
- Returns:
- Whether to show named regions as section headers. Defaults to
true
.
-
setShowRegionSectionHeaders
- Parameters:
showRegionSectionHeaders
- Whether to show named regions as section headers. Defaults totrue
.- 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
- Parameters:
showSlider
- Control the rendering of the minimap slider. Defaults tomouseover
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
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
- 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.
-
getSize
- Returns:
- Control the minimap rendering mode. Defaults to actual.
-
setSize
- Parameters:
size
- Control the minimap rendering mode. Defaults to actual.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setSize
- Parameters:
size
- Control the minimap rendering mode. Defaults to actual.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-