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:
  • Constructor Details Link icon

    • EditorMinimapOptions Link icon

      public EditorMinimapOptions()
  • Method Details Link icon

    • isAutohide Link icon

      public Boolean isAutohide()
      Returns:
      Control the rendering of minimap.
    • setAutohide Link icon

      public EditorMinimapOptions setAutohide(Boolean autohide)
      Parameters:
      autohide - Control the rendering of minimap.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isEnabled Link icon

      public Boolean isEnabled()
      Returns:
      Enable the rendering of the minimap. Defaults to true.
    • setEnabled Link icon

      public EditorMinimapOptions setEnabled(Boolean enabled)
      Parameters:
      enabled - Enable the rendering of the minimap. Defaults to true.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getMaxColumn Link icon

      public Number getMaxColumn()
      Returns:
      Limit the width of the minimap to render at most a certain number of columns. Defaults to 120.
    • setMaxColumn Link icon

      public EditorMinimapOptions setMaxColumn(Number maxColumn)
      Parameters:
      maxColumn - Limit the width of the minimap to render at most a certain number of columns. Defaults to 120.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isRenderCharacters Link icon

      public Boolean isRenderCharacters()
      Returns:
      Render the actual text on a line (as opposed to color blocks). Defaults to true.
    • setRenderCharacters Link icon

      public EditorMinimapOptions setRenderCharacters(Boolean renderCharacters)
      Parameters:
      renderCharacters - Render the actual text on a line (as opposed to color blocks). Defaults to true.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getScale Link icon

      public Number getScale()
      Returns:
      Relative size of the font in the minimap. Defaults to 1.
    • setScale Link icon

      public EditorMinimapOptions setScale(Number scale)
      Parameters:
      scale - Relative size of the font in the minimap. Defaults to 1.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getSectionHeaderFontSize Link icon

      public Number getSectionHeaderFontSize()
      Returns:
      Font size of section headers. Defaults to 9.
    • setSectionHeaderFontSize Link icon

      public EditorMinimapOptions setSectionHeaderFontSize(Number sectionHeaderFontSize)
      Parameters:
      sectionHeaderFontSize - Font size of section headers. Defaults to 9.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getSectionHeaderLetterSpacing Link icon

      public Number getSectionHeaderLetterSpacing()
      Returns:
      Spacing between the section header characters (in CSS px). Defaults to 1.
    • setSectionHeaderLetterSpacing Link icon

      public EditorMinimapOptions setSectionHeaderLetterSpacing(Number sectionHeaderLetterSpacing)
      Parameters:
      sectionHeaderLetterSpacing - Spacing between the section header characters (in CSS px). Defaults to 1.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isShowMarkSectionHeaders Link icon

      public Boolean isShowMarkSectionHeaders()
      Returns:
      Whether to show MARK: comments as section headers. Defaults to true.
    • setShowMarkSectionHeaders Link icon

      public EditorMinimapOptions setShowMarkSectionHeaders(Boolean showMarkSectionHeaders)
      Parameters:
      showMarkSectionHeaders - Whether to show MARK: comments as section headers. Defaults to true.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isShowRegionSectionHeaders Link icon

      public Boolean isShowRegionSectionHeaders()
      Returns:
      Whether to show named regions as section headers. Defaults to true.
    • setShowRegionSectionHeaders Link icon

      public EditorMinimapOptions setShowRegionSectionHeaders(Boolean showRegionSectionHeaders)
      Parameters:
      showRegionSectionHeaders - Whether to show named regions as section headers. Defaults to true.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getShowSlider Link icon

      public String getShowSlider()
      Returns:
      Control the rendering of the minimap slider. Defaults to mouseover.
    • setShowSlider Link icon

      public EditorMinimapOptions setShowSlider(EMinimapShowSlider showSlider)
      Parameters:
      showSlider - Control the rendering of the minimap slider. Defaults to mouseover.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setShowSlider Link icon

      public EditorMinimapOptions setShowSlider(String showSlider)
      Parameters:
      showSlider - Control the rendering of the minimap slider. Defaults to mouseover.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getSide Link icon

      public String getSide()
      Returns:
      Control the side of the minimap in editor. Defaults to right.
    • setSide Link icon

      public EditorMinimapOptions setSide(EMinimapSide side)
      Parameters:
      side - Control the side of the minimap in editor. Defaults to right.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setSide Link icon

      public EditorMinimapOptions setSide(String side)
      Parameters:
      side - Control the side of the minimap in editor. Defaults to right.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getSize Link icon

      public String getSize()
      Returns:
      Control the minimap rendering mode. Defaults to actual.
    • setSize Link icon

      public EditorMinimapOptions setSize(EMinimapSize size)
      Parameters:
      size - Control the minimap rendering mode. Defaults to actual.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setSize Link icon

      public EditorMinimapOptions setSize(String size)
      Parameters:
      size - Control the minimap rendering mode. Defaults to actual.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.