Class CartesianLinearAxes
- java.lang.Object
-
- org.primefaces.model.charts.axes.cartesian.CartesianAxes
-
- org.primefaces.model.charts.axes.cartesian.linear.CartesianLinearAxes
-
- All Implemented Interfaces:
Serializable
public class CartesianLinearAxes extends CartesianAxes
The linear scale is use to chart numerical data. It can be placed on either the x or y axis. The scatter chart type automatically configures a line chart to use one of these scales for the x axis. As the name suggests, linear interpolation is used to determine where a value lies on the axis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CartesianLinearAxes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode()Write the options of cartesian category axesCartesianLinearTicksgetTicks()Gets the ticksStringgetType()Gets the typevoidsetTicks(CartesianLinearTicks ticks)Sets the ticksvoidsetType(String type)Sets the type-
Methods inherited from class org.primefaces.model.charts.axes.cartesian.CartesianAxes
getGridLines, getId, getPosition, getScaleLabel, isOffset, isStacked, setGridLines, setId, setOffset, setPosition, setScaleLabel, setStacked
-
-
-
-
Method Detail
-
getTicks
public CartesianLinearTicks getTicks()
Gets the ticks- Returns:
- ticks
-
setTicks
public void setTicks(CartesianLinearTicks ticks)
Sets the ticks- Parameters:
ticks- theCartesianLinearTicksobject
-
getType
public String getType()
Gets the type- Returns:
- type of cartesian axes
-
setType
public void setType(String type)
Sets the type- Parameters:
type- the type of cartesian axes
-
encode
public String encode() throws IOException
Write the options of cartesian category axes- Overrides:
encodein classCartesianAxes- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-
-