Class Point
- 
- All Implemented Interfaces:
- IsDefaultOptionsElement,- IsDefaultPoint,- IsDefaultPointStyleHandler
 - Direct Known Subclasses:
- BubbleMapPoint
 
 public class Point extends AbstractElement<IsDefaultPoint> implements IsDefaultPoint Point elements are used to represent the points in a line chart or a bubble chart.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedPoint(Elements elements, Key childKey, IsDefaultPoint defaultValues, NativeObject nativeObject)Creates the object with the parent, the key of this element, default values and native object to map java script properties.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description doublegetHitRadius()Returns the pixel size of the non-displayed point that reacts to mouse events.doublegetHoverRadius()Returns the radius of the point when hovered.default PointStylegetPointStyle()Returns the style of the point.default CanvasgetPointStyleAsCanvas()Returns the style of the point as canvas.
 If property is missing or not an canvas, returnsnull.default ImggetPointStyleAsImage()Returns the style of the point as image.
 If property is missing or not an image, returnsnull.org.pepstock.charba.client.options.PointStyleHandlergetPointStyleHandler()default PointStyleTypegetPointStyleType()Returns the type of point style.doublegetRadius()Returns the radius of the point.doublegetRotation()Returns the point rotation (in degrees).voidsetHitRadius(double hitRadius)Sets the pixel size of the non-displayed point that reacts to mouse events.voidsetHoverRadius(double hoverRadius)Sets the radius of the point when hovered.default voidsetPointStyle(Canvas pointStyle)Sets the style of the point as canvas.default voidsetPointStyle(Img pointStyle)Sets the style of the point as image.default voidsetPointStyle(PointStyle pointStyle)Sets the style of the point.voidsetRadius(double radius)Sets the radius of the point shape.
 If set to 0, the point is not rendered.voidsetRotation(double rotation)Sets the point rotation (in degrees).- 
Methods inherited from class org.pepstock.charba.client.options.AbstractElementgetBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsString, getHoverBorderWidth, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidth
 - 
Methods inherited from class org.pepstock.charba.client.options.AbstractModelgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, 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.NativeObjectContainercheckDefaultValuesArgument, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultOptionsElementgetBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidth
 
- 
 
- 
- 
- 
Constructor Detail- 
Pointprotected Point(Elements elements, Key childKey, IsDefaultPoint defaultValues, NativeObject nativeObject) Creates the object with the parent, the key of this element, default values and native object to map java script properties.- Parameters:
- elements- parent node to use to add this element where changed
- childKey- the property name of this element to use to add it to the parent.
- defaultValues- default provider
- nativeObject- native object to map java script properties
 
 
- 
 - 
Method Detail- 
getPointStyleHandlerpublic org.pepstock.charba.client.options.PointStyleHandler getPointStyleHandler() 
 - 
setRadiuspublic void setRadius(double radius) Sets the radius of the point shape.
 If set to 0, the point is not rendered.- Parameters:
- radius- array of the radius of the point shape.
 
 - 
getRadiuspublic double getRadius() Returns the radius of the point.- Specified by:
- getRadiusin interface- IsDefaultPoint
- Returns:
- the radius of the point.
 
 - 
setHitRadiuspublic void setHitRadius(double hitRadius) Sets the pixel size of the non-displayed point that reacts to mouse events.- Parameters:
- hitRadius- the pixel size of the non-displayed point.
 
 - 
getHitRadiuspublic double getHitRadius() Returns the pixel size of the non-displayed point that reacts to mouse events.- Specified by:
- getHitRadiusin interface- IsDefaultPoint
- Returns:
- the pixel size of the non-displayed point.
 
 - 
setHoverRadiuspublic void setHoverRadius(double hoverRadius) Sets the radius of the point when hovered.- Parameters:
- hoverRadius- the radius of the point when hovered.
 
 - 
getHoverRadiuspublic double getHoverRadius() Returns the radius of the point when hovered.- Specified by:
- getHoverRadiusin interface- IsDefaultPoint
- Returns:
- the radius of the point when hovered.
 
 - 
setRotationpublic void setRotation(double rotation) Sets the point rotation (in degrees).- Parameters:
- rotation- the point rotation (in degrees).
 
 - 
getRotationpublic double getRotation() Returns the point rotation (in degrees).- Specified by:
- getRotationin interface- IsDefaultPoint
- Returns:
- the point rotation (in degrees).
 
 - 
setPointStylepublic default void setPointStyle(PointStyle pointStyle) Sets the style of the point.- Parameters:
- pointStyle- array of the style of the point.
 
 - 
getPointStylepublic default PointStyle getPointStyle() Returns the style of the point.- Specified by:
- getPointStylein interface- IsDefaultPointStyleHandler
- Returns:
- the style of the point or nullif point style is set as image
 
 - 
setPointStylepublic default void setPointStyle(Img pointStyle) Sets the style of the point as image.- Parameters:
- pointStyle- image element of the style of the point as image.
 
 - 
getPointStyleTypepublic default PointStyleType getPointStyleType() Returns the type of point style.- Specified by:
- getPointStyleTypein interface- IsDefaultPointStyleHandler
- Returns:
- the type of point style
 
 - 
getPointStyleAsImagepublic default Img getPointStyleAsImage() Returns the style of the point as image.
 If property is missing or not an image, returnsnull.- Specified by:
- getPointStyleAsImagein interface- IsDefaultPointStyleHandler
- Returns:
- image of the style of the point as image.
 If property is missing or not a image, returnsnull.
 
 - 
setPointStylepublic default void setPointStyle(Canvas pointStyle) Sets the style of the point as canvas.- Parameters:
- pointStyle- canvas element of the style of the point as canvas.
 
 - 
getPointStyleAsCanvaspublic default Canvas getPointStyleAsCanvas() Returns the style of the point as canvas.
 If property is missing or not an canvas, returnsnull.- Specified by:
- getPointStyleAsCanvasin interface- IsDefaultPointStyleHandler
- Returns:
- image of the style of the point as canvas.
 If property is missing or not a canvas, returnsnull.
 
 
- 
 
-