public class Point extends Object
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the background color.
|
String |
getBackgroundColorAsString()
Returns the background color.
|
ColorCallback<DatasetContext> |
getBackgroundColorCallback()
Returns the background color callback, if set, otherwise
null . |
IsColor |
getBorderColor()
Returns the border color.
|
String |
getBorderColorAsString()
Returns the border color.
|
ColorCallback<DatasetContext> |
getBorderColorCallback()
Returns the border color callback, if set, otherwise
null . |
int |
getBorderWidth()
Returns the border width.
|
WidthCallback<DatasetContext> |
getBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected IsDefaultPoint |
getDefaultElement()
Returns the element instance to be managed.
|
protected AbstractElement<IsDefaultPoint> |
getElement()
Returns the element instance to be managed.
|
double |
getHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.
|
RadiusCallback<DatasetContext> |
getHitRadiusCallback()
Returns the hit radius callback, if set, otherwise
null . |
IsColor |
getHoverBackgroundColor()
Returns the background color when hovered.
|
String |
getHoverBackgroundColorAsString()
Returns the background color when hovered.
|
ColorCallback<DatasetContext> |
getHoverBackgroundColorCallback()
Returns the background color callback, if set, otherwise
null . |
IsColor |
getHoverBorderColor()
Returns the border color when hovered.
|
String |
getHoverBorderColorAsString()
Returns the border color when hovered.
|
ColorCallback<DatasetContext> |
getHoverBorderColorCallback()
Returns the border color callback, if set, otherwise
null . |
int |
getHoverBorderWidth()
Returns the border width when hovered.
|
WidthCallback<DatasetContext> |
getHoverBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
double |
getHoverRadius()
Returns the radius of the point when hovered.
|
RadiusCallback<DatasetContext> |
getHoverRadiusCallback()
Returns the hover radius callback, if set, otherwise
null . |
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
PointStyle |
getPointStyle()
Returns the style of the legend.
|
Canvas |
getPointStyleAsCanvas()
Returns the style of the point as canvas.
|
Img |
getPointStyleAsImage()
Returns the style of the point as image.
|
PointStyleCallback |
getPointStyleCallback()
Returns the point style callback, if set, otherwise
null . |
double |
getRadius()
Returns the radius of the point.
|
RadiusCallback<DatasetContext> |
getRadiusCallback()
Returns the radius callback, if set, otherwise
null . |
double |
getRotation()
Returns the point rotation (in degrees).
|
RotationCallback<DatasetContext> |
getRotationCallback()
Returns the rotation callback, if set, otherwise
null . |
void |
setBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback)
Sets the background color callback.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color.
|
void |
setBackgroundColor(NativeCallback backgroundColorCallback)
Sets the background color callback.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color.
|
void |
setBorderColor(ColorCallback<DatasetContext> borderColorCallback)
Sets the border color callback.
|
void |
setBorderColor(IsColor borderColor)
Sets the border color.
|
void |
setBorderColor(NativeCallback borderColorCallback)
Sets the border color callback.
|
void |
setBorderColor(String borderColor)
Sets the border color.
|
void |
setBorderWidth(int borderWidth)
Sets the border width.
|
void |
setBorderWidth(NativeCallback borderWidthCallback)
Sets the border width callback.
|
void |
setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
Sets the border width callback.
|
void |
setHitRadius(double hitRadius)
Sets the pixel size of the non-displayed point that reacts to mouse events.
|
void |
setHitRadius(NativeCallback hitRadiusCallback)
Sets the hit radius callback.
|
void |
setHitRadius(RadiusCallback<DatasetContext> hitRadiusCallback)
Sets the hit radius callback.
|
void |
setHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback)
Sets the background color callback, as hovered.
|
void |
setHoverBackgroundColor(IsColor backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback)
Sets the background color callback, as hovered.
|
void |
setHoverBackgroundColor(String backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback)
Sets the border color callback, as hovered.
|
void |
setHoverBorderColor(IsColor borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderColor(NativeCallback hoverBorderColorCallback)
Sets the border color callback, as hovered.
|
void |
setHoverBorderColor(String borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderWidth(int borderWidth)
Sets the border width when hovered.
|
void |
setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
Sets the border width callback, as hovered.
|
void |
setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
Sets the border width callback, as hovered.
|
void |
setHoverRadius(double hoverRadius)
Sets the radius of the point when hovered.
|
void |
setHoverRadius(NativeCallback hoverRadiusCallback)
Sets the hover radius callback.
|
void |
setHoverRadius(RadiusCallback<DatasetContext> hoverRadiusCallback)
Sets the hover radius callback.
|
void |
setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.
|
void |
setPointStyle(Img pointStyle)
Sets the style of the point as image.
|
void |
setPointStyle(NativeCallback pointStyleCallback)
Sets the point style callback.
|
void |
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
|
void |
setPointStyle(PointStyleCallback pointStyleCallback)
Sets the point style callback.
|
void |
setRadius(double radius)
Sets the radius of the point shape.
If set to 0, the point is not rendered. |
void |
setRadius(NativeCallback radiusCallback)
Sets the radius callback.
|
void |
setRadius(RadiusCallback<DatasetContext> radiusCallback)
Sets the radius callback.
|
void |
setRotation(double rotation)
Sets the point rotation (in degrees).
|
void |
setRotation(NativeCallback rotationCallback)
Sets the rotation callback.
|
void |
setRotation(RotationCallback<DatasetContext> rotationCallback)
Sets the rotation callback.
|
protected AbstractElement<IsDefaultPoint> getElement()
protected IsDefaultPoint getDefaultElement()
public void setRadius(double radius)
radius
- array of the radius of the point shape.public double getRadius()
public void setPointStyle(PointStyle pointStyle)
pointStyle
- the style of the point.public void setPointStyle(Canvas pointStyle)
pointStyle
- the style of the point.public void setPointStyle(Img pointStyle)
pointStyle
- the style of the point.public Canvas getPointStyleAsCanvas()
public PointStyle getPointStyle()
public Img getPointStyleAsImage()
public void setHitRadius(double hitRadius)
hitRadius
- the pixel size of the non-displayed point.public double getHitRadius()
public void setHoverRadius(double hoverRadius)
hoverRadius
- the radius of the point when hovered.public double getHoverRadius()
public void setRotation(double rotation)
rotation
- the point rotation (in degrees).public double getRotation()
public PointStyleCallback getPointStyleCallback()
null
.null
.public void setPointStyle(PointStyleCallback pointStyleCallback)
pointStyleCallback
- the point style callback.public void setPointStyle(NativeCallback pointStyleCallback)
pointStyleCallback
- the point style callback.public RadiusCallback<DatasetContext> getRadiusCallback()
null
.null
.public void setRadius(RadiusCallback<DatasetContext> radiusCallback)
radiusCallback
- the radius callback.public void setRadius(NativeCallback radiusCallback)
radiusCallback
- the radius callback.public RadiusCallback<DatasetContext> getHitRadiusCallback()
null
.null
.public void setHitRadius(RadiusCallback<DatasetContext> hitRadiusCallback)
hitRadiusCallback
- the hit radius callback.public void setHitRadius(NativeCallback hitRadiusCallback)
hitRadiusCallback
- the hit radius callback.public RadiusCallback<DatasetContext> getHoverRadiusCallback()
null
.null
.public void setHoverRadius(RadiusCallback<DatasetContext> hoverRadiusCallback)
hoverRadiusCallback
- the hover radius callback.public void setHoverRadius(NativeCallback hoverRadiusCallback)
hoverRadiusCallback
- the hover radius callback.public RotationCallback<DatasetContext> getRotationCallback()
null
.null
.public void setRotation(RotationCallback<DatasetContext> rotationCallback)
rotationCallback
- the rotation callback.public void setRotation(NativeCallback rotationCallback)
rotationCallback
- the rotation callback.public void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color.public void setBackgroundColor(String backgroundColor)
backgroundColor
- the background color.public String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public void setBorderWidth(int borderWidth)
borderWidth
- the border width.public int getBorderWidth()
public void setBorderColor(IsColor borderColor)
borderColor
- the border color.public void setBorderColor(String borderColor)
borderColor
- the border color.public String getBorderColorAsString()
public IsColor getBorderColor()
public void setHoverBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color when hovered.public void setHoverBackgroundColor(String backgroundColor)
backgroundColor
- the background color when hovered.public String getHoverBackgroundColorAsString()
public IsColor getHoverBackgroundColor()
public void setHoverBorderWidth(int borderWidth)
borderWidth
- the border width when hovered.public int getHoverBorderWidth()
public void setHoverBorderColor(IsColor borderColor)
borderColor
- the border color when hovered.public void setHoverBorderColor(String borderColor)
borderColor
- the border color when hovered.public String getHoverBorderColorAsString()
public IsColor getHoverBorderColor()
public ColorCallback<DatasetContext> getBackgroundColorCallback()
null
.null
.public void setBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback)
backgroundColorCallback
- the background color callback.public void setBackgroundColor(NativeCallback backgroundColorCallback)
backgroundColorCallback
- the background color callback.public ColorCallback<DatasetContext> getBorderColorCallback()
null
.null
.public void setBorderColor(ColorCallback<DatasetContext> borderColorCallback)
borderColorCallback
- the border color callback.public void setBorderColor(NativeCallback borderColorCallback)
borderColorCallback
- the border color callback.public WidthCallback<DatasetContext> getBorderWidthCallback()
null
.null
.public void setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
borderWidthCallback
- the border width callback.public void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback
- the border width callback.public ColorCallback<DatasetContext> getHoverBackgroundColorCallback()
null
.null
.public void setHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback)
hoverBackgroundColorCallback
- the background color callback, as hoveredpublic void setHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback)
hoverBackgroundColorCallback
- the background color callback, as hoveredpublic ColorCallback<DatasetContext> getHoverBorderColorCallback()
null
.null
.public void setHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback)
hoverBorderColorCallback
- the border color callback, as hoveredpublic void setHoverBorderColor(NativeCallback hoverBorderColorCallback)
hoverBorderColorCallback
- the border color callback, as hoveredpublic WidthCallback<DatasetContext> getHoverBorderWidthCallback()
null
.null
.public void setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
hoverBorderWidthCallback
- the border width callback, as hoveredpublic void setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
hoverBorderWidthCallback
- the border width callback, as hoveredprotected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()