public final class Point extends AbstractElement<IsDefaultPoint> implements IsDefaultPoint
| 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 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.
|
double |
getRadius()
Returns the radius of the point.
|
double |
getRotation()
Returns the point rotation (in degrees).
|
default boolean |
isPointStyleAsImage()
Returns
true if the point style is set by an Img. |
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(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, 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, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, 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, 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, getHoverBorderWidthpublic 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 boolean isPointStyleAsImage()
true if the point style is set by an Img.isPointStyleAsImage in interface IsDefaultPointStyleHandlertrue if the point style is set by an Imgpublic Img getPointStyleAsImage()
null.getPointStyleAsImage in interface IsDefaultPointStyleHandlernull.