public class GroupAxis extends BaseAxis
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
DEFAULT_MAXIMUM_LINES
The default value for maximum lines of label.
|
static java.lang.Double |
DEFAULT_ROTATION_ANGLE
The default value for rotation angle (in radians).
|
static java.lang.Float |
DEFAULT_WIDTH_RATIO
The default value for width ratio.
|
DEFAULT_AXIS_LINE_COLOR, DEFAULT_GRIDLINE_COLOR, DEFAULT_TICK_LABEL_COLOR, DEFAULT_TICK_LABEL_FONT, DEFAULT_TITLE, TOKEN_CATEGORY_AXIS, TOKEN_DATA_AXIS, TOKEN_SERIES_AXIS
Constructor and Description |
---|
GroupAxis()
Creates a discrete GroupAxis, sets the default properties.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
getReferencedObjects()
Get FormulaFields referenced by this Axis.
|
int |
getShowEachNthTickLabel()
Returns the number for show each nth tick labels.
|
FormulaField |
getShowEachNthTickLabelFormula()
Get the showEachNthTickLabelFormula of the GroupAxis.
|
protected java.lang.StringBuilder |
getSubProperties(int depth)
Returns the serialized properties of subclasses.
|
java.lang.Integer |
getTickLabelMaximumLines()
Returns the maximum number of lines to use for each tick label.
|
java.lang.Double |
getTickLabelRotationAngle()
Returns the tick label rotation angle (in radians).
|
java.lang.Float |
getTickLabelWidthRatio()
Returns the tick label width ratio, i.e. how much of the label to display.
|
boolean |
isAutoFitTickLabel()
Returns whether or not the axis tick labels
are automatically adjusted to fit the axis space.
|
void |
readProperties(org.w3c.dom.Element element,
Chart2 chart)
Loads the XML properties of a chart axis.
|
void |
setAutoFitTickLabel(boolean autoFitTickLabel)
Sets whether or not the axis tick labels
are automatically adjusted (e.g. by rotating or truncating) to fit the axis space.
|
void |
setShowEachNthTickLabel(int showEachNthTickLabel)
Sets the number for show each nth tick labels.
|
void |
setShowEachNthTickLabelFormula(FormulaField showEachNthTickLabelFormula)
Set the showEachNthTickLabelFormula of the GroupAxis.
|
void |
setTickLabelMaximumLines(java.lang.Integer tickLabelMaximumLines)
Sets the maximum number of lines to use for each tick label.
|
void |
setTickLabelRotationAngle(java.lang.Double tickLabelRotationAngle)
Sets the tick label rotation angle (in radians).
|
void |
setTickLabelWidthRatio(java.lang.Float tickLabelWidthRatio)
Sets the tick label width ratio, i.e. how much of the label to display. 1 would be the entire label,
anything less causes the tick labels to be truncated. 0 means there should be no explicit setting for
the maximum label width.
|
copyTo, getAxisLineColor, getAxisPosition, getGridlineColor, getTickLabelColor, getTickLabelFont, getTickLabelFormat, getTitle, isGridlinesVisible, isInverseOrder, saveProperties, saveSubProperties, setAxisLineColor, setAxisPosition, setGridlineColor, setGridlinesVisible, setInverseOrder, setTickLabelColor, setTickLabelFont, setTickLabelFormat, setTitle
public static final java.lang.Integer DEFAULT_MAXIMUM_LINES
public static final java.lang.Double DEFAULT_ROTATION_ANGLE
public static final java.lang.Float DEFAULT_WIDTH_RATIO
public GroupAxis()
public boolean isAutoFitTickLabel()
setAutoFitTickLabel(boolean)
public void setAutoFitTickLabel(boolean autoFitTickLabel)
autoFitTickLabel
- whether to automatically adjust the labels (e.g. by rotating or truncating) so that they fit the axis spaceisAutoFitTickLabel()
public java.lang.Double getTickLabelRotationAngle()
setTickLabelRotationAngle(Double)
public void setTickLabelRotationAngle(java.lang.Double tickLabelRotationAngle)
tickLabelRotationAngle
- the angle or null
to ignore this property (should be < Math.PI / 2.0)getTickLabelRotationAngle()
,
DEFAULT_ROTATION_ANGLE
,
setAutoFitTickLabel(boolean)
public java.lang.Float getTickLabelWidthRatio()
setTickLabelWidthRatio(Float)
public void setTickLabelWidthRatio(java.lang.Float tickLabelWidthRatio)
tickLabelWidthRatio
- the width ratio, i.e. how much of the tick label to display or null
to ignore this propertygetTickLabelWidthRatio()
,
DEFAULT_WIDTH_RATIO
,
setAutoFitTickLabel(boolean)
public java.lang.Integer getTickLabelMaximumLines()
setTickLabelMaximumLines(Integer)
public void setTickLabelMaximumLines(java.lang.Integer tickLabelMaximumLines)
tickLabelMaximumLines
- the maximum number of lines or null
to ignore this propertygetTickLabelMaximumLines()
,
DEFAULT_MAXIMUM_LINES
,
setAutoFitTickLabel(boolean)
public int getShowEachNthTickLabel()
setShowEachNthTickLabel(int)
public void setShowEachNthTickLabel(int showEachNthTickLabel)
showEachNthTickLabel
- the number, the value should be greater zerojava.lang.IllegalArgumentException
- by negative or zero valuegetShowEachNthTickLabel()
public FormulaField getShowEachNthTickLabelFormula()
getShowEachNthTickLabel()
is used.getShowEachNthTickLabel()
,
setShowEachNthTickLabelFormula(FormulaField)
public void setShowEachNthTickLabelFormula(FormulaField showEachNthTickLabelFormula)
setShowEachNthTickLabel(int)
is used.showEachNthTickLabelFormula
- the showEachNthTickLabelFormula of the GroupAxis, can be null.setShowEachNthTickLabel(int)
,
getShowEachNthTickLabelFormula()
protected java.lang.StringBuilder getSubProperties(int depth)
getSubProperties
in class BaseAxis
depth
- the depth of the whitespace indent to prefix each line withpublic void readProperties(org.w3c.dom.Element element, Chart2 chart)
readProperties
in class BaseAxis
element
- DOM element to read the properties fromchart
- the chart this axis belongs toBaseAxis.saveProperties(PrintWriter, int, String)
public java.util.List<java.lang.Object> getReferencedObjects()
getReferencedObjects
in class BaseAxis
Copyright © 1999-2020 by i-net software GmbH