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 |
getCharbaId()
Returns the unique id of scale.
|
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.
|
double |
getMax()
Returns the max value of scale.
|
Date |
getMaxAsDate()
Returns the max value of scale.
|
String |
getMaxAsString()
Returns the max value of scale.
|
int |
getMaxIndex()
Returns the max index of scale.
|
double |
getMin()
Returns the minimum value of scale.
|
Date |
getMinAsDate()
Returns the minimum value of scale.
|
String |
getMinAsString()
Returns the minimum value of scale.
|
int |
getMinIndex()
Returns the minimum index of scale.
|
double |
getMinNotZero()
Returns the minimum value not zero of scale, only for
CartesianLogarithmicAxis . |
List<String> |
getPointLabels()
Returns the list of point labels of scale.
|
String |
getPositionAsString()
Returns the position of node as string.
|
double |
getStart()
Returns the start value of scale.
|
List<ScaleTickItem> |
getTickItems()
Returns the list of tick items.
|
List<String> |
getTicks()
Returns the list of ticks.
|
List<Double> |
getTicksAsNumber()
Returns the list of ticks as number.
|
List<TimeTickItem> |
getTimeTickItems()
Returns the list of time tick items, only for
CartesianTimeAxis . |
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, isInside
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, 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 int getCharbaId()
UndefinedValues.INTEGER
.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 double getMax()
UndefinedValues.DOUBLE
.public final double getMin()
UndefinedValues.DOUBLE
.public final double getMinNotZero()
CartesianLogarithmicAxis
.UndefinedValues.DOUBLE
.public final String getMaxAsString()
UndefinedValues.STRING
.public final String getMinAsString()
UndefinedValues.STRING
.public final Date getMaxAsDate()
null
.public final Date getMinAsDate()
null
.public final List<String> getTicks()
public final List<ScaleTickItem> getTickItems()
public final List<TimeTickItem> getTimeTickItems()
CartesianTimeAxis
.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
.public final List<String> getPointLabels()
public final String getPositionAsString()
Position
enumeration, like for RadialAxis
.Position.TOP
.