public class AstAxes extends AbstractPlotControlsModel
Modifier and Type | Field and Description |
---|---|
protected boolean |
interior
Axes placement, interior or exterior.
|
protected boolean |
isXSet
Whether X axis is set or unset.
|
protected boolean |
isYSet
Whether Y axis is set or unset.
|
protected boolean |
logX
Whether the X axis should be logarithmic.
|
protected boolean |
logY
Whether the Y axis should be logarithmic.
|
static int |
MAX_WIDTH
Suggested maximum width.
|
static int |
MIN_WIDTH
Suggested minimum width.
|
protected boolean |
showX
Whether the X axis should be shown (different from unset).
|
protected boolean |
showY
Whether the Y axis should be shown (different from unset).
|
protected Color |
xColour
The colour of the X axis.
|
protected double |
xLabelAt
A position to start the X labelling at, not used when axes are
drawn externally.
|
protected int |
xStyle
The line style of the X axis.
|
protected double |
xWidth
The width of the X axis.
|
protected Color |
yColour
The colour of the Y axis.
|
protected double |
yLabelAt
A position to start the Y labelling at, not used when axes are
drawn externally.
|
protected int |
yStyle
The line style of the Y axis.
|
protected double |
yWidth
The width of the Y axis.
|
listeners
Constructor and Description |
---|
AstAxes()
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.
|
boolean |
getForceExterior()
Return if the exterior axes will be forced.
|
boolean |
getInterior()
Return if the suggestion axis placement is interior
|
String |
getTagName()
The name of our enclosing tag.
|
Color |
getXColour()
Get the colour of the X axis.
|
double |
getXLabelAt()
Get the position along the X axis at which labelling is to
start.
|
boolean |
getXLog()
Get whether the X axis is to be drawn with logarithmic spacing.
|
boolean |
getXShown()
Get whether the X axis is to be shown.
|
boolean |
getXState()
Return if the X axis is set or unset.
|
int |
getXStyle()
Get the X axis line style.
|
double |
getXWidth()
Get the X axis line width.
|
Color |
getYColour()
Get the colour of the Y axis.
|
double |
getYLabelAt()
Get the position along the Y axis at which labelling is to
start.
|
boolean |
getYLog()
Get whether the Y axis is to be drawn with logarithmic spacing.
|
boolean |
getYShown()
Get whether the Y axis is to be shown.
|
boolean |
getYState()
Return if the Y axis is set or unset.
|
int |
getYStyle()
Get the Y axis line style.
|
double |
getYWidth()
Get the Y axis line width.
|
void |
setDefaults()
Set object to default state.
|
void |
setForceExterior(boolean forceExterior)
Set whether exterior axes placement should be forced, when
the labelling choice is exterior.
|
void |
setFromString(String name,
String value)
Set the value of a member variable by matching its name to a known
local property string.
|
void |
setInterior(boolean interior)
Set whether the suggested placement for axes is interior.
|
void |
setXColour(Color xColour)
Set the colour of the X axis.
|
void |
setXLabelAt(double xLabelAt)
Set position along the X axis at which to start labelling
(i.e.
|
void |
setXLog(boolean logX)
Set whether the X axis should be drawn with logarithmic spacing.
|
void |
setXShown(boolean showX)
Set whether the X axis should be shown or not.
|
void |
setXState(boolean isXSet)
Set whether the X axis is set or unset (unset implies that all
properties should remain at their AST defaults).
|
void |
setXStyle(int xStyle)
Set the X axis line style.
|
void |
setXWidth(double xWidth)
Set the X axis line width.
|
void |
setYColour(Color yColour)
Set the colour of the Y axis.
|
void |
setYLabelAt(double yLabelAt)
Set position along the Y axis at which to start labelling
(i.e.
|
void |
setYLog(boolean logY)
Set whether the Y axis should be drawn with logarithmic spacing.
|
void |
setYShown(boolean showY)
Set whether the Y axis should be shown or not.
|
void |
setYState(boolean isYSet)
Set whether the Y axis is set or unset (unset implies that all
properties should remain at their AST defaults).
|
void |
setYStyle(int yStyle)
Set the Y axis line style.
|
void |
setYWidth(double yWidth)
Set the Y axis 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 isXSet
protected boolean isYSet
protected boolean showX
protected boolean showY
protected boolean logX
protected boolean logY
protected boolean interior
protected double xLabelAt
protected double yLabelAt
protected Color xColour
protected Color yColour
protected int xStyle
protected int yStyle
protected double xWidth
protected double yWidth
public static int MIN_WIDTH
public static int MAX_WIDTH
public AstAxes()
public void setDefaults()
public void setXState(boolean isXSet)
isXSet
- The new state valuepublic boolean getXState()
public void setYState(boolean isYSet)
isYSet
- The new state valuepublic boolean getYState()
public void setXShown(boolean showX)
showX
- The new shown valuepublic boolean getXShown()
public void setYShown(boolean showY)
showY
- The new shown valuepublic boolean getYShown()
public void setXLog(boolean logX)
logX
- The new logX valuepublic boolean getXLog()
public void setYLog(boolean logY)
logY
- The new logY valuepublic boolean getYLog()
public void setXLabelAt(double xLabelAt)
xLabelAt
- The new position to start labelling.public double getXLabelAt()
public void setYLabelAt(double yLabelAt)
yLabelAt
- The new position to start labelling.public double getYLabelAt()
public void setXColour(Color xColour)
xColour
- The new colour valuepublic Color getXColour()
public void setYColour(Color yColour)
yColour
- The new colour valuepublic Color getYColour()
public void setXWidth(double xWidth)
xWidth
- The new width valuepublic double getXWidth()
public void setYWidth(double yWidth)
yWidth
- The new width valuepublic double getYWidth()
public void setXStyle(int xStyle)
xStyle
- The new style valuepublic int getXStyle()
public void setYStyle(int yStyle)
yStyle
- The new style valuepublic int getYStyle()
public void setInterior(boolean interior)
interior
- Whether to place axes on the interiorpublic boolean getInterior()
public void setForceExterior(boolean forceExterior)
forceExterior
- Whether to force exterior axes.public boolean getForceExterior()
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.