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, setHoverBorderWidth
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
checkAndAddToParent, 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, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, 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, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidth
public 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 IsDefaultPoint
public void setHitRadius(double hitRadius)
hitRadius
- the pixel size of the non-displayed point.public double getHitRadius()
getHitRadius
in interface IsDefaultPoint
public void setHoverRadius(double hoverRadius)
hoverRadius
- the radius of the point when hovered.public double getHoverRadius()
getHoverRadius
in interface IsDefaultPoint
public void setRotation(double rotation)
rotation
- the point rotation (in degrees).public double getRotation()
getRotation
in interface IsDefaultPoint
public void setPointStyle(PointStyle pointStyle)
pointStyle
- array of the style of the point.public PointStyle getPointStyle()
getPointStyle
in interface IsDefaultPointStyleHandler
null
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 IsDefaultPointStyleHandler
true
if the point style is set by an Img
public Img getPointStyleAsImage()
null
.getPointStyleAsImage
in interface IsDefaultPointStyleHandler
null
.