public class ScaleItem extends BaseBoxNodeItem
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ScaleItem.Property
Name of fields of JavaScript object.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ScaleItem(GenericJavaScriptObject javaScriptObject)
Wraps the CHART.JS java script object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDrawingArea()
Returns the drawing area dimension of scale.
|
double |
getEnd()
Returns the end value of scale.
|
java.lang.String |
getId()
Returns the id of scale
|
double |
getLabelRotation()
Returns the label rotation ratio.
|
int |
getLongestLabelWidth()
Returns the longest width of label of ticks.
|
ScaleLongestTextCacheItem |
getLongestTextCache()
Returns the longest text cache item.
|
java.lang.Object |
getMax()
Returns the max value of scale.
|
int |
getMaxIndex()
Returns the max index of scale.
|
java.lang.Object |
getMin()
Returns the min value of scale.
|
int |
getMinIndex()
Returns the min index of scale.
|
java.util.List<java.lang.String> |
getPointLabels()
Returns the list of point labels of scale.
|
double |
getStart()
Returns the start value of scale.
|
java.util.List<java.lang.String> |
getTicks()
Returns the list of ticks.
|
java.util.List<java.lang.Double> |
getTicksAsNumber()
Returns the list of ticks as number.
|
int |
getXCenter()
Returns the X center of scale.
|
int |
getYCenter()
Returns the Y center of scale.
|
int |
getZeroLineIndex()
Returns the zero line index of scale.
|
boolean |
isHidden()
Returns true if this item represents a hidden scale.
|
getHeight, getMargins, getMaxHeight, getMaxWidth, getMinSize, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getWeight, getWidth, isFullWidthgetBottom, getLeft, getRight, getTopcheckAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typeprotected ScaleItem(GenericJavaScriptObject javaScriptObject)
javaScriptObject - CHART.JS java script objectpublic final ScaleLongestTextCacheItem getLongestTextCache()
public final java.lang.String getId()
UndefinedValues.STRING.public final boolean isHidden()
true if this item represents a hidden scale. Default is UndefinedValues.BOOLEAN.public final int getMaxIndex()
UndefinedValues.INTEGER.public final int getMinIndex()
UndefinedValues.INTEGER.public final java.lang.Object getMax()
public final java.lang.Object getMin()
public final java.util.List<java.lang.String> getTicks()
public final double getLabelRotation()
UndefinedValues.DOUBLE.public final int getLongestLabelWidth()
UndefinedValues.INTEGER.public final double getStart()
UndefinedValues.DOUBLE.public final double getEnd()
UndefinedValues.DOUBLE.public final java.util.List<java.lang.Double> getTicksAsNumber()
public final int getZeroLineIndex()
UndefinedValues.INTEGER.public final int getXCenter()
UndefinedValues.INTEGER.public final int getYCenter()
UndefinedValues.INTEGER.public final int getDrawingArea()
UndefinedValues.INTEGER.public final java.util.List<java.lang.String> getPointLabels()