public class AstGrid extends AbstractPlotControlsModel
Modifier and Type | Field and Description |
---|---|
protected Color |
colour
The colour of the grid.
|
protected boolean |
isSet
Whether grid is set or unset.
|
static int |
MAX_WIDTH
Suggested maximum width.
|
static int |
MIN_WIDTH
Suggested minimum width.
|
protected boolean |
show
Whether the grid should be shown (different from unset).
|
protected int |
style
The line style of the grid lines.
|
protected double |
width
The width of the grid lines.
|
listeners
Constructor and Description |
---|
AstGrid()
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 of the grid.
|
boolean |
getShown()
Get whether the grid is to be shown.
|
boolean |
getState()
Return if the grid is set or unset.
|
int |
getStyle()
Get the line style.
|
String |
getTagName()
The name of our enclosing tag.
|
double |
getWidth()
Get the line width.
|
void |
setColour(Color colour)
Set the colour of the grid.
|
void |
setDefaults()
Set object to default state.
|
void |
setFromString(String name,
String value)
Set the value of a member variable by matching its name to a known
local property string.
|
void |
setShown(boolean show)
Set whether the grid should be shown or not.
|
void |
setState(boolean isSet)
Set whether the grid is set or unset (unset implies that all properties
should remain at their AST defaults).
|
void |
setStyle(int style)
Set the line style.
|
void |
setWidth(double width)
Set the line width.
|
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 boolean show
protected Color colour
protected int style
protected double width
public static int MIN_WIDTH
public static int MAX_WIDTH
public AstGrid()
public void setDefaults()
public void setState(boolean isSet)
isSet
- The new state valuepublic boolean getState()
public void setShown(boolean show)
show
- The new shown valuepublic boolean getShown()
public void setColour(Color colour)
colour
- The new colour valuepublic Color getColour()
public void setWidth(double width)
width
- The new width valuepublic double getWidth()
public void setStyle(int style)
style
- The new style valuepublic int getStyle()
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.