public class ColourStore extends AbstractPlotControlsModel
This model is not directly related an AST plot.
Modifier and Type | Field and Description |
---|---|
protected Color |
colour
The Color.
|
protected String |
tagName
Name of the tag.
|
listeners
Constructor and Description |
---|
ColourStore()
Create an instance with the default color and tag name.
|
ColourStore(String tagName)
Create an instance with the default color.
|
ColourStore(String tagName,
Color colour)
Create an instance with a given colour.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(Element rootElement)
Encode this value in an XML snippet.
|
Color |
getColour()
Get the colour.
|
int |
getIntColour()
Get the colour as an RGB integer (can be used by DefaultGrf).
|
String |
getTagName()
The name of our enclosing tag.
|
void |
setColor(Color colour)
Set the colour.
|
void |
setFromString(String name,
String value)
Set the colour from an integer encode as a String.
|
void |
setIntColour(int icolour)
Set the colour from an RGB integer (supplied from DefaultGrf).
|
void |
setTagName(String tagName)
The name of our enclosing tag.
|
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 Color colour
protected String tagName
public ColourStore()
public ColourStore(String tagName)
public void setColor(Color colour)
public Color getColour()
public void setIntColour(int icolour)
public int getIntColour()
public String getTagName()
public void setTagName(String tagName)
public void encode(Element rootElement)
encode
in interface XMLEncodeDecode
encode
in class AbstractPlotControlsModel
rootElement
- the Element within which the object should
store its configuration.public void setFromString(String name, String value)
setFromString
in class AbstractPlotControlsModel
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.