Class AnnotationProperties
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.commons.AbstractReadOnlyPoint
-
- org.pepstock.charba.client.annotation.elements.AnnotationProperties
-
- All Implemented Interfaces:
IsPoint
public final class AnnotationProperties extends AbstractReadOnlyPoint
Maps all properties of the annotation element, the implementation of the annotation options in the plugin.
It provides all dimensions of the element and sub elements.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description AnnotationProperties()Creates an empty item.AnnotationProperties(AnnotationEnvelop<NativeObject> envelop)Creates the item using an envelop of the native java script object which contains all properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description IsPointgetCenterPoint()Returns the center point of the element.org.pepstock.charba.client.annotation.elements.AnnotationPropertiesHandlergetHandler()default doublegetHeight()Returns the height of element in pixel.OptionsElementgetOptions()Returns the element options ornullif options are not stored in the element.default doublegetPointX()Returns the X location of element point in pixel.default doublegetPointY()Returns the Y location of element point in pixel.default doublegetRadius()Returns the radius of element in pixel.default doublegetWidth()Returns the width of element in pixel.default doublegetX2()Returns the X2 location of element in pixel.default doublegetY2()Returns the Y location of element in pixel.NativeObjectnativeObject()Returns the native object instance.default voidsetCenterPoint(double x, double y)Sets the center point of the element.default voidsetCenterPoint(IsPoint point)Sets the center point of the element.default voidsetHeight(double height)Sets the height of element in pixel.default voidsetPointX(double x)Sets the X location of element point in pixel.default voidsetPointY(double y)Sets the Y location of element point in pixel.default voidsetRadius(double radius)Sets the radius of element in pixel.default voidsetWidth(double width)Sets the width of element in pixel.default voidsetX(double x)Sets the X location of element in pixel.default voidsetX2(double x2)Sets the X2 location of element in pixel.default voidsetY(double y)Sets the Y location of element in pixel.default voidsetY2(double y2)Sets the Y2 location of element in pixel.-
Methods inherited from class org.pepstock.charba.client.commons.AbstractReadOnlyPoint
getX, getY, toString
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, 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, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.commons.IsPoint
isConsistent
-
-
-
-
Constructor Detail
-
AnnotationProperties
public AnnotationProperties()
Creates an empty item.
-
AnnotationProperties
public AnnotationProperties(AnnotationEnvelop<NativeObject> envelop)
Creates the item using an envelop of the native java script object which contains all properties.- Parameters:
envelop- envelop of the nativeObject native java script object which contains all properties.
-
-
Method Detail
-
getHandler
public org.pepstock.charba.client.annotation.elements.AnnotationPropertiesHandler getHandler()
-
getOptions
public OptionsElement getOptions()
Returns the element options ornullif options are not stored in the element.- Returns:
- the element options or
nullif options are not stored in the element.
-
getCenterPoint
public IsPoint getCenterPoint()
Returns the center point of the element.- Returns:
- the center point of the element.
-
nativeObject
public NativeObject nativeObject()
Returns the native object instance.- Returns:
- the native object instance.
-
setCenterPoint
public default void setCenterPoint(IsPoint point)
Sets the center point of the element.- Parameters:
point- the center point of the element.
-
setCenterPoint
public default void setCenterPoint(double x, double y)Sets the center point of the element.- Parameters:
x- the X value of center point of the element.y- the Y value of center point of the element.
-
setX
public default void setX(double x)
Sets the X location of element in pixel.- Parameters:
x- the X location of element in pixel.
-
setY
public default void setY(double y)
Sets the Y location of element in pixel.- Parameters:
y- the Y location of element in pixel.
-
getX2
public default double getX2()
Returns the X2 location of element in pixel.- Returns:
- the X2 location of element in pixel.
-
setX2
public default void setX2(double x2)
Sets the X2 location of element in pixel.- Parameters:
x2- the X2 location of element in pixel.
-
getY2
public default double getY2()
Returns the Y location of element in pixel.- Returns:
- the Y location of element in pixel.
-
setY2
public default void setY2(double y2)
Sets the Y2 location of element in pixel.- Parameters:
y2- the Y2 location of element in pixel.
-
getWidth
public default double getWidth()
Returns the width of element in pixel.- Returns:
- the width of element in pixel.
-
setWidth
public default void setWidth(double width)
Sets the width of element in pixel.- Parameters:
width- the width of element in pixel.
-
getHeight
public default double getHeight()
Returns the height of element in pixel.- Returns:
- the height of element in pixel.
-
setHeight
public default void setHeight(double height)
Sets the height of element in pixel.- Parameters:
height- the height of element in pixel.
-
getRadius
public default double getRadius()
Returns the radius of element in pixel.- Returns:
- the radius of element in pixel.
-
setRadius
public default void setRadius(double radius)
Sets the radius of element in pixel.- Parameters:
radius- the radius of element in pixel.
-
getPointX
public default double getPointX()
Returns the X location of element point in pixel.- Returns:
- the X location of element point in pixel.
-
setPointX
public default void setPointX(double x)
Sets the X location of element point in pixel.- Parameters:
x- the X location of element point in pixel.
-
getPointY
public default double getPointY()
Returns the Y location of element point in pixel.- Returns:
- the Y location of element point in pixel.
-
setPointY
public default void setPointY(double y)
Sets the Y location of element point in pixel.- Parameters:
y- the Y location of element point in pixel.
-
-