public class AstStrings extends AbstractPlotControlsModel
Modifier and Type | Field and Description |
---|---|
protected Color |
colour
The colour of text
|
protected Font |
font
The Font used to display text.
|
protected DefaultGrfFontManager |
grfFontManager
Reference to the GrfFontManager object.
|
protected boolean |
isSet
Whether values are set or unset.
|
listeners
Constructor and Description |
---|
AstStrings()
Create a empty instance.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(Element rootElement)
Description of the Method
|
String |
getAstOptions()
Get the AST plot options description of this object.
|
Color |
getColour()
Get the colour.
|
Font |
getFont()
Get the Font used.
|
boolean |
getState()
Return if this object is set or unset.
|
String |
getTagName()
The name of our enclosing tag.
|
void |
setColour(Color colour)
Set the colour.
|
void |
setDefaults()
Set/reset all values to their defaults.
|
void |
setFont(Font font)
Set the Font to be used.
|
void |
setFromString(String name,
String value)
Set the value of a member variable by matching its name to a known
local property string.
|
void |
setState(boolean isSet)
Set whether this objects state is set or unset (unset implies
that all properties should remain at their AST defaults).
|
String |
toString()
Get a string representation of the AST options.
|
addChangeListener, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, booleanFromString, booleanToString, colorFromString, colorToString, decode, doubleFromString, doubleToString, fireChanged, fontFromString, fontToString, getChildren, getElementName, getElementValue, intFromString, intToString, longFromString, longToString, removeChangeListener
protected boolean isSet
protected Font font
protected Color colour
protected DefaultGrfFontManager grfFontManager
public AstStrings()
public void setDefaults()
public void setState(boolean isSet)
isSet
- The new state valuepublic boolean getState()
public void setFont(Font font)
font
- The new font valuepublic Font getFont()
public void setColour(Color colour)
colour
- The new colour valuepublic Color getColour()
public String getAstOptions()
public String toString()
public String getTagName()
public void encode(Element rootElement)
encode
in interface XMLEncodeDecode
encode
in class AbstractPlotControlsModel
rootElement
- Description of the Parameterpublic void setFromString(String name, String value)
setFromString
in class AbstractPlotControlsModel
name
- The new fromString valuevalue
- The new fromString valueCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.