Class AlignPositionElement
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.annotation.elements.AlignPositionElement
-
public final class AlignPositionElement extends NativeObjectContainer
This object is to set the position of a label, setting the horizontal and vertical position.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelPosition
getX()
Returns the anchor position of label on horizontal dimension.double
getXAsPercentage()
Returns the position of label by the percentage (value between 0 and 1) of the horizontal dimension.LabelPosition
getY()
Returns the anchor position of label on vertical dimension.double
getYAsPercentage()
Returns the position of label by the percentage (value between 0 and 1) of the vertical dimension.void
setX(LabelPosition position)
Sets the anchor position of label on horizontal dimension.void
setXAsPercentage(double percentage)
Sets the position of label by the percentage (value between 0 and 1) of the horizontal dimension.void
setY(LabelPosition position)
Sets the anchor position of label on vertical dimension.void
setYAsPercentage(double percentage)
Sets the position of label by the percentage (value between 0 and 1) of the vertical dimension.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
setX
public void setX(LabelPosition position)
Sets the anchor position of label on horizontal dimension.- Parameters:
position
- the anchor position of label on horizontal dimension
-
setY
public void setY(LabelPosition position)
Sets the anchor position of label on vertical dimension.- Parameters:
position
- the anchor position of label on vertical dimension
-
setXAsPercentage
public void setXAsPercentage(double percentage)
Sets the position of label by the percentage (value between 0 and 1) of the horizontal dimension.- Parameters:
percentage
- the position of label by the percentage (value between 0 and 1) of the horizontal dimension
-
setYAsPercentage
public void setYAsPercentage(double percentage)
Sets the position of label by the percentage (value between 0 and 1) of the vertical dimension.- Parameters:
percentage
- the position of label by the percentage (value between 0 and 1) of the vertical dimension
-
getX
public LabelPosition getX()
Returns the anchor position of label on horizontal dimension.- Returns:
- the anchor position of label on horizontal dimension.
-
getY
public LabelPosition getY()
Returns the anchor position of label on vertical dimension.- Returns:
- the anchor position of label on vertical dimension.
-
getXAsPercentage
public double getXAsPercentage()
Returns the position of label by the percentage (value between 0 and 1) of the horizontal dimension.- Returns:
- the position of label by the percentage (value between 0 and 1) of the horizontal dimension
-
getYAsPercentage
public double getYAsPercentage()
Returns the position of label by the percentage (value between 0 and 1) of the vertical dimension.- Returns:
- the position of label by the percentage (value between 0 and 1) of the vertical dimension
-
-