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 String
encode()
Write the options of cartesian category axesCartesianLinearTicks
getTicks()
Gets the ticksString
getType()
Gets the typevoid
setTicks(CartesianLinearTicks ticks)
Sets the ticksvoid
setType(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
- theCartesianLinearTicks
object
-
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:
encode
in classCartesianAxes
- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-
-