Class CartesianLinearAxes
java.lang.Object
org.primefaces.model.charts.axes.cartesian.CartesianAxes
org.primefaces.model.charts.axes.cartesian.linear.CartesianLinearAxes
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionencode()
Write the options of cartesian category axesgetTicks()
Gets the ticksgetTime()
getType()
Gets the typeboolean
Gets the beginAtZerovoid
setBeginAtZero
(boolean beginAtZero) Sets the beginAtZerovoid
setTicks
(CartesianLinearTicks ticks) Sets the ticksvoid
setTime
(CartesianTime time) void
Sets the typeMethods inherited from class org.primefaces.model.charts.axes.cartesian.CartesianAxes
getGrid, getId, getMax, getMin, getPosition, getScaleTitle, getSuggestedMax, getSuggestedMin, isOffset, isReverse, isStacked, setGrid, setId, setMax, setMin, setOffset, setPosition, setReverse, setScaleTitle, setStacked, setSuggestedMax, setSuggestedMin
-
Constructor Details
-
CartesianLinearAxes
public CartesianLinearAxes()
-
-
Method Details
-
getTicks
Gets the ticks- Returns:
- ticks
-
setTicks
Sets the ticks- Parameters:
ticks
- theCartesianLinearTicks
object
-
isBeginAtZero
public boolean isBeginAtZero()Gets the beginAtZero- Returns:
- beginAtZero
-
setBeginAtZero
public void setBeginAtZero(boolean beginAtZero) Sets the beginAtZero- Parameters:
beginAtZero
- if true, scale will include 0 if it is not already included.
-
getType
Gets the type- Returns:
- type of cartesian axes
-
setType
Sets the type- Parameters:
type
- the type of cartesian axes
-
getTime
-
setTime
-
encode
Write the options of cartesian category axes- Overrides:
encode
in classCartesianAxes
- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-