Class DefaultChartPoint
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartPoint
-
- All Implemented Interfaces:
IsDefaultOptionsElement,IsDefaultPoint,IsDefaultPointStyleHandler
public final class DefaultChartPoint extends Object implements IsDefaultPoint
Defaults for point option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBackgroundColorAsString()Returns the background color.StringgetBorderColorAsString()Returns the border color.intgetBorderWidth()Returns the border width.doublegetHitRadius()Returns the pixel size of the non-displayed point that reacts to mouse events.StringgetHoverBackgroundColorAsString()Returns the background color when hovered.StringgetHoverBorderColorAsString()Returns the border color when hovered.intgetHoverBorderWidth()Returns the border width when hovered.doublegetHoverRadius()Returns the radius of the point when hovered.PointStylegetPointStyle()Returns the style of the point.CanvasgetPointStyleAsCanvas()Returns the style of the point as canvas.
If property is missing or not an canvas, returnsnull.ImggetPointStyleAsImage()Returns the style of the point as image.
If property is missing or not an image, returnsnull.PointStyleTypegetPointStyleType()Returns the type of point style.doublegetRadius()Returns the radius of the point.doublegetRotation()Returns the point rotation (in degrees).
-
-
-
Method Detail
-
getBackgroundColorAsString
public String getBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the background color.- Specified by:
getBackgroundColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the background color.
-
getBorderWidth
public int getBorderWidth()
Description copied from interface:IsDefaultOptionsElementReturns the border width.- Specified by:
getBorderWidthin interfaceIsDefaultOptionsElement- Returns:
- the border width.
-
getBorderColorAsString
public String getBorderColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the border color.- Specified by:
getBorderColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the border color.
-
getRadius
public double getRadius()
Description copied from interface:IsDefaultPointReturns the radius of the point.- Specified by:
getRadiusin interfaceIsDefaultPoint- Returns:
- the radius of the point
-
getPointStyle
public PointStyle getPointStyle()
Description copied from interface:IsDefaultPointStyleHandlerReturns the style of the point.- Specified by:
getPointStylein interfaceIsDefaultPointStyleHandler- Returns:
- the style of the point.
-
getHitRadius
public double getHitRadius()
Description copied from interface:IsDefaultPointReturns the pixel size of the non-displayed point that reacts to mouse events.- Specified by:
getHitRadiusin interfaceIsDefaultPoint- Returns:
- the pixel size of the non-displayed point.
-
getHoverRadius
public double getHoverRadius()
Description copied from interface:IsDefaultPointReturns the radius of the point when hovered.- Specified by:
getHoverRadiusin interfaceIsDefaultPoint- Returns:
- the radius of the point when hovered.
-
getHoverBorderWidth
public int getHoverBorderWidth()
Description copied from interface:IsDefaultOptionsElementReturns the border width when hovered.- Specified by:
getHoverBorderWidthin interfaceIsDefaultOptionsElement- Returns:
- the border width when hovered.
-
getRotation
public double getRotation()
Description copied from interface:IsDefaultPointReturns the point rotation (in degrees).- Specified by:
getRotationin interfaceIsDefaultPoint- Returns:
- the point rotation (in degrees).
-
getPointStyleType
public PointStyleType getPointStyleType()
Description copied from interface:IsDefaultPointStyleHandlerReturns the type of point style.- Specified by:
getPointStyleTypein interfaceIsDefaultPointStyleHandler- Returns:
- the type of point style
-
getPointStyleAsCanvas
public Canvas getPointStyleAsCanvas()
Description copied from interface:IsDefaultPointStyleHandlerReturns the style of the point as canvas.
If property is missing or not an canvas, returnsnull.- Specified by:
getPointStyleAsCanvasin interfaceIsDefaultPointStyleHandler- Returns:
- image of the style of the point as canvas.
If property is missing or not a canvas, returnsnull.
-
getPointStyleAsImage
public Img getPointStyleAsImage()
Description copied from interface:IsDefaultPointStyleHandlerReturns the style of the point as image.
If property is missing or not an image, returnsnull.- Specified by:
getPointStyleAsImagein interfaceIsDefaultPointStyleHandler- Returns:
- image of the style of the point as image.
If property is missing or not a image, returnsnull.
-
getHoverBackgroundColorAsString
public String getHoverBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the background color when hovered.- Specified by:
getHoverBackgroundColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the background color when hovered.
-
getHoverBorderColorAsString
public String getHoverBorderColorAsString()
Description copied from interface:IsDefaultOptionsElementReturns the border color when hovered.- Specified by:
getHoverBorderColorAsStringin interfaceIsDefaultOptionsElement- Returns:
- the border color when hovered.
-
-