Class CartesianCategoryTicks
- java.lang.Object
-
- org.primefaces.model.charts.axes.cartesian.CartesianTicks
-
- org.primefaces.model.charts.axes.cartesian.category.CartesianCategoryTicks
-
- All Implemented Interfaces:
Serializable
public class CartesianCategoryTicks extends CartesianTicks
Used to provide cartesian category ticks. CartesianCategoryTicks extendsCartesianTicks- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CartesianCategoryTicks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode()Write the options of cartesian category ticksList<String>getLabels()Gets the labelsStringgetMax()Gets the maxStringgetMin()Gets the minvoidsetLabels(List<String> labels)Sets the labelsvoidsetMax(String max)Sets the maxvoidsetMin(String min)Sets the min-
Methods inherited from class org.primefaces.model.charts.axes.cartesian.CartesianTicks
getAutoSkipPadding, getLabelOffset, getMaxRotation, getMinRotation, getPadding, isAutoSkip, isMirror, setAutoSkip, setAutoSkipPadding, setLabelOffset, setMaxRotation, setMinRotation, setMirror, setPadding
-
-
-
-
Method Detail
-
setLabels
public void setLabels(List<String> labels)
Sets the labels- Parameters:
labels- List<String> list of labels to display.
-
getMin
public String getMin()
Gets the min- Returns:
- min
-
setMin
public void setMin(String min)
Sets the min- Parameters:
min- The minimum item to display.
-
getMax
public String getMax()
Gets the max- Returns:
- max
-
setMax
public void setMax(String max)
Sets the max- Parameters:
max- The maximum item to display.
-
encode
public String encode() throws IOException
Write the options of cartesian category ticks- Overrides:
encodein classCartesianTicks- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-
-