public final class AxisItem extends ScaleItem
set
methods to change java script object properties.Constructor and Description |
---|
AxisItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
AxisMarginsItem |
getAxisMargins()
Returns the margins of axis
|
AxisMinSizeItem |
getAxisMinSize()
Returns the minimum size of axis
|
void |
setBottom(int bottom)
Sets the bottom location in pixel
|
void |
setEnd(int end)
Sets the end value of the axis
|
void |
setFullWidth(boolean fullWidth)
Sets the full width of axis in pixel
|
void |
setHeight(int height)
Sets the height of axis in pixel.
|
void |
setHidden(boolean hidden)
Sets if the axis must be hidden.
|
void |
setLabelRotation(double labelRotation)
Sets the label rotation value
|
void |
setLeft(int left)
Sets the left location in pixel
|
void |
setMax(Date max)
Sets the maximum value of axis
|
void |
setMax(double max)
Sets the maximum value of axis
|
void |
setMax(String max)
Sets the maximum value of axis
|
void |
setMaxHeight(int maxHeight)
Sets the max height of the axis in pixel
|
void |
setMaxWidth(int maxWidth)
Sets the max width of axis in pixel.
|
void |
setMin(Date min)
Sets the minimum value of axis
|
void |
setMin(double min)
Sets the minimum value of axis
|
void |
setMin(String min)
Sets the minimum value of axis
|
void |
setMinNotZero(double min)
Sets the minimum value not zero of scale, only for
CartesianLogarithmicAxis . |
void |
setPaddingBottom(int paddingBottom)
Sets the padding bottom in pixel
|
void |
setPaddingLeft(int paddingLeft)
Sets the padding left in pixel
|
void |
setPaddingRight(int paddingRight)
Sets the padding right in pixel
|
void |
setPaddingTop(int paddingTop)
Sets the padding top in pixel
|
void |
setPosition(Position position)
Sets the position of axis
|
void |
setRight(int right)
Sets the right location in pixel
|
void |
setStart(int start)
Sets the start value of the axis
|
void |
setTicks(String... ticks)
Sets an array of ticks
|
void |
setTicksAsNumbers(double... ticksAsNumbers)
Sets an array of ticks
|
void |
setTop(int top)
Sets the top location in pixel
|
void |
setWeight(int weight)
Sets the weight of axis
|
void |
setWidth(int width)
Sets the width of axis
|
void |
setZeroLineIndex(int zeroLineIndex)
Sets the index of line 0 of axis
|
getCharbaId, getDrawingArea, getEnd, getId, getLabelRotation, getLongestLabelWidth, getLongestTextCache, getMax, getMaxAsDate, getMaxAsString, getMaxIndex, getMin, getMinAsDate, getMinAsString, getMinIndex, getMinNotZero, getPointLabels, getPositionAsString, getStart, getTickItems, getTicks, getTicksAsNumber, getTimeTickItems, getType, getXCenter, getYCenter, getZeroLineIndex, isHidden
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 AxisItem(NativeObject nativeObject)
nativeObject
- native java script object which contains all properties.public void setHidden(boolean hidden)
hidden
- true
if the axis must be hidden, otherwise false
.public void setFullWidth(boolean fullWidth)
fullWidth
- the full width of axispublic void setWeight(int weight)
weight
- the weight of axispublic void setMaxWidth(int maxWidth)
maxWidth
- the max width of axis in pixel.public void setMaxHeight(int maxHeight)
maxHeight
- the max height of the axis in pixelpublic void setHeight(int height)
height
- the height of axis in pixel.public void setTop(int top)
top
- the top location in pixelpublic void setBottom(int bottom)
bottom
- the bottom location in pixelpublic void setPaddingLeft(int paddingLeft)
paddingLeft
- the padding left in pixelpublic void setPaddingTop(int paddingTop)
paddingTop
- the padding top in pixelpublic void setPaddingRight(int paddingRight)
paddingRight
- the padding right in pixelpublic void setPaddingBottom(int paddingBottom)
paddingBottom
- the padding bottom in pixelpublic void setMin(String min)
min
- the minimum value of axispublic void setMax(String max)
max
- the maximum value of axispublic void setMin(double min)
min
- the minimum value of axispublic void setMax(double max)
max
- the maximum value of axispublic void setMin(Date min)
min
- the minimum value of axispublic void setMax(Date max)
max
- the maximum value of axispublic void setMinNotZero(double min)
CartesianLogarithmicAxis
.min
- the minimum value not zero of scale.public void setTicks(String... ticks)
ticks
- the array of tickspublic void setStart(int start)
start
- the start value of the axispublic void setEnd(int end)
end
- the end value of the axispublic void setTicksAsNumbers(double... ticksAsNumbers)
ticksAsNumbers
- the array of tickspublic void setZeroLineIndex(int zeroLineIndex)
zeroLineIndex
- the index of line 0 of axispublic void setLabelRotation(double labelRotation)
labelRotation
- the label rotation valuepublic void setWidth(int width)
width
- the width of axispublic void setLeft(int left)
left
- the left location in pixelpublic void setRight(int right)
right
- the right location in pixelpublic void setPosition(Position position)
position
- the position of axispublic AxisMarginsItem getAxisMargins()
public AxisMinSizeItem getAxisMinSize()