M
- the data type of the axisV
- the variable type of axispublic class CategoryAxis<M,V> extends CartesianAxis<M,V>
NumericAxis
is more suitable.Modifier and Type | Field and Description |
---|---|
protected ValueProvider<? super M,V> |
field |
minorTickSteps, position, ticks
axisConfig, bbox, chart, displayGrid, from, hidden, labelConfig, labelNames, labelProvider, labels, lastIndex, lines, steps, titleConfig, titleSprite, to, toolTip, toolTipConfig, x, y
Constructor and Description |
---|
CategoryAxis() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyData()
Applies the field data to the labels of the axis.
|
protected void |
createLabels()
Creates the list of labels to display.
|
ValueProvider<? super M,V> |
getField()
Returns the
ValueProvider used for labels on the axis. |
void |
setField(ValueProvider<? super M,V> field)
Sets the
ValueProvider used for labels on the axis. |
clear, drawAxis, drawLabels, getDashSize, getDepth, getGridDefaultConfig, getGridEvenConfig, getGridOddConfig, getHeight, getLabelStepRatio, getLabelTolerance, getLength, getMinorTickSteps, getPosition, getTextLabelPadding, getWidth, isLabelOverlapHiding, setDashSize, setDepth, setGridDefaultConfig, setGridEvenConfig, setGridOddConfig, setHeight, setLabelOverlapHiding, setLabelPadding, setLabelStepRatio, setLabelTolerance, setLength, setMinorTickSteps, setPosition, setWidth
addAxisHandler, addAxisItemOutHandler, addAxisItemOverHandler, addAxisItemUpHandler, addAxisSelectionHandler, ensureHandlers, getAxisConfig, getBBox, getChart, getFrom, getLabelConfig, getLabelProvider, getTitleConfig, getTo, getX, getY, isDisplayGrid, isHidden, onMouseDown, onMouseMove, onMouseOut, onMouseUp, removeToolTip, setAxisConfig, setChart, setDisplayGrid, setHidden, setLabelConfig, setLabelProvider, setTitleConfig, setToolTipConfig, setX, setY
protected ValueProvider<? super M,V> field
public ValueProvider<? super M,V> getField()
ValueProvider
used for labels on the axis.public void setField(ValueProvider<? super M,V> field)
ValueProvider
used for labels on the axis.field
- the value provider used for labels on the axisprotected void applyData()
CartesianAxis
applyData
in class CartesianAxis<M,V>
protected void createLabels()
CartesianAxis
createLabels
in class CartesianAxis<M,V>
Copyright © 2018. All rights reserved.