public class Point extends AbstractElement<IsDefaultPoint> implements IsDefaultPoint
| Modifier | Constructor and Description |
|---|---|
protected |
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.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
double |
getHoverRadius()
Returns the radius of the point when hovered.
|
default PointStyle |
getPointStyle()
Returns the style of the point.
|
default Canvas |
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null. |
default Img |
getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returns null. |
org.pepstock.charba.client.options.PointStyleHandler |
getPointStyleHandler()
Returns a point style handler instance to use in the default methods of this interface.
|
default PointStyleType |
getPointStyleType()
Returns the type of point style.
|
double |
getRadius()
Returns the radius of the point.
|
double |
getRotation()
Returns the point rotation (in degrees).
|
void |
setHitRadius(double hitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.
|
void |
setHoverRadius(double hoverRadius)
Sets the radius of the point when hovered.
|
default void |
setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.
|
default void |
setPointStyle(Img pointStyle)
Sets the style of the point as image.
|
default void |
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
|
void |
setRadius(double radius)
Sets the radius of the point shape.
If set to 0, the point is not rendered. |
void |
setRotation(double rotation)
Sets the point rotation (in degrees).
|
getBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsString, getHoverBorderWidth, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidthgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, 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, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, 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, 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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidthprotected Point(Elements elements, Key childKey, IsDefaultPoint defaultValues, NativeObject nativeObject)
elements - parent node to use to add this element where changedchildKey - the property name of this element to use to add it to the parent.defaultValues - default providernativeObject - native object to map java script propertiespublic org.pepstock.charba.client.options.PointStyleHandler getPointStyleHandler()
public void setRadius(double radius)
radius - array of the radius of the point shape.public double getRadius()
getRadius in interface IsDefaultPointpublic void setHitRadius(double hitRadius)
hitRadius - the pixel size of the non-displayed point.public double getHitRadius()
getHitRadius in interface IsDefaultPointpublic void setHoverRadius(double hoverRadius)
hoverRadius - the radius of the point when hovered.public double getHoverRadius()
getHoverRadius in interface IsDefaultPointpublic void setRotation(double rotation)
rotation - the point rotation (in degrees).public double getRotation()
getRotation in interface IsDefaultPointpublic void setPointStyle(PointStyle pointStyle)
pointStyle - array of the style of the point.public PointStyle getPointStyle()
getPointStyle in interface IsDefaultPointStyleHandlernull if point style is set as imagepublic void setPointStyle(Img pointStyle)
pointStyle - image element of the style of the point as image.public PointStyleType getPointStyleType()
getPointStyleType in interface IsDefaultPointStyleHandlerpublic Img getPointStyleAsImage()
null.getPointStyleAsImage in interface IsDefaultPointStyleHandlernull.public void setPointStyle(Canvas pointStyle)
pointStyle - canvas element of the style of the point as canvas.public Canvas getPointStyleAsCanvas()
null.getPointStyleAsCanvas in interface IsDefaultPointStyleHandlernull.