public class MarkerAxis extends BarAxis
Axis
which displays Marker
s instead of text on the axis.
It works the same way as a regular axis - it formats and plots a range of numbers along
a spine, and is very similar in concept to a BarAxis
except that the MarkerAxis
formats each number as a Marker
. So, for example, to plot a graph with flags onx
the axis:
Axesgraph graph = new AxesGraph(); BarSeries series = new BarSeries("Fruit by Country"); series.set("flag.US", 10); series.set("flag.UK", 15); series.set("flag.AU", 8); graph.setAxis(new MarkerAxis(20), Axis.BOTTOM); graph.addSeries(AxesGraph.BOTTOMLEFT, s);Will result in the graph having a MarkerAxis along the bottom which will plot values from 0 to 2, formatting 0 as the US flag, 1 as the UK flag and 2 as the Australian flag.
BOTTOM, DENSITY_MINIMAL, DENSITY_NORMAL, DENSITY_SPARSE, LEFT, RIGHT, spinestyle, TOP, ZAXIS
Constructor and Description |
---|
MarkerAxis(int size)
Create a new MarkerAxis
|
Modifier and Type | Method and Description |
---|---|
void |
setRotate(int rotate)
Set the rotation for each marker on the axis
|
setLabel, setMaxValue, setMinValue, setSpineStyle, setToothLength, setToothTextStyle, setWallPaint, setWallPaint, setWallPaint, setZeroIntersection, toString
Copyright © 2001-2016 Big Faceless Organization