Class Point
- java.lang.Object
- 
- org.pepstock.charba.client.configuration.Point
 
- 
 public class Point extends Object Point elements are used to represent the points in a line chart or a bubble chart.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColorgetBackgroundColor()Returns the background color.StringgetBackgroundColorAsString()Returns the background color.ColorCallback<DatasetContext>getBackgroundColorCallback()Returns the background color callback, if set, otherwisenull.IsColorgetBorderColor()Returns the border color.StringgetBorderColorAsString()Returns the border color.ColorCallback<DatasetContext>getBorderColorCallback()Returns the border color callback, if set, otherwisenull.intgetBorderWidth()Returns the border width.WidthCallback<DatasetContext>getBorderWidthCallback()Returns the border width callback, if set, otherwisenull.IsChartgetChart()Returns the chart instanceprotected ExtendedOptionsgetConfiguration()Returns the configuration element.protected IsDefaultPointgetDefaultElement()Returns the element instance to be managed.protected AbstractElement<IsDefaultPoint>getElement()Returns the element instance to be managed.doublegetHitRadius()Returns the pixel size of the non-displayed point that reacts to mouse events.RadiusCallback<DatasetContext>getHitRadiusCallback()Returns the hit radius callback, if set, otherwisenull.IsColorgetHoverBackgroundColor()Returns the background color when hovered.StringgetHoverBackgroundColorAsString()Returns the background color when hovered.ColorCallback<DatasetContext>getHoverBackgroundColorCallback()Returns the background color callback, if set, otherwisenull.IsColorgetHoverBorderColor()Returns the border color when hovered.StringgetHoverBorderColorAsString()Returns the border color when hovered.ColorCallback<DatasetContext>getHoverBorderColorCallback()Returns the border color callback, if set, otherwisenull.intgetHoverBorderWidth()Returns the border width when hovered.WidthCallback<DatasetContext>getHoverBorderWidthCallback()Returns the border width callback, if set, otherwisenull.doublegetHoverRadius()Returns the radius of the point when hovered.RadiusCallback<DatasetContext>getHoverRadiusCallback()Returns the hover radius callback, if set, otherwisenull.protected ConfigurationOptionsgetOptions()Returns the configuration options.PointStylegetPointStyle()Returns the style of the legend.CanvasgetPointStyleAsCanvas()Returns the style of the point as canvas.ImggetPointStyleAsImage()Returns the style of the point as image.PointStyleCallback<DatasetContext>getPointStyleCallback()Returns the point style callback, if set, otherwisenull.doublegetRadius()Returns the radius of the point.RadiusCallback<DatasetContext>getRadiusCallback()Returns the radius callback, if set, otherwisenull.doublegetRotation()Returns the point rotation (in degrees).RotationCallback<DatasetContext>getRotationCallback()Returns the rotation callback, if set, otherwisenull.voidsetBackgroundColor(String backgroundColor)Sets the background color.voidsetBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback)Sets the background color callback.voidsetBackgroundColor(NativeCallback backgroundColorCallback)Sets the background color callback.voidsetBackgroundColor(IsColor backgroundColor)Sets the background color.voidsetBorderColor(String borderColor)Sets the border color.voidsetBorderColor(ColorCallback<DatasetContext> borderColorCallback)Sets the border color callback.voidsetBorderColor(NativeCallback borderColorCallback)Sets the border color callback.voidsetBorderColor(IsColor borderColor)Sets the border color.voidsetBorderWidth(int borderWidth)Sets the border width.voidsetBorderWidth(NativeCallback borderWidthCallback)Sets the border width callback.voidsetBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)Sets the border width callback.voidsetHitRadius(double hitRadius)Sets the pixel size of the non-displayed point that reacts to mouse events.voidsetHitRadius(NativeCallback hitRadiusCallback)Sets the hit radius callback.voidsetHitRadius(RadiusCallback<DatasetContext> hitRadiusCallback)Sets the hit radius callback.voidsetHoverBackgroundColor(String backgroundColor)Sets the background color when hovered.voidsetHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback)Sets the background color callback, as hovered.voidsetHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback)Sets the background color callback, as hovered.voidsetHoverBackgroundColor(IsColor backgroundColor)Sets the background color when hovered.voidsetHoverBorderColor(String borderColor)Sets the border color when hovered.voidsetHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback)Sets the border color callback, as hovered.voidsetHoverBorderColor(NativeCallback hoverBorderColorCallback)Sets the border color callback, as hovered.voidsetHoverBorderColor(IsColor borderColor)Sets the border color when hovered.voidsetHoverBorderWidth(int borderWidth)Sets the border width when hovered.voidsetHoverBorderWidth(NativeCallback hoverBorderWidthCallback)Sets the border width callback, as hovered.voidsetHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)Sets the border width callback, as hovered.voidsetHoverRadius(double hoverRadius)Sets the radius of the point when hovered.voidsetHoverRadius(NativeCallback hoverRadiusCallback)Sets the hover radius callback.voidsetHoverRadius(RadiusCallback<DatasetContext> hoverRadiusCallback)Sets the hover radius callback.voidsetPointStyle(boolean pointStyle)Sets the style of the point.voidsetPointStyle(NativeCallback pointStyleCallback)Sets the point style callback.voidsetPointStyle(PointStyleCallback<DatasetContext> pointStyleCallback)Sets the point style callback.voidsetPointStyle(Canvas pointStyle)Sets the style of the point as canvas.voidsetPointStyle(Img pointStyle)Sets the style of the point as image.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.voidsetRadius(NativeCallback radiusCallback)Sets the radius callback.voidsetRadius(RadiusCallback<DatasetContext> radiusCallback)Sets the radius callback.voidsetRotation(double rotation)Sets the point rotation (in degrees).voidsetRotation(NativeCallback rotationCallback)Sets the rotation callback.voidsetRotation(RotationCallback<DatasetContext> rotationCallback)Sets the rotation callback.
 
