Class CartesianLinearTicks
java.lang.Object
org.primefaces.model.charts.axes.cartesian.CartesianTicks
org.primefaces.model.charts.axes.cartesian.linear.CartesianLinearTicks
- All Implemented Interfaces:
Serializable
Used to provide cartesian linear ticks. CartesianLinearTicks extends
CartesianTicks- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the options of cartesian linear ticksGets the maxTicksLimitIf defined and stepSize is not specified, the step size will be rounded to this many decimal places.The ticks.source property controls the ticks generation.Gets the stepSizevoidsetMaxTicksLimit(Number maxTicksLimit) Sets the maxTicksLimitvoidsetPrecision(Number precision) If defined and stepSize is not specified, the step size will be rounded to this many decimal places.voidSets the ticks.source property to control tick generation.voidsetStepSize(Number stepSize) Sets the stepSizeMethods inherited from class org.primefaces.model.charts.axes.cartesian.CartesianTicks
getAutoSkipPadding, getLabelOffset, getMaxRotation, getMinRotation, getPadding, isAutoSkip, isMirror, setAutoSkip, setAutoSkipPadding, setLabelOffset, setMaxRotation, setMinRotation, setMirror, setPadding
-
Constructor Details
-
CartesianLinearTicks
public CartesianLinearTicks()
-
-
Method Details
-
getMaxTicksLimit
Gets the maxTicksLimit- Returns:
- maxTicksLimit
-
setMaxTicksLimit
Sets the maxTicksLimit- Parameters:
maxTicksLimit- Maximum number of ticks and gridlines to show.
-
getPrecision
If defined and stepSize is not specified, the step size will be rounded to this many decimal places.- Returns:
- the current precision
-
setPrecision
If defined and stepSize is not specified, the step size will be rounded to this many decimal places.- Parameters:
precision- User defined precision for the scale.
-
getStepSize
Gets the stepSize- Returns:
- stepSize
-
setStepSize
Sets the stepSize- Parameters:
stepSize- User defined fixed step size for the scale.
-
getSource
The ticks.source property controls the ticks generation. 'auto': generates "optimal" ticks based on scale size and time options 'data': generates ticks from data (including labels from data {x|y} objects) 'labels': generates ticks from user given labels ONLY- Returns:
- the ticks.source
-
setSource
Sets the ticks.source property to control tick generation. 'auto': generates "optimal" ticks based on scale size and time options 'data': generates ticks from data (including labels from data {x|y} objects) 'labels': generates ticks from user given labels ONLY- Parameters:
source- the source value
-
encode
Write the options of cartesian linear ticks- Overrides:
encodein classCartesianTicks- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-