public class XMLColorsPage extends java.lang.Object implements ColorSettingsPage
EP_NAME
Constructor and Description |
---|
XMLColorsPage() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,TextAttributesKey> |
getAdditionalHighlightingTagToDescriptorMap()
Returns the mapping from special tag names surrounding the regions to be highlighted
in the preview text (see
ColorSettingsPage.getDemoText() ) to text attribute keys used to
highlight the regions. |
AttributesDescriptor [] |
getAttributeDescriptors()
Returns the list of descriptors specifying the
TextAttributesKey instances
for which colors are specified in the page. |
ColorDescriptor [] |
getColorDescriptors()
Returns the list of descriptors specifying the
ColorKey
instances for which colors are specified in the page. |
java.lang.String |
getDemoText()
Returns the text shown in the preview pane.
|
java.lang.String |
getDisplayName()
Returns the title of the page, shown as text in the dialog tab.
|
SyntaxHighlighter |
getHighlighter()
Returns the syntax highlighter which is used to highlight the text shown in the preview
pane of the page.
|
javax.swing.Icon |
getIcon()
Returns the icon for the page, shown in the dialog tab.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdditionalHighlightingTagToColorKeyMap, getAdditionalInlineElementToDescriptorMap
public java.lang.String getDisplayName()
ColorAndFontDescriptorsProvider
getDisplayName
in interface ColorAndFontDescriptorsProvider
public javax.swing.Icon getIcon()
ColorSettingsPage
getIcon
in interface ColorSettingsPage
public AttributesDescriptor [] getAttributeDescriptors()
ColorAndFontDescriptorsProvider
TextAttributesKey
instances
for which colors are specified in the page. For such attribute keys, the user can choose
all highlighting attributes (font type, background color, foreground color, error stripe color and
effects).getAttributeDescriptors
in interface ColorAndFontDescriptorsProvider
public ColorDescriptor [] getColorDescriptors()
ColorAndFontDescriptorsProvider
ColorKey
instances for which colors are specified in the page. For such color keys, the user can
choose only the background or foreground color.getColorDescriptors
in interface ColorAndFontDescriptorsProvider
public SyntaxHighlighter getHighlighter()
ColorSettingsPage
getHighlighter
in interface ColorSettingsPage
public java.lang.String getDemoText()
ColorSettingsPage
<class>MyClass</class>
.
The mapping between the names of the tags and the text attribute keys used for highlighting
is defined by the ColorSettingsPage.getAdditionalHighlightingTagToDescriptorMap()
method.getDemoText
in interface ColorSettingsPage
public java.util.Map<java.lang.String,TextAttributesKey> getAdditionalHighlightingTagToDescriptorMap()
ColorSettingsPage
ColorSettingsPage.getDemoText()
) to text attribute keys used to
highlight the regions.getAdditionalHighlightingTagToDescriptorMap
in interface ColorSettingsPage