Package org.pepstock.charba.client.items
Class ScaleTickItem
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.items.ScaleTickItem
-
public final class ScaleTickItem extends NativeObjectContainer
The tick item maps the objects passed aScaleItem.
This is a wrapper of the CHART.JS item with all needed info.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScaleTickItem.ScaleTickItemFactoryInner class to create tick item by a native object.
-
Field Summary
Fields Modifier and Type Field Description static ScaleTickItem.ScaleTickItemFactoryFACTORYPublic factory to create a scale tick item from a native object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()Returns the label of the tick.doublegetValue()Returns the value of the tick as double.DategetValueAsDate()Returns the date of the tick.StringgetValueAsString()Returns the value of the tick as string.booleanisMajor()Returnstrueif is the major tick, otherwiseUndefined.BOOLEAN.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Field Detail
-
FACTORY
public static final ScaleTickItem.ScaleTickItemFactory FACTORY
Public factory to create a scale tick item from a native object.
-
-
Method Detail
-
getLabel
public String getLabel()
Returns the label of the tick.- Returns:
- the label of the tick or
Undefined.STRINGif missing.
-
getValue
public double getValue()
Returns the value of the tick as double.- Returns:
- the value of the tick or
Undefined.DOUBLEif missing or not a double.
-
getValueAsString
public String getValueAsString()
Returns the value of the tick as string.- Returns:
- the value of the tick or
Undefined.STRINGif missing or not a string.
-
getValueAsDate
public Date getValueAsDate()
Returns the date of the tick.- Returns:
- the date of the tick or
nullif missing.
-
isMajor
public boolean isMajor()
Returnstrueif is the major tick, otherwiseUndefined.BOOLEAN.- Returns:
trueif is the major tick, otherwiseUndefined.BOOLEAN.
-
-