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 String
getBackgroundColorAsString()
Returns the background color.String
getBorderColorAsString()
Returns the border color.int
getBorderWidth()
Returns the border width.double
getHitRadius()
Returns the pixel size of the non-displayed point that reacts to mouse events.String
getHoverBackgroundColorAsString()
Returns the background color when hovered.String
getHoverBorderColorAsString()
Returns the border color when hovered.int
getHoverBorderWidth()
Returns the border width when hovered.double
getHoverRadius()
Returns the radius of the point when hovered.PointStyle
getPointStyle()
Returns the style of the point.Canvas
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returnsnull
.Img
getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returnsnull
.PointStyleType
getPointStyleType()
Returns the type of point style.double
getRadius()
Returns the radius of the point.double
getRotation()
Returns the point rotation (in degrees).
-
-
-
Method Detail
-
getBackgroundColorAsString
public String getBackgroundColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the background color.- Specified by:
getBackgroundColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the background color.
-
getBorderWidth
public int getBorderWidth()
Description copied from interface:IsDefaultOptionsElement
Returns the border width.- Specified by:
getBorderWidth
in interfaceIsDefaultOptionsElement
- Returns:
- the border width.
-
getBorderColorAsString
public String getBorderColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the border color.- Specified by:
getBorderColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the border color.
-
getRadius
public double getRadius()
Description copied from interface:IsDefaultPoint
Returns the radius of the point.- Specified by:
getRadius
in interfaceIsDefaultPoint
- Returns:
- the radius of the point
-
getPointStyle
public PointStyle getPointStyle()
Description copied from interface:IsDefaultPointStyleHandler
Returns the style of the point.- Specified by:
getPointStyle
in interfaceIsDefaultPointStyleHandler
- Returns:
- the style of the point.
-
getHitRadius
public double getHitRadius()
Description copied from interface:IsDefaultPoint
Returns the pixel size of the non-displayed point that reacts to mouse events.- Specified by:
getHitRadius
in interfaceIsDefaultPoint
- Returns:
- the pixel size of the non-displayed point.
-
getHoverRadius
public double getHoverRadius()
Description copied from interface:IsDefaultPoint
Returns the radius of the point when hovered.- Specified by:
getHoverRadius
in interfaceIsDefaultPoint
- Returns:
- the radius of the point when hovered.
-
getHoverBorderWidth
public int getHoverBorderWidth()
Description copied from interface:IsDefaultOptionsElement
Returns the border width when hovered.- Specified by:
getHoverBorderWidth
in interfaceIsDefaultOptionsElement
- Returns:
- the border width when hovered.
-
getRotation
public double getRotation()
Description copied from interface:IsDefaultPoint
Returns the point rotation (in degrees).- Specified by:
getRotation
in interfaceIsDefaultPoint
- Returns:
- the point rotation (in degrees).
-
getPointStyleType
public PointStyleType getPointStyleType()
Description copied from interface:IsDefaultPointStyleHandler
Returns the type of point style.- Specified by:
getPointStyleType
in interfaceIsDefaultPointStyleHandler
- Returns:
- the type of point style
-
getPointStyleAsCanvas
public Canvas getPointStyleAsCanvas()
Description copied from interface:IsDefaultPointStyleHandler
Returns the style of the point as canvas.
If property is missing or not an canvas, returnsnull
.- Specified by:
getPointStyleAsCanvas
in 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:IsDefaultPointStyleHandler
Returns the style of the point as image.
If property is missing or not an image, returnsnull
.- Specified by:
getPointStyleAsImage
in 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:IsDefaultOptionsElement
Returns the background color when hovered.- Specified by:
getHoverBackgroundColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the background color when hovered.
-
getHoverBorderColorAsString
public String getHoverBorderColorAsString()
Description copied from interface:IsDefaultOptionsElement
Returns the border color when hovered.- Specified by:
getHoverBorderColorAsString
in interfaceIsDefaultOptionsElement
- Returns:
- the border color when hovered.
-
-