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 String
encode()
Write the options of cartesian category ticksList<String>
getLabels()
Gets the labelsString
getMax()
Gets the maxString
getMin()
Gets the minvoid
setLabels(List<String> labels)
Sets the labelsvoid
setMax(String max)
Sets the maxvoid
setMin(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:
encode
in classCartesianTicks
- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-
-