org.netbeans.api.editor.settings
Class FontColorSettings
java.lang.Object
org.netbeans.api.editor.settings.FontColorSettings
public abstract class FontColorSettings
- extends Object
Fonts and Colors settings are represented by map of
key=<String>fonts and colors syntax name and value=AttributeSet.
The keys for returned AttributeSet are defined by StyleConstants
and
EditorStyleConstants
Supported keys for FontColorSettings are:
- StyleConstants.FontFamily
- StyleConstants.FontSize
- StyleConstants.Bold
- StyleConstants.Italic
- StyleConstants.Foreground
- StyleConstants.Background
- StyleConstants.Underline
- StyleConstants.StrikeThrough
- and all attributes defined in
EditorStyleConstants
Instances of this class should be retrieved from the MimeLookup
for a given mime-type.
This class must NOT be extended by any API clients
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_FONT_COLORS
public static final String PROP_FONT_COLORS
- See Also:
- Constant Field Values
FontColorSettings
public FontColorSettings()
- Construction prohibited for API clients.
getFontColors
public abstract AttributeSet getFontColors(String settingName)
- Gets the font and colors.
- Parameters:
settingName
- font and colors setting name
- Returns:
- AttributeSet describing the font and colors.
getTokenFontColors
public abstract AttributeSet getTokenFontColors(String tokenName)
- Gets the token font and colors.
- Parameters:
tokenName
- token name
- Returns:
- AttributeSet describing the font and colors