Package org.pepstock.charba.client.items
Class ScaleLabelOptions
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.items.ScaleLabelOptions
-
public final class ScaleLabelOptions extends NativeObjectContainer
The label options maps the labels options computed byScaleItem.
This is a wrapper of the CHART.JS item with all needed info.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScaleLabelBackdropOptionsgetBackdropOptions()Returns the backdrop options of the label of the scale.IsColorgetColor()Returns the color of the label of the scale.StringgetColorAsString()Returns the color of the label of the scale.intgetDecorationWidth()Returns the width of the strikethrough / underline of the label of the scale.doublegetMaxWidth()Returns the max width of the text in pixels of the label of the scale.doublegetRotation()Returns the rotation of the text in pixels of the label of the scale.IsColorgetStrokeColor()Returns the stroke color of the label of the scale.StringgetStrokeColorAsString()Returns the stroke color of the label of the scale.doublegetStrokeWidth()Returns the stroke width of the text in pixels of the label of the scale.TextAligngetTextAlign()Returns the text align is applied to the text in pixels of the label of the scale.TextBaselinegetTextBaseline()Returns the text baseline is applied to the text in pixels of the label of the scale.List<Double>getTranslation()Returns the translation is applied to the text in pixels of the label of the scale.booleanisStrikethrough()Returns the strikethrough is applied to the text in pixels of the label of the scale.booleanisUnderline()Returns the underline is applied to the text in pixels of the label of the scale.-
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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
getBackdropOptions
public ScaleLabelBackdropOptions getBackdropOptions()
Returns the backdrop options of the label of the scale.- Returns:
- the backdrop options of the label of the scale
-
getColorAsString
public String getColorAsString()
Returns the color of the label of the scale.- Returns:
- the color of the label of the scale
-
getColor
public IsColor getColor()
Returns the color of the label of the scale.- Returns:
- the color of the label of the scale
-
getDecorationWidth
public int getDecorationWidth()
Returns the width of the strikethrough / underline of the label of the scale.- Returns:
- the width of the strikethrough / underline of the label of the scale.
-
getMaxWidth
public double getMaxWidth()
Returns the max width of the text in pixels of the label of the scale.- Returns:
- the max width of the text in pixels of the label of the scale.
-
getRotation
public double getRotation()
Returns the rotation of the text in pixels of the label of the scale.- Returns:
- the rotation of the text in pixels of the label of the scale.
-
isStrikethrough
public boolean isStrikethrough()
Returns the strikethrough is applied to the text in pixels of the label of the scale.- Returns:
- the strikethrough is applied to the text in pixels of the label of the scale.
-
getStrokeColorAsString
public String getStrokeColorAsString()
Returns the stroke color of the label of the scale.- Returns:
- the stroke color of the label of the scale
-
getStrokeColor
public IsColor getStrokeColor()
Returns the stroke color of the label of the scale.- Returns:
- the stroke color of the label of the scale
-
getStrokeWidth
public double getStrokeWidth()
Returns the stroke width of the text in pixels of the label of the scale.- Returns:
- the stroke width of the text in pixels of the label of the scale.
-
isUnderline
public boolean isUnderline()
Returns the underline is applied to the text in pixels of the label of the scale.- Returns:
- the underline is applied to the text in pixels of the label of the scale.
-
getTranslation
public List<Double> getTranslation()
Returns the translation is applied to the text in pixels of the label of the scale.- Returns:
- the translation is applied to the text in pixels of the label of the scale.
-
getTextBaseline
public TextBaseline getTextBaseline()
Returns the text baseline is applied to the text in pixels of the label of the scale.- Returns:
- the text baseline is applied to the text in pixels of the label of the scale.
-
getTextAlign
public TextAlign getTextAlign()
Returns the text align is applied to the text in pixels of the label of the scale.- Returns:
- the text align is applied to the text in pixels of the label of the scale.
-
-