- 
- 
- 
Method Detail- 
getElementprotected AbstractElement<IsDefaultPoint> getElement() Returns the element instance to be managed.- Returns:
- the element instance to be managed
 
 - 
getDefaultElementprotected IsDefaultPoint getDefaultElement() Returns the element instance to be managed.- Returns:
- the element instance to be managed
 
 - 
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.- Returns:
- the radius of the point.
 
 - 
setPointStylepublic void setPointStyle(boolean pointStyle) Sets the style of the point.- Parameters:
- pointStyle- the style of the point.
 
 - 
setPointStylepublic void setPointStyle(PointStyle pointStyle) Sets the style of the point.- Parameters:
- pointStyle- the style of the point.
 
 - 
setPointStylepublic void setPointStyle(Canvas pointStyle) Sets the style of the point as canvas.- Parameters:
- pointStyle- the style of the point.
 
 - 
setPointStylepublic void setPointStyle(Img pointStyle) Sets the style of the point as image.- Parameters:
- pointStyle- the style of the point.
 
 - 
getPointStyleAsCanvaspublic Canvas getPointStyleAsCanvas() Returns the style of the point as canvas.- Returns:
- the style of the point as canvas.
 
 - 
getPointStylepublic PointStyle getPointStyle() Returns the style of the legend.- Returns:
- the style of the legend.
 
 - 
getPointStyleAsImagepublic Img getPointStyleAsImage() Returns the style of the point as image.- Returns:
- the style of the point as image.
 
 - 
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.- 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.- 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).- Returns:
- the point rotation (in degrees).
 
 - 
getPointStyleCallbackpublic PointStyleCallback<DatasetContext> getPointStyleCallback() Returns the point style callback, if set, otherwisenull.- Returns:
- the point style callback, if set, otherwise null.
 
 - 
setPointStylepublic void setPointStyle(PointStyleCallback<DatasetContext> pointStyleCallback) Sets the point style callback.- Parameters:
- pointStyleCallback- the point style callback.
 
 - 
setPointStylepublic void setPointStyle(NativeCallback pointStyleCallback) Sets the point style callback.- Parameters:
- pointStyleCallback- the point style callback.
 
 - 
getRadiusCallbackpublic RadiusCallback<DatasetContext> getRadiusCallback() Returns the radius callback, if set, otherwisenull.- Returns:
- the radius callback, if set, otherwise null.
 
 - 
setRadiuspublic void setRadius(RadiusCallback<DatasetContext> radiusCallback) Sets the radius callback.- Parameters:
- radiusCallback- the radius callback.
 
 - 
setRadiuspublic void setRadius(NativeCallback radiusCallback) Sets the radius callback.- Parameters:
- radiusCallback- the radius callback.
 
 - 
