M
- the data type of the axisV
- the variable type of axispublic class RadialAxis<M,V> extends Axis<M,V>
Axis
to be used with RadarSeries
.Modifier and Type | Class and Description |
---|---|
static class |
RadialAxis.Display
Enumeration of the display style of the radial axis.
|
Modifier and Type | Field and Description |
---|---|
protected ValueProvider<? super M,V> |
categoryField |
protected List<ValueProvider<? super M,? extends Number>> |
fields |
axisConfig, bbox, chart, displayGrid, from, hidden, labelConfig, labelNames, labelProvider, labels, lastIndex, lines, steps, titleConfig, titleSprite, to, toolTip, toolTipConfig, x, y
Constructor and Description |
---|
RadialAxis()
Creates a radial
Axis . |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all the sprites of the axis from the surface.
|
void |
drawAxis(boolean init)
Renders the axis into the screen and updates it's position.
|
void |
drawLabels()
Renders the labels in the axes.
|
ValueProvider<? super M,V> |
getCategoryField()
Returns the
ValueProvider used for labels around the axis. |
CircleSprite |
getCircleConfig()
Returns the configuration for the circles on the axis.
|
RadialAxis.Display |
getDisplay()
Returns the
RadialAxis.Display style of the axis. |
Chart.Position |
getPosition()
Returns the
Chart.Position of the axis. |
TextSprite |
getScaleConfig()
Returns the configuration for labels on the numeric scale.
|
LabelProvider<Number> |
getScaleLabelProvider()
Returns the
LabelProvider used to display labels on the scale. |
int |
getSteps()
Returns the steps of the axis.
|
void |
setCategoryField(ValueProvider<? super M,V> categoryField)
Sets the
ValueProvider used to get the values for the category
labels. |
void |
setCircleConfig(CircleSprite circleConfig)
Sets the configuration for the circles on the axis.
|
void |
setDisplay(RadialAxis.Display display)
Sets the
RadialAxis.Display style of the axis. |
void |
setScaleConfig(TextSprite scaleConfig)
Sets the configuration for labels on the numeric scale.
|
void |
setScaleLabelProvider(LabelProvider<Number> scaleLabelProvider)
Sets the
LabelProvider used to display labels on the scale. |
void |
setSteps(int steps)
Sets the number of steps on the axis.
|
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 List<ValueProvider<? super M,? extends Number>> fields
protected ValueProvider<? super M,V> categoryField
public RadialAxis()
Axis
.public void clear()
Axis
public void drawAxis(boolean init)
Axis
public void drawLabels()
Axis
drawLabels
in class Axis<M,V>
public ValueProvider<? super M,V> getCategoryField()
ValueProvider
used for labels around the axis.public CircleSprite getCircleConfig()
public RadialAxis.Display getDisplay()
RadialAxis.Display
style of the axis.public Chart.Position getPosition()
Axis
Chart.Position
of the axis.getPosition
in class Axis<M,V>
public TextSprite getScaleConfig()
public LabelProvider<Number> getScaleLabelProvider()
LabelProvider
used to display labels on the scale.public int getSteps()
public void setCategoryField(ValueProvider<? super M,V> categoryField)
ValueProvider
used to get the values for the category
labels.categoryField
- the value provider used to get the values for the
category labelspublic void setCircleConfig(CircleSprite circleConfig)
circleConfig
- the configuration for the circles on the axispublic void setDisplay(RadialAxis.Display display)
RadialAxis.Display
style of the axis.display
- the display style of the axispublic void setScaleConfig(TextSprite scaleConfig)
scaleConfig
- the configuration for labels on the numeric scalepublic void setScaleLabelProvider(LabelProvider<Number> scaleLabelProvider)
LabelProvider
used to display labels on the scale.scaleLabelProvider
- the label provider used to display labels on the
scalepublic void setSteps(int steps)
steps
- the number of steps on the axisCopyright © 2018. All rights reserved.