Interface HasPointStyle
-
- All Superinterfaces:
IsDefaultPointStyleHandler
- All Known Implementing Classes:
Bar
,LegendLabels
,Point
,PointAnnotation
public interface HasPointStyle extends IsDefaultPointStyleHandler
Interface to manage the style of the point options.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PointStyle
getPointStyle()
Returns the style of the point.default Canvas
getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returnsnull
.default Img
getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returnsnull
.PointStyleHandler
getPointStyleHandler()
Returns a point style handler instance to use in the default methods of this interface.default PointStyleType
getPointStyleType()
Returns the type of point style.default void
setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.default void
setPointStyle(Img pointStyle)
Sets the style of the point as image.default void
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
-
-
-
Method Detail
-
getPointStyleHandler
PointStyleHandler getPointStyleHandler()
Returns a point style handler instance to use in the default methods of this interface.- Returns:
- a point style handler instance
-
setPointStyle
default void setPointStyle(PointStyle pointStyle)
Sets the style of the point.- Parameters:
pointStyle
- array of the style of the point.
-
getPointStyle
default PointStyle getPointStyle()
Returns the style of the point.- Specified by:
getPointStyle
in interfaceIsDefaultPointStyleHandler
- Returns:
- the style of the point or
null
if point style is set as image
-
setPointStyle
default void setPointStyle(Img pointStyle)
Sets the style of the point as image.- Parameters:
pointStyle
- image element of the style of the point as image.
-
getPointStyleType
default PointStyleType getPointStyleType()
Returns the type of point style.- Specified by:
getPointStyleType
in interfaceIsDefaultPointStyleHandler
- Returns:
- the type of point style
-
getPointStyleAsImage
default Img getPointStyleAsImage()
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
.
-
setPointStyle
default void setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.- Parameters:
pointStyle
- canvas element of the style of the point as canvas.
-
getPointStyleAsCanvas
default Canvas getPointStyleAsCanvas()
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
.
-
-