Package org.pepstock.charba.client.items
Class ArcElement
-
- All Implemented Interfaces:
IsPoint
public class ArcElement extends ChartElement
Maps the out-of-the-box CHART.JS element used to represents arcs on the charts.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static ChartElementFactory
FACTORY
Static instance for the ARC element factorystatic String
TYPE
ARC element type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCircumference()
Returns the circumference of data set item.double
getEndAngle()
Returns the end angle of data set item.double
getInnerRadius()
Returns the inner radius of data set item in pixel.ArcElementOptions
getOptions()
Returns the element options.double
getOuterRadius()
Returns the outer radius of data set item in pixel.double
getStartAngle()
Returns the start angle of data set item.-
Methods inherited from class org.pepstock.charba.client.items.ChartElement
getCenterPoint, getCenterPoint, getContext, getFinalPositionProps, getFinalPositionProps, getType, isActive, isSkipped, isStop, nativeObject, 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
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, 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
ARC element type.- See Also:
- Constant Field Values
-
FACTORY
public static final ChartElementFactory FACTORY
Static instance for the ARC element factory
-
-
Method Detail
-
getOptions
public ArcElementOptions getOptions()
Returns the element options.- Overrides:
getOptions
in classChartElement
- Returns:
- the element options.
-
getStartAngle
public double getStartAngle()
Returns the start angle of data set item.- Returns:
- the start angle of data set item.
-
getEndAngle
public double getEndAngle()
Returns the end angle of data set item.- Returns:
- the end angle of data set item.
-
getCircumference
public double getCircumference()
Returns the circumference of data set item.- Returns:
- the circumference of data set item.
-
getOuterRadius
public double getOuterRadius()
Returns the outer radius of data set item in pixel.- Returns:
- the outer radius of data set item in pixel.
-
getInnerRadius
public double getInnerRadius()
Returns the inner radius of data set item in pixel.- Returns:
- the inner radius of data set item in pixel.
-
-