public class GeneralColorsPage extends java.lang.Object implements ColorSettingsPage, InspectionColorSettingsPage, DisplayPrioritySortable, EditorCustomization
EP_NAME| Constructor and Description |
|---|
GeneralColorsPage() |
| Modifier and Type | Method and Description |
|---|---|
void |
customize(EditorEx editor)
Applies this customization to the given editor.
|
java.util.Map<java.lang.String,ColorKey> |
getAdditionalHighlightingTagToColorKeyMap()
Specifies tag-to-'color key' mapping for regions with presentation containing additional colors from color map.
|
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.
|
static java.lang.String |
getDisplayNameText() |
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.
|
DisplayPriority |
getPriority() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdditionalInlineElementToDescriptorMappublic java.lang.String getDisplayName()
ColorAndFontDescriptorsProvidergetDisplayName in interface ColorAndFontDescriptorsProviderpublic javax.swing.Icon getIcon()
ColorSettingsPagegetIcon in interface ColorSettingsPagepublic AttributesDescriptor [] getAttributeDescriptors()
ColorAndFontDescriptorsProviderTextAttributesKey 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 ColorAndFontDescriptorsProviderpublic ColorDescriptor [] getColorDescriptors()
ColorAndFontDescriptorsProviderColorKey
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 ColorAndFontDescriptorsProviderpublic SyntaxHighlighter getHighlighter()
ColorSettingsPagegetHighlighter in interface ColorSettingsPagepublic 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 ColorSettingsPagepublic java.util.Map<java.lang.String,TextAttributesKey> getAdditionalHighlightingTagToDescriptorMap()
ColorSettingsPageColorSettingsPage.getDemoText()) to text attribute keys used to
highlight the regions.getAdditionalHighlightingTagToDescriptorMap in interface ColorSettingsPagepublic java.util.Map<java.lang.String,ColorKey> getAdditionalHighlightingTagToColorKeyMap()
ColorSettingsPagegetAdditionalHighlightingTagToColorKeyMap in interface ColorSettingsPagepublic DisplayPriority getPriority()
getPriority in interface DisplayPrioritySortablepublic void customize(EditorEx editor)
EditorCustomizationcustomize in interface EditorCustomizationeditor - The editor to customizepublic static java.lang.String getDisplayNameText()