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 SummaryNested Classes Modifier and Type Class Description static classTooltipLabelPointStyle.TooltipLabelPointStyleFactoryInner class to create tooltip label point style by a native object.
 - 
Field SummaryFields Modifier and Type Field Description static TooltipLabelPointStyle.TooltipLabelPointStyleFactoryFACTORYTooltip point style factory to create label point style objects.
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description NativeObjectgetObject()Wraps the protected method to get the java script object in order to consume it.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.doublegetRotation()Returns the rotation in degrees.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.voidsetRotation(double rotation)Sets the rotation of label in degrees.- 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, 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, 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- 
FACTORYpublic static final TooltipLabelPointStyle.TooltipLabelPointStyleFactory FACTORY Tooltip point style factory to create label point style objects.
 
- 
 - 
Constructor Detail- 
TooltipLabelPointStylepublic TooltipLabelPointStyle() Creates the object with an empty native object
 - 
TooltipLabelPointStylepublic TooltipLabelPointStyle(PointStyle poitnStyle) Creates the object setting the point style argument- Parameters:
- poitnStyle- initial point style value
 
 - 
TooltipLabelPointStylepublic TooltipLabelPointStyle(Img poitnStyle) Creates the object setting the point style argument- Parameters:
- poitnStyle- initial point style value
 
 - 
TooltipLabelPointStylepublic TooltipLabelPointStyle(Canvas poitnStyle) Creates the object setting the point style argument- Parameters:
- poitnStyle- initial point style value
 
 
- 
 - 
Method Detail- 
getPointStylepublic PointStyle getPointStyle() Returns the style of the point.- Returns:
- the style of the point
 
 - 
getPointStyleAsImagepublic 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.
 
 - 
getPointStyleAsCanvaspublic 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.
 
 - 
getPointStyleTypepublic PointStyleType getPointStyleType() Returns the type of point style.- Returns:
- the type of point style
 
 - 
setPointStylepublic void setPointStyle(PointStyle pointStyle) Sets the style of the point.- Parameters:
- pointStyle- style of the point.
 
 - 
setPointStylepublic void setPointStyle(Img pointStyle) Sets the style of the point as image.- Parameters:
- pointStyle- image element of the style of the point as image.
 
 - 
setPointStylepublic void setPointStyle(Canvas pointStyle) Sets the style of the point as canvas.- Parameters:
- pointStyle- canvas element of the style of the point as canvas.
 
 - 
setRotationpublic void setRotation(double rotation) Sets the rotation of label in degrees.- Parameters:
- rotation- the rotation of label in degrees
 
 - 
getRotationpublic double getRotation() Returns the rotation in degrees.- Returns:
- the rotation in degrees
 
 - 
getObjectpublic 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.
 
 
- 
 
-