public class Axis extends DomNode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoLabel |
protected boolean |
autoRange |
static DatumRange |
DEFAULT_RANGE |
protected boolean |
drawTickLabels |
protected java.lang.String |
label |
protected boolean |
log |
static java.lang.String |
PROP_AUTOLABEL
true indicates the axis label hasn't been changed by a human and may/should be autoranged.
|
static java.lang.String |
PROP_AUTORANGE
true indicates the axis hasn't been changed and may/should be autoranged.
|
static java.lang.String |
PROP_AUTORANGEHINTS |
static java.lang.String |
PROP_DRAWTICKLABELS |
static java.lang.String |
PROP_FLIPPED |
static java.lang.String |
PROP_FONTSIZE |
static java.lang.String |
PROP_LABEL
concise label for the axis.
|
static java.lang.String |
PROP_LOG |
static java.lang.String |
PROP_OPPOSITE |
static java.lang.String |
PROP_RANGE |
static java.lang.String |
PROP_REFERENCE |
static java.lang.String |
PROP_SCALE |
static java.lang.String |
PROP_TICKVALUES |
static java.lang.String |
PROP_VISIBLE
false indicates the component will not be drawn.
|
protected DatumRange |
range |
protected boolean |
visible |
id, logger, PROP_ID, propertyChangeSupport| Constructor and Description |
|---|
Axis() |
| Modifier and Type | Method and Description |
|---|---|
DomNode |
copy()
returns a deep copy of the node.
|
java.util.List<Diff> |
diffs(DomNode node)
return a list of the differences between this and another node.
|
java.lang.String |
getAutoRangeHints() |
AxisController |
getController() |
java.lang.String |
getFontSize() |
java.lang.String |
getLabel()
concise label for the axis.
|
DatumRange |
getRange() |
java.lang.String |
getReference() |
Datum |
getScale() |
java.lang.String |
getTickValues() |
boolean |
isAutoLabel() |
boolean |
isAutoRange() |
boolean |
isDrawTickLabels() |
boolean |
isFlipped() |
boolean |
isLog() |
boolean |
isOpposite() |
boolean |
isVisible() |
void |
setAutoLabel(boolean autolabel) |
void |
setAutoRange(boolean autorange) |
void |
setAutoRangeHints(java.lang.String autoRangeHints) |
void |
setDrawTickLabels(boolean drawTickLabels) |
void |
setFlipped(boolean flipped) |
void |
setFontSize(java.lang.String fontSize)
set the font size relative to the canvas font size.
|
void |
setLabel(java.lang.String label)
concise label for the axis.
|
void |
setLog(boolean log)
set the log property.
|
void |
setOpposite(boolean opposite) |
void |
setRange(DatumRange range)
set the range property.
|
void |
setReference(java.lang.String reference)
draw an optional reference line at the location.
|
void |
setScale(Datum scale) |
void |
setTickValues(java.lang.String ticks)
manually set the tick positions or spacing.
|
void |
setVisible(boolean visible) |
void |
syncTo(DomNode n)
bulk assignment of properties.
|
void |
syncTo(DomNode n,
java.util.List<java.lang.String> exclude)
Bulk assignment of properties, but allow specification of properties to exclude.
|
addPropertyChangeListener, addPropertyChangeListener, boundCount, childNodes, getId, removePropertyChangeListener, removePropertyChangeListener, setId, toStringpublic static final DatumRange DEFAULT_RANGE
protected DatumRange range
public static final java.lang.String PROP_RANGE
public static final java.lang.String PROP_SCALE
protected boolean log
public static final java.lang.String PROP_LOG
public static final java.lang.String PROP_REFERENCE
protected java.lang.String label
public static final java.lang.String PROP_LABEL
public static final java.lang.String PROP_FONTSIZE
protected boolean drawTickLabels
public static final java.lang.String PROP_DRAWTICKLABELS
public static final java.lang.String PROP_OPPOSITE
public static final java.lang.String PROP_VISIBLE
protected boolean visible
public static final java.lang.String PROP_AUTORANGE
protected boolean autoRange
public static final java.lang.String PROP_AUTORANGEHINTS
public static final java.lang.String PROP_AUTOLABEL
protected boolean autoLabel
public static final java.lang.String PROP_FLIPPED
public static final java.lang.String PROP_TICKVALUES
public DatumRange getRange()
public void setRange(DatumRange range)
range - public Datum getScale()
public void setScale(Datum scale)
public boolean isLog()
public void setLog(boolean log)
log - public java.lang.String getReference()
public void setReference(java.lang.String reference)
reference - public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - the labelpublic java.lang.String getFontSize()
public void setFontSize(java.lang.String fontSize)
fontSize - public boolean isDrawTickLabels()
public void setDrawTickLabels(boolean drawTickLabels)
public boolean isOpposite()
public void setOpposite(boolean opposite)
public boolean isVisible()
public void setVisible(boolean visible)
public boolean isAutoRange()
public void setAutoRange(boolean autorange)
public java.lang.String getAutoRangeHints()
public void setAutoRangeHints(java.lang.String autoRangeHints)
public boolean isAutoLabel()
public void setAutoLabel(boolean autolabel)
public boolean isFlipped()
public void setFlipped(boolean flipped)
public java.lang.String getTickValues()
public void setTickValues(java.lang.String ticks)
| empty string is legacy behavior | |
| 0,45,90,135,180 | explicit tick positions, in axis units |
| +45 | spacing between tickValues, parsed with the axis offset units. |
| +30s | 30 seconds spacing between tickValues |
ticks - public AxisController getController()
public void syncTo(DomNode n)
DomNodepublic void syncTo(DomNode n, java.util.List<java.lang.String> exclude)
DomNode