public class CategoricalAxisModel extends AxisModel implements AxisSupportsCombinedSeriesPlot
AxisModel.StackValue
ChartElement.Predicate<T>
PLOT_DIRECTION_PROPERTY_KEY, PLOT_ORIGIN_PROPERTY_KEY
children
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
CategoricalAxisModel()
Creates a new instance of the
CategoricalAxisModel class. |
Modifier and Type | Method and Description |
---|---|
Object |
convertPhysicalUnitsToData(double coordinate)
Calculates the value which corresponds to the provided axis coordinate.
|
AxisPlotInfo |
createPlotInfo(Object value)
Creates an instance of the
AxisPlotInfo class containing the plot information about the provided
axis value. |
AxisLabelModel |
generateLastLabel() |
AxisPlotMode |
getActualPlotMode()
Gets a value from the
AxisPlotMode enum depicting the plot mode
actually used by the axis associated with this AxisModel . |
Object |
getCombineGroupKey(DataPoint point)
Gets the key used to group series when combination mode like STACK is specified.
|
float |
getGapLength()
Gets or sets the length of the gap to be applied for each category.
|
int |
getMajorTickInterval()
Gets the step at which ticks are positioned.
|
AxisPlotMode |
getPlotMode()
Gets or sets the plot mode used to position points along the axis.
|
boolean |
isDataReady() |
int |
majorTickCount()
Gets the count of the major ticks currently generated
in this
AxisModel . |
void |
setGapLength(float value)
Gets or sets the length of the gap to be applied for each category.
|
void |
setMajorTickInterval(int value)
Sets the step at which ticks are positioned.
|
void |
setPlotMode(AxisPlotMode value) |
applyLayoutRounding, canAddChild, desiredMargin, getDesiredSize, getFirstTick, getHorizontalLocation, getIsPrimary, getLabelContent, getLabelFitMode, getLabelFormat, getLabelInterval, getLabelLayoutMode, getLabelMargin, getLabelOffset, getLabels, getLabelValueToStringConverter, getLastLabelVisibility, getLastTick, getLineThickness, getMajorTickLength, getMajorTickOffset, getMajorTicks, getNormalizedLabelRotationAngle, getShowLabels, getStackValue, getTickThickness, getType, getVerticalLocation, getWidth, isPlotValid, isUpdated, measure, onPanOffsetChanged, onZoomChanged, plot, resetState, setHorizontalLocation, setIsPrimary, setLabelFitMode, setLabelFormat, setLabelInterval, setLabelLayoutMode, setLabelMargin, setLabelOffset, setLabelValueToStringConverter, setLastLabelVisibility, setLineThickness, setMajorTickLength, setMajorTickOffset, setNormalizedLabelRotationAngle, setShowLabels, setTickThickness, setType, setVerticalLocation, setWidth, ticks, title, update, updateTicksVisibility
enumDescendants, enumDescendants, enumDescendants, findAncestor, findDescendant, getPresenter, isAncestorOf, setPresenter
arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public CategoricalAxisModel()
CategoricalAxisModel
class.public int getMajorTickInterval()
public void setMajorTickInterval(int value)
value
- The major tick interval.public AxisPlotMode getPlotMode()
AxisPlotMode
.public void setPlotMode(AxisPlotMode value)
public float getGapLength()
public int majorTickCount()
AxisModel
AxisModel
.majorTickCount
in class AxisModel
public void setGapLength(float value)
value
- The new gap length.public boolean isDataReady()
isDataReady
in class AxisModel
public AxisPlotMode getActualPlotMode()
AxisModel
AxisPlotMode
enum depicting the plot mode
actually used by the axis associated with this AxisModel
.getActualPlotMode
in class AxisModel
AxisPlotMode
value.public Object getCombineGroupKey(DataPoint point)
AxisModel
getCombineGroupKey
in class AxisModel
public AxisLabelModel generateLastLabel()
generateLastLabel
in class AxisModel
public AxisPlotInfo createPlotInfo(Object value)
AxisModel
AxisPlotInfo
class containing the plot information about the provided
axis value.createPlotInfo
in class AxisModel
value
- the value to create the plot information for.AxisPlotInfo
instance.public Object convertPhysicalUnitsToData(double coordinate)
AxisModel
convertPhysicalUnitsToData
in class AxisModel
coordinate
- the coordinate to calculate the value for.