getHitRadiusCallbackpublic RadiusCallback<DatasetContext> getHitRadiusCallback() Returns the hit radius callback, if set, otherwisenull.- Returns:
- the hit radius callback, if set, otherwise null.
 
 - 
setHitRadiuspublic void setHitRadius(RadiusCallback<DatasetContext> hitRadiusCallback) Sets the hit radius callback.- Parameters:
- hitRadiusCallback- the hit radius callback.
 
 - 
setHitRadiuspublic void setHitRadius(NativeCallback hitRadiusCallback) Sets the hit radius callback.- Parameters:
- hitRadiusCallback- the hit radius callback.
 
 - 
getHoverRadiusCallbackpublic RadiusCallback<DatasetContext> getHoverRadiusCallback() Returns the hover radius callback, if set, otherwisenull.- Returns:
- the hover radius callback, if set, otherwise null.
 
 - 
setHoverRadiuspublic void setHoverRadius(RadiusCallback<DatasetContext> hoverRadiusCallback) Sets the hover radius callback.- Parameters:
- hoverRadiusCallback- the hover radius callback.
 
 - 
setHoverRadiuspublic void setHoverRadius(NativeCallback hoverRadiusCallback) Sets the hover radius callback.- Parameters:
- hoverRadiusCallback- the hover radius callback.
 
 - 
getRotationCallbackpublic RotationCallback<DatasetContext> getRotationCallback() Returns the rotation callback, if set, otherwisenull.- Returns:
- the rotation callback, if set, otherwise null.
 
 - 
setRotationpublic void setRotation(RotationCallback<DatasetContext> rotationCallback) Sets the rotation callback.- Parameters:
- rotationCallback- the rotation callback.
 
 - 
setRotationpublic void setRotation(NativeCallback rotationCallback) Sets the rotation callback.- Parameters:
- rotationCallback- the rotation callback.
 
 - 
setBackgroundColorpublic void setBackgroundColor(IsColor backgroundColor) Sets the background color.- Parameters:
- backgroundColor- the background color.
 
 - 
setBackgroundColorpublic void setBackgroundColor(String backgroundColor) Sets the background color.- Parameters:
- backgroundColor- the background color.
 
 - 
getBackgroundColorAsStringpublic String getBackgroundColorAsString() Returns the background color.- Returns:
- the background color.
 
 - 
getBackgroundColorpublic IsColor getBackgroundColor() Returns the background color.- Returns:
- the background color.
 
 - 
setBorderWidthpublic void setBorderWidth(int borderWidth) Sets the border width.- Parameters:
- borderWidth- the border width.
 
 - 
getBorderWidthpublic int getBorderWidth() Returns the border width.- Returns:
- the border width.
 
 - 
setBorderColorpublic void setBorderColor(IsColor borderColor) Sets the border color.- Parameters:
- borderColor- the border color.
 
 - 
setBorderColorpublic void setBorderColor(String borderColor) Sets the border color.- Parameters:
- borderColor- the border color.
 
 - 
getBorderColorAsStringpublic String getBorderColorAsString() Returns the border color.- Returns:
- the border color.
 
 - 
getBorderColorpublic IsColor getBorderColor() Returns the border color.- Returns:
- the border color.
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(IsColor backgroundColor) Sets the background color when hovered.- Parameters:
- backgroundColor- the background color when hovered.
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(String backgroundColor) Sets the background color when hovered.- Parameters:
- backgroundColor- the background color when hovered.
 
 - 
getHoverBackgroundColorAsStringpublic String getHoverBackgroundColorAsString() Returns the background color when hovered.- Returns:
- the background color when hovered.
 
 - 
getHoverBackgroundColorpublic IsColor getHoverBackgroundColor() Returns the background color when hovered.- Returns:
- the background color when hovered.
 
 - 
setHoverBorderWidthpublic void setHoverBorderWidth(int borderWidth) Sets the border width when hovered.- Parameters:
- borderWidth- the border width when hovered.
 
 - 
getHoverBorderWidthpublic int getHoverBorderWidth() Returns the border width when hovered.- Returns:
- the border width when hovered.
 
 - 
setHoverBorderColorpublic void setHoverBorderColor(IsColor borderColor) Sets the border color when hovered.- Parameters:
- borderColor- the border color when hovered.
 
 - 
