public class ScaleItem extends BaseBoxNodeItem
Constructor and Description |
---|
ScaleItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
int |
getDrawingArea()
Returns the drawing area dimension of scale.
|
double |
getEnd()
Returns the end value of scale.
|
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.
|
int |
getMax()
Returns the max value of scale.
|
String |
getMaxAsString()
Returns the max value of scale.
|
int |
getMaxIndex()
Returns the max index of scale.
|
int |
getMin()
Returns the minimum value of scale.
|
String |
getMinAsString()
Returns the minimum value of scale.
|
int |
getMinIndex()
Returns the minimum index of scale.
|
List<String> |
getPointLabels()
Returns the list of point labels of scale.
|
double |
getStart()
Returns the start value of scale.
|
List<String> |
getTicks()
Returns the list of ticks.
|
List<Double> |
getTicksAsNumber()
Returns the list of ticks as number.
|
AxisType |
getType()
Returns the type of scale
|
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, isFullWidth
getBottom, getLeft, getRight, getTop
getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public ScaleItem(NativeObject nativeObject)
nativeObject
- native java script object which contains all properties.public final ScaleLongestTextCacheItem getLongestTextCache()
public final String getId()
UndefinedValues.STRING
.public final AxisType getType()
AxisType.category
.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 int getMax()
UndefinedValues.INTEGER
.public final int getMin()
UndefinedValues.INTEGER
.public final String getMaxAsString()
UndefinedValues.STRING
.public final String getMinAsString()
UndefinedValues.STRING
.public final List<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 List<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
.