public class DisplayScheme extends Object
JSVPanel
Modifier and Type | Field and Description |
---|---|
protected String |
displayFont
The name of the display font
|
protected Map<jspecview.common.ScriptToken,Color> |
elementColors
A map of the name of the elements and their colors
|
protected boolean |
isDefault
Specifies if the display scheme is the default
|
protected String |
name
The name of the DisplayScheme
|
protected String |
titleFont
The name of the title font
|
Constructor and Description |
---|
DisplayScheme(String name)
Intialises a DisplayScheme with the given name
|
Modifier and Type | Method and Description |
---|---|
DisplayScheme |
copy()
Returns a copy of this
DisplayScheme |
DisplayScheme |
copy(String newName)
Returns a copy of this
DisplayScheme with a new name |
Color |
getColor(jspecview.common.ScriptToken st)
Gets the color of an element in the scheme
|
Map<jspecview.common.ScriptToken,Color> |
getColors() |
String |
getDisplayFont()
Returns the font name used in this
DisplayScheme |
String |
getName()
Returns the name of the
DisplayScheme |
String |
getTitleFont() |
boolean |
isDefault()
Returns whether or not the
DisplayScheme is the default |
Color |
setColor(jspecview.common.ScriptToken st,
Color color)
Sets the color of an element
|
void |
setDefault(boolean val)
Sets whether the
DisplayScheme is the default |
protected void |
setDefaults() |
void |
setDisplayFont(String fontName)
Sets the font name
|
void |
setName(String name)
Sets the name of the
DisplayScheme |
void |
setTitleFont(String fontName)
Sets the title font name
|
protected String name
protected String titleFont
protected String displayFont
protected Map<jspecview.common.ScriptToken,Color> elementColors
protected boolean isDefault
public DisplayScheme(String name)
name
- the name of the DisplayScheme
public String getName()
DisplayScheme
DisplayScheme
public void setName(String name)
DisplayScheme
name
- the namepublic String getTitleFont()
DisplayScheme
public void setTitleFont(String fontName)
fontName
- the name of the fontpublic String getDisplayFont()
DisplayScheme
DisplayScheme
public void setDisplayFont(String fontName)
fontName
- the name of the fontpublic void setDefault(boolean val)
DisplayScheme
is the defaultval
- is true if default, otherwise falsepublic boolean isDefault()
DisplayScheme
is the defaultpublic Color getColor(jspecview.common.ScriptToken st)
element
- the name of the elementColor
of the elementpublic Color setColor(jspecview.common.ScriptToken st, Color color)
element
- the name of the elementcolor
- the color the element should havepublic DisplayScheme copy(String newName)
DisplayScheme
with a new namenewName
- the new nameDisplayScheme
with a new namepublic DisplayScheme copy()
DisplayScheme
DisplayScheme
protected void setDefaults()