Package kiyut.sketsa.options
Class CodeColoringOptions
- java.lang.Object
-
- kiyut.sketsa.options.AbstractOptions
-
- kiyut.sketsa.options.CodeColoringOptions
-
- All Implemented Interfaces:
Options
public class CodeColoringOptions extends AbstractOptions
Implementation of Code Coloring Options- Author:
- Kiyut
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYNTAX_FONT_MAP_PROPERTYstatic StringSYNTAX_FONT_PROPERTYstatic StringSYNTAX_FOREGROUND_MAP_PROPERTYstatic StringSYNTAX_FOREGROUND_PROPERTY-
Fields inherited from class kiyut.sketsa.options.AbstractOptions
DEFAULT_NODE_NAME, nodeName
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCodeColoringOptions()Creates a new instance of Preferences
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CodeColoringOptionsgetInstance()Returns the single instance, creating one if it's the first time this method is called.FontgetSyntaxFont(String syntaxName)Map<String,Font>getSyntaxFontMap()ColorgetSyntaxForeground(String syntaxName)Map<String,Color>getSyntaxForegroundMap()protected voidretrieve()voidsetSyntaxFont(String syntaxName, Font font)voidsetSyntaxFontMap(Map<String,Font> syntaxFontMap)voidsetSyntaxForeground(String syntaxName, Color color)voidsetSyntaxForegroundMap(Map<String,Color> syntaxForegroundMap)protected voidstore()-
Methods inherited from class kiyut.sketsa.options.AbstractOptions
addPropertyChangeListener, firePropertyChange, getPreferences, removePropertyChangeListener
-
-
-
-
Field Detail
-
SYNTAX_FONT_MAP_PROPERTY
public static final String SYNTAX_FONT_MAP_PROPERTY
- See Also:
- Constant Field Values
-
SYNTAX_FOREGROUND_MAP_PROPERTY
public static final String SYNTAX_FOREGROUND_MAP_PROPERTY
- See Also:
- Constant Field Values
-
SYNTAX_FONT_PROPERTY
public static final String SYNTAX_FONT_PROPERTY
- See Also:
- Constant Field Values
-
SYNTAX_FOREGROUND_PROPERTY
public static final String SYNTAX_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static CodeColoringOptions getInstance()
Returns the single instance, creating one if it's the first time this method is called.- Returns:
- The single instance.
-
store
protected void store()
-
retrieve
protected void retrieve()
-
-