public final class AxisItem extends ScaleItem
ScaleItem.Property
Constructor and Description |
---|
AxisItem(GenericJavaScriptObject javaScriptObject)
Wraps the CHART.JS java script object.
|
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(java.lang.String max)
Sets the maximum value of axis
|
void |
setMaxAsNumber(int 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(java.lang.String min)
Sets the minimum value of axis
|
void |
setMinAsNumber(int min)
Sets the minimum value of axis
|
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(java.lang.String... ticks)
Sets an array of ticks
|
void |
setTicksAsNumbers(double... ticksAsNumbers)
Sets an array of ticks
|
void |
setTicksAsNumbers(java.util.List<java.lang.Double> ticksAsNumbers)
Sets the list 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
|
getDrawingArea, getEnd, getId, getLabelRotation, getLongestLabelWidth, getLongestTextCache, getMax, getMaxIndex, getMin, getMinIndex, getPointLabels, getStart, getTicks, getTicksAsNumber, getXCenter, getYCenter, getZeroLineIndex, isHidden
getHeight, getMargins, getMaxHeight, getMaxWidth, getMinSize, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getWeight, getWidth, isFullWidth
getBottom, getLeft, getRight, getTop
checkAndGetDoubleValues, 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, type
public AxisItem(GenericJavaScriptObject javaScriptObject)
javaScriptObject
- CHART.JS java script objectpublic 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(java.lang.String min)
min
- the minimum value of axispublic void setMax(java.lang.String max)
max
- the maximum value of axispublic void setMinAsNumber(int min)
min
- the minimum value of axispublic void setMaxAsNumber(int max)
max
- the maximum value of axispublic void setTicks(java.lang.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 setTicksAsNumbers(java.util.List<java.lang.Double> ticksAsNumbers)
ticksAsNumbers
- the list 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 axisPosition
public AxisMarginsItem getAxisMargins()
AxisMarginsItem
public AxisMinSizeItem getAxisMinSize()
AxisMinSizeItem