public class AstTicks extends AbstractPlotControlsModel
Modifier and Type | Field and Description |
---|---|
protected Color |
colour
The colour of the ticks.
|
protected boolean |
isSet
Whether tick marking is set or unset.
|
protected boolean |
logSpacingSet
Whether to apply the log spacing values, or leave at the context
default (on for logplot, off otherwise).
|
protected double |
majorXTicklen
Length of the major tick marks of the X axis.
|
protected double |
majorYTicklen
Length of the major tick marks of the Y axis.
|
static double |
MAX_LENGTH
Suggested maximum length of tick mark.
|
static double |
MIN_LENGTH
Suggested minimum length of tick mark.
|
protected int |
minorXDivisions
Number of minor divisions to shown between major tick marks on the X
axis (0 if not set).
|
protected double |
minorXTicklen
Length of the minor tick marks of the X axis.
|
protected int |
minorYDivisions
Number of minor divisions to shown between major tick marks on the Y
axis (0 if not set).
|
protected double |
minorYTicklen
Length of the minor tick marks of the X axis.
|
protected boolean |
show
Whether ticks mark should be shown (different from unset).
|
static double |
STEP_LENGTH
Suggested step (resolution) between tick mark lengths.
|
protected int |
style
The style of line used for tickmarks.
|
protected boolean |
tickAll
Whether to tick all axes, or just the main ones.
|
protected double |
width
The width of the lines used for tickmarks.
|
protected double |
xGap
The gap between X axis major ticks (set to BAD if not set).
|
protected int |
xLogGap
The gap between X axis major ticks (set to 0 if not set),
when drawing with log spacing.
|
protected boolean |
xLogSpacing
Whether X tick mark should be shown with log spacing.
|
protected double |
yGap
The gap between Y axis major ticks (set to BAD if not set).
|
protected int |
yLogGap
The gap between Y axis major ticks (set to 0 if not set),
when drawing with log spacing.
|
protected boolean |
yLogSpacing
Whether Y tick mark should be shown with log spacing.
|
listeners
Constructor and Description |
---|
AstTicks()
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 tick marks.
|
boolean |
getLogSpacingSet()
Get whether the log spacing values are being applied.
|
double |
getMajorXTicklength()
Get the length of the X axis major tick marks.
|
double |
getMajorYTicklength()
Get the length of the Y axis major tick marks.
|
int |
getMinorXDivisions()
Get the number of minor divisions between major ticks on the X axis.
|
double |
getMinorXTicklength()
Get the length of the X axis minor tick marks.
|
int |
getMinorYDivisions()
Get the number of minor divisions between major ticks on the Y axis.
|
double |
getMinorYTicklength()
Get the length of the Y axis minor tick marks.
|
boolean |
getShown()
Get whether the tick marks are to be shown.
|
boolean |
getState()
Return whether values are set.
|
double |
getStyle()
Get the line style.
|
String |
getTagName()
The name of our enclosing tag.
|
boolean |
getTickAll()
Get whether we're ticking all the axes or just the ones adjacent to the
number labels.
|
double |
getWidth()
Get the line width.
|
double |
getXGap()
Get the X gap between major ticks.
|
int |
getXLogGap()
Get the gap power of 10 for the major ticks on an X log axis.
|
boolean |
getXLogSpacing()
Get whether to use log spacing along X axis.
|
double |
getYGap()
Get the Y gap between major ticks.
|
int |
getYLogGap()
Get the gap power of 10 for the major ticks on an Y log axis.
|
boolean |
getYLogSpacing()
Get whether to use log spacing along Y axis.
|
void |
setColour(Color colour)
Set the colour of the tick marks.
|
void |
setDefaults()
Set all values to their defaults.
|
void |
setFromString(String name,
String value)
Set the value of a member variable by matching its name to a known
local property string.
|
void |
setLogSpacingSet(boolean logSpacingSet)
Set whether to apply log spacing setting to axes.
|
void |
setMajorXTicklength(double majorXTicklen)
Set the length of the X axis major ticks.
|
void |
setMajorYTicklength(double majorYTicklen)
Set the length of the Y axis major ticks.
|
void |
setMinorXDivisions(int minorXDivisions)
Set the number of minor divisions, between major ticks, along the X
axis.
|
void |
setMinorXTicklength(double minorXTicklen)
Set the length of the X axis minor ticks.
|
void |
setMinorYDivisions(int minorYDivisions)
Set the number of minor divisions, between major ticks, along the Y
axis.
|
void |
setMinorYTicklength(double minorYTicklen)
Set the length of the Y axis minor ticks.
|
void |
setShown(boolean show)
Set whether the tick marks should be shown or not.
|
void |
setState(boolean isSet)
Set whether any of these values are set, It not set then all tick
marking remains at the default configuration.
|
void |
setStyle(int style)
Set the line style.
|
void |
setTickAll(boolean tickAll)
Set whether to tick all the axes, or just the ones adjacent to the
number labels.
|
void |
setWidth(double width)
Set the line width.
|
void |
setXGap(double xGap)
Set the major gap along the X axis.
|
void |
setXLogGap(int xLogGap)
Set log spacing power of 10 for major ticks along the X axis.
|
void |
setXLogSpacing(boolean xLogSpacing)
Set whether to display ticks using log spacing along X axis.
|
void |
setYGap(double yGap)
Set the major gap along the Y axis.
|
void |
setYLogGap(int yLogGap)
Set log spacing power of 10 for major ticks along the X axis.
|
void |
setYLogSpacing(boolean yLogSpacing)
Set whether to display ticks using log spacing along Y axis.
|
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 boolean logSpacingSet
protected boolean xLogSpacing
protected boolean yLogSpacing
protected Color colour
protected double xGap
protected double yGap
protected int xLogGap
protected int yLogGap
protected double majorXTicklen
protected double majorYTicklen
protected double minorXTicklen
protected double minorYTicklen
protected int minorXDivisions
protected int minorYDivisions
protected int style
protected double width
protected boolean tickAll
public static final double MAX_LENGTH
public static final double MIN_LENGTH
public static final double STEP_LENGTH
public AstTicks()
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 setLogSpacingSet(boolean logSpacingSet)
logSpacingSet
- new value.public boolean getLogSpacingSet()
public void setXLogSpacing(boolean xLogSpacing)
xLogSpacing
- new value.public boolean getXLogSpacing()
public void setYLogSpacing(boolean yLogSpacing)
yLogSpacing
- new value.public boolean getYLogSpacing()
public void setColour(Color colour)
colour
- The new colour valuepublic Color getColour()
public void setXGap(double xGap)
xGap
- The new xGap valuepublic double getXGap()
public void setYGap(double yGap)
yGap
- The new yGap valuepublic double getYGap()
public void setXLogGap(int xLogGap)
xLogGap
- The new xLogGap valuepublic int getXLogGap()
public void setYLogGap(int yLogGap)
yLogGap
- The new yLogGap valuepublic int getYLogGap()
public void setWidth(double width)
width
- The new width valuepublic double getWidth()
public void setStyle(int style)
style
- The new style valuepublic double getStyle()
public void setTickAll(boolean tickAll)
tickAll
- The new tickAll valuepublic boolean getTickAll()
public void setMajorXTicklength(double majorXTicklen)
majorXTicklen
- The new majorXTicklength valuepublic void setMajorYTicklength(double majorYTicklen)
majorYTicklen
- The new majorYTicklength valuepublic double getMajorXTicklength()
public double getMajorYTicklength()
public void setMinorXTicklength(double minorXTicklen)
minorXTicklen
- The new minorXTicklength valuepublic void setMinorYTicklength(double minorYTicklen)
minorYTicklen
- The new minorYTicklength valuepublic double getMinorXTicklength()
public double getMinorYTicklength()
public void setMinorXDivisions(int minorXDivisions)
minorXDivisions
- The new minorXDivisions valuepublic int getMinorXDivisions()
public void setMinorYDivisions(int minorYDivisions)
minorYDivisions
- The new minorYDivisions valuepublic int getMinorYDivisions()
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.