public abstract class Axis extends Object implements Serializable
| Constructor and Description |
|---|
Axis() |
| Modifier and Type | Method and Description |
|---|---|
AxisPosition |
getAxisPosition()
Position where labels are placed.
|
String |
getLabelInterpolationFnc()
Interpolation function that allows you to intercept the value from the
axis label
|
int |
getOffset()
The offset of the labels to the chart area
|
int |
getScaleMinSpace()
This value specifies the minimum height in pixel of the scale steps
|
boolean |
getShowGrid()
If the axis grid should be drawn or not
|
boolean |
getShowLabel()
If labels should be shown or not
|
int |
getXLabelOffset()
Allows to correct label positioning on this axis by positive or negative
x offset.
|
int |
getYLabelOffset()
Allows to correct label positioning on this axis by positive or negative
y offset.
|
abstract void |
render(ResponseWriter writer,
AxisType axisType) |
void |
setAxisPosition(AxisPosition axisPosition)
Position where labels are placed.
|
void |
setLabelInterpolationFnc(String labelInterpolationFnc)
Interpolation function that allows you to intercept the value from the
axis label
|
void |
setOffset(int offset)
The offset of the labels to the chart area
|
void |
setScaleMinSpace(int scaleMinSpace)
This value specifies the minimum height in pixel of the scale steps
|
void |
setShowGrid(boolean showGrid)
If the axis grid should be drawn or not
|
void |
setShowLabel(boolean showLabel)
If labels should be shown or not
|
void |
setXLabelOffset(int xLabelOffset)
Allows to correct label positioning on this axis by positive or negative
x offset.
|
void |
setYLabelOffset(int yLabelOffset)
Allows to correct label positioning on this axis by positive or negative
y offset.
|
public int getOffset()
public void setOffset(int offset)
offset - public AxisPosition getAxisPosition()
public void setAxisPosition(AxisPosition axisPosition)
axisPosition - the axisPosition to setpublic int getXLabelOffset()
public void setXLabelOffset(int xLabelOffset)
xLabelOffset - public int getYLabelOffset()
public void setYLabelOffset(int yLabelOffset)
yLabelOffset - public boolean getShowLabel()
public void setShowLabel(boolean showLabel)
showLabel - the showLabel to setpublic boolean getShowGrid()
public void setShowGrid(boolean showGrid)
showGrid - the showGrid to setpublic String getLabelInterpolationFnc()
public void setLabelInterpolationFnc(String labelInterpolationFnc)
labelInterpolationFnc - the labelInterpolationFnc to setpublic int getScaleMinSpace()
public void setScaleMinSpace(int scaleMinSpace)
scaleMinSpace - the scaleMinSpace to setpublic abstract void render(ResponseWriter writer, AxisType axisType) throws IOException
IOExceptionCopyright © 2016. All rights reserved.