public abstract class CartesianAxes extends Object implements Serializable
Constructor and Description |
---|
CartesianAxes() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Write the common options of cartesian axes
|
AxesGridLines |
getGridLines()
Gets the gridLines
|
String |
getId()
Gets the id
|
String |
getPosition()
Gets the position
|
CartesianScaleLabel |
getScaleLabel()
Gets the scaleLabel
|
boolean |
isOffset()
Gets the offset
|
boolean |
isStacked()
Gets the stacked
|
void |
setGridLines(AxesGridLines gridLines)
Sets the gridLines
|
void |
setId(String id)
Sets the id
|
void |
setOffset(boolean offset)
Sets the offset
|
void |
setPosition(String position)
Sets the position
|
void |
setScaleLabel(CartesianScaleLabel scaleLabel)
Sets the scaleLabel
|
void |
setStacked(boolean stacked)
Sets the stacked
|
public String getPosition()
public void setPosition(String position)
position
- Position of the axis in the chart. Possible values are: 'top', 'left', 'bottom', 'right'public boolean isOffset()
public void setOffset(boolean offset)
offset
- If true, extra space is added to the both edges and the axis is scaled to fit into the chart area.
This is set to true in the bar chart by default.public String getId()
public void setId(String id)
id
- The ID is used to link datasets and scale axes together.public AxesGridLines getGridLines()
public void setGridLines(AxesGridLines gridLines)
gridLines
- the AxesGridLines
objectpublic CartesianScaleLabel getScaleLabel()
public void setScaleLabel(CartesianScaleLabel scaleLabel)
scaleLabel
- the CartesianScaleLabel
objectpublic boolean isStacked()
public void setStacked(boolean stacked)
stacked
- Stacked charts can be used to show how one data series is made up of a number of smaller pieces.public String encode() throws IOException
IOException
- If an I/O error occursCopyright © 2020. All rights reserved.