setHoverBorderColorpublic void setHoverBorderColor(String borderColor) Sets the border color when hovered.- Parameters:
- borderColor- the border color when hovered.
 
 - 
getHoverBorderColorAsStringpublic String getHoverBorderColorAsString() Returns the border color when hovered.- Returns:
- the border color when hovered.
 
 - 
getHoverBorderColorpublic IsColor getHoverBorderColor() Returns the border color when hovered.- Returns:
- the border color when hovered.
 
 - 
getBackgroundColorCallbackpublic ColorCallback<DatasetContext> getBackgroundColorCallback() Returns the background color callback, if set, otherwisenull.- Returns:
- the background color callback, if set, otherwise null.
 
 - 
setBackgroundColorpublic void setBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback) Sets the background color callback.- Parameters:
- backgroundColorCallback- the background color callback.
 
 - 
setBackgroundColorpublic void setBackgroundColor(NativeCallback backgroundColorCallback) Sets the background color callback.- Parameters:
- backgroundColorCallback- the background color callback.
 
 - 
getBorderColorCallbackpublic ColorCallback<DatasetContext> getBorderColorCallback() Returns the border color callback, if set, otherwisenull.- Returns:
- the border color callback, if set, otherwise null.
 
 - 
setBorderColorpublic void setBorderColor(ColorCallback<DatasetContext> borderColorCallback) Sets the border color callback.- Parameters:
- borderColorCallback- the border color callback.
 
 - 
setBorderColorpublic void setBorderColor(NativeCallback borderColorCallback) Sets the border color callback.- Parameters:
- borderColorCallback- the border color callback.
 
 - 
getBorderWidthCallbackpublic WidthCallback<DatasetContext> getBorderWidthCallback() Returns the border width callback, if set, otherwisenull.- Returns:
- the border width callback, if set, otherwise null.
 
 - 
setBorderWidthpublic void setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback) Sets the border width callback.- Parameters:
- borderWidthCallback- the border width callback.
 
 - 
setBorderWidthpublic void setBorderWidth(NativeCallback borderWidthCallback) Sets the border width callback.- Parameters:
- borderWidthCallback- the border width callback.
 
 - 
getHoverBackgroundColorCallbackpublic ColorCallback<DatasetContext> getHoverBackgroundColorCallback() Returns the background color callback, if set, otherwisenull.- Returns:
- the background color callback, if set, otherwise null.
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback) Sets the background color callback, as hovered.- Parameters:
- hoverBackgroundColorCallback- the background color callback, as hovered
 
 - 
setHoverBackgroundColorpublic void setHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback) Sets the background color callback, as hovered.- Parameters:
- hoverBackgroundColorCallback- the background color callback, as hovered
 
 - 
getHoverBorderColorCallbackpublic ColorCallback<DatasetContext> getHoverBorderColorCallback() Returns the border color callback, if set, otherwisenull.- Returns:
- the border color callback, if set, otherwise null.
 
 - 
setHoverBorderColorpublic void setHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback) Sets the border color callback, as hovered.- Parameters:
- hoverBorderColorCallback- the border color callback, as hovered
 
 - 
setHoverBorderColorpublic void setHoverBorderColor(NativeCallback hoverBorderColorCallback) Sets the border color callback, as hovered.- Parameters:
- hoverBorderColorCallback- the border color callback, as hovered
 
 - 
getHoverBorderWidthCallbackpublic WidthCallback<DatasetContext> getHoverBorderWidthCallback() Returns the border width callback, if set, otherwisenull.- Returns:
- the border width callback, if set, otherwise null.
 
 - 
setHoverBorderWidthpublic void setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback) Sets the border width callback, as hovered.- Parameters:
- hoverBorderWidthCallback- the border width callback, as hovered
 
 - 
setHoverBorderWidthpublic void setHoverBorderWidth(NativeCallback hoverBorderWidthCallback) Sets the border width callback, as hovered.- Parameters:
- hoverBorderWidthCallback- the border width callback, as hovered
 
 - 
getOptionsprotected final ConfigurationOptions getOptions() Returns the configuration options.- Returns:
- the configuration options.
 
 - 
getConfigurationprotected final ExtendedOptions getConfiguration() Returns the configuration element.- Returns:
- the configuration element.
 
 - 
getChartpublic final IsChart getChart() Returns the chart instance- Returns:
- the chart
 
 
- 
 
-