Package org.pepstock.charba.client.items
Class TooltipLabelPointStyle
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.items.TooltipLabelPointStyle
-
public final class TooltipLabelPointStyle extends NativeObjectContainer
This object contains the point style info when a label in the tooltip.
It must be used in the label tooltip callback.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TooltipLabelPointStyle.TooltipLabelPointStyleFactory
Inner class to create tooltip label point style by a native object.
-
Field Summary
Fields Modifier and Type Field Description static TooltipLabelPointStyle.TooltipLabelPointStyleFactory
FACTORY
Tooltip point style factory to create label point style objects.
-
Constructor Summary
Constructors Constructor Description TooltipLabelPointStyle()
Creates the object with an empty native objectTooltipLabelPointStyle(Canvas poitnStyle)
Creates the object setting the point style argumentTooltipLabelPointStyle(Img poitnStyle)
Creates the object setting the point style argumentTooltipLabelPointStyle(PointStyle poitnStyle)
Creates the object setting the point style argument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeObject
getObject()
Wraps the protected method to get the java script object in order to consume it.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
getRotation()
Returns the rotation in degrees.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(PointStyle pointStyle)
Sets the style of the point.void
setRotation(double rotation)
Sets the rotation of label in degrees.-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Field Detail
-
FACTORY
public static final TooltipLabelPointStyle.TooltipLabelPointStyleFactory FACTORY
Tooltip point style factory to create label point style objects.
-
-
Constructor Detail
-
TooltipLabelPointStyle
public TooltipLabelPointStyle()
Creates the object with an empty native object
-
TooltipLabelPointStyle
public TooltipLabelPointStyle(PointStyle poitnStyle)
Creates the object setting the point style argument- Parameters:
poitnStyle
- initial point style value
-
TooltipLabelPointStyle
public TooltipLabelPointStyle(Img poitnStyle)
Creates the object setting the point style argument- Parameters:
poitnStyle
- initial point style value
-
TooltipLabelPointStyle
public TooltipLabelPointStyle(Canvas poitnStyle)
Creates the object setting the point style argument- Parameters:
poitnStyle
- initial point style value
-
-
Method Detail
-
getPointStyle
public PointStyle getPointStyle()
Returns the style of the point.- Returns:
- the style of the point
-
getPointStyleAsImage
public Img getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returnsnull
.- Returns:
- image of the style of the point as image.
If property is missing or not a image, returnsnull
.
-
getPointStyleAsCanvas
public Canvas getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returnsnull
.- Returns:
- image of the style of the point as canvas.
If property is missing or not a canvas, returnsnull
.
-
getPointStyleType
public PointStyleType getPointStyleType()
Returns the type of point style.- Returns:
- the type of point style
-
setPointStyle
public void setPointStyle(PointStyle pointStyle)
Sets the style of the point.- Parameters:
pointStyle
- style of the point.
-
setPointStyle
public void setPointStyle(Img pointStyle)
Sets the style of the point as image.- Parameters:
pointStyle
- image element of the style of the point as image.
-
setPointStyle
public void setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.- Parameters:
pointStyle
- canvas element of the style of the point as canvas.
-
setRotation
public void setRotation(double rotation)
Sets the rotation of label in degrees.- Parameters:
rotation
- the rotation of label in degrees
-
getRotation
public double getRotation()
Returns the rotation in degrees.- Returns:
- the rotation in degrees
-
getObject
public NativeObject getObject()
Wraps the protected method to get the java script object in order to consume it.- Returns:
- the java script object in order to consume it.
-
-