Package org.pepstock.charba.client.items
Class PointElement
-
- All Implemented Interfaces:
IsPoint
public class PointElement extends ChartElement
Maps the out-of-the-box CHART.JS element used to represents points on the charts.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static ChartElementFactoryFACTORYStatic instance for the POINT element factorystatic StringTYPEPOINT element type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPointElement(CallbacksEnvelop<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 Modifier and Type Method Description doublegetAngle()Returns the angle of data set item.doublegetControlPointNextX()Returns the next X control point of data set item in pixel.doublegetControlPointNextY()Returns the next Y control point of data set item in pixel.doublegetControlPointPreviousX()Returns the previous X control point of data set item in pixel.doublegetControlPointPreviousY()Returns the previous Y control point of data set item in pixel.PointElementOptionsgetOptions()Returns the element options.ParsedgetParsed()Returns the parsed values.-
Methods inherited from class org.pepstock.charba.client.items.ChartElement
getCenterPoint, getCenterPoint, getFinalPositionProps, getFinalPositionProps, getType, isActive, isSkipped, isStop, toString
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractReadOnlyPoint
getX, getY
-
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, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
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, 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
-
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
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
POINT element type.- See Also:
- Constant Field Values
-
FACTORY
public static final ChartElementFactory FACTORY
Static instance for the POINT element factory
-
-
Constructor Detail
-
PointElement
protected PointElement(CallbacksEnvelop<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
-
getOptions
public PointElementOptions getOptions()
Returns the element options.- Overrides:
getOptionsin classChartElement- Returns:
- the element options.
-
getParsed
public Parsed getParsed()
Returns the parsed values.- Returns:
- the parsed values.
-
getControlPointPreviousX
public double getControlPointPreviousX()
Returns the previous X control point of data set item in pixel.- Returns:
- the previous X control point of data set item in pixel.
-
getControlPointPreviousY
public double getControlPointPreviousY()
Returns the previous Y control point of data set item in pixel.- Returns:
- the previous Y control point of data set item in pixel.
-
getControlPointNextX
public double getControlPointNextX()
Returns the next X control point of data set item in pixel.- Returns:
- the next X control point of data set item in pixel.
-
getControlPointNextY
public double getControlPointNextY()
Returns the next Y control point of data set item in pixel.- Returns:
- the next Y control point of data set item in pixel.
-
getAngle
public double getAngle()
Returns the angle of data set item.- Returns:
- the angle of data set item.
-
-