Class AbstractDataLabels
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.AbstractDataLabels
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataLabels
Abstract AbstractDataLabels class.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ColorgetBackgroundColor.abstract ColorgetBorderColor.abstract NumbergetBorderRadius.abstract NumbergetBorderWidth.abstract ColorgetColor()getColor.abstract BooleangetCrop()getCrop.abstract StringgetFormat.abstract StringgetFormatter.abstract StringgetOverflow.abstract NumbergetPadding.abstract NumbergetRotation.abstract BooleangetShadow.abstract ShapegetShape()getShape.abstract StylegetStyle()getStyle.abstract BooleangetUseHTML.abstract VerticalAligngetVerticalAlign.abstract voidsetBackgroundColor(Color backgroundColor) The background color or gradient for the data label.abstract voidsetBorderColor(Color borderColor) The border color for the data label.abstract voidsetBorderRadius(Number borderRadius) The border radius in pixels for the data label.abstract voidsetBorderWidth(Number borderWidth) The border width in pixels for the data label.abstract voidThe text color for the data labels.abstract voidWhether to hide data labels that are outside the plot area.abstract voidsetEnabled(Boolean enabled) Enable or disable the data labels.abstract voidA format string for the data label.abstract voidsetFormatter(String _fn_formatter) Callback JavaScript function to format the data label.abstract voidsetOverflow(String overflow) How to handle data labels that flow outside the plot area.abstract voidsetPadding(Number padding) When either theborderWidthor thebackgroundColoris set, this is the padding within the box.abstract voidsetRotation(Number rotation) Text rotation in degrees.abstract voidThe shadow of the box.abstract voidThe name of a symbol to use for the border around the label.abstract voidStyles for the label.abstract voidsetUseHTML(Boolean useHTML) Whether to use HTML to render the labels.abstract voidsetVerticalAlign(VerticalAlign verticalAlign) The vertical alignment of a data label.
-
Constructor Details
-
AbstractDataLabels
public AbstractDataLabels()
-
-
Method Details
-
getBackgroundColor
getBackgroundColor.
- Returns:
- a
Colorobject. - See Also:
-
setBackgroundColor
The background color or gradient for the data label.- Parameters:
backgroundColor- aColorobject.
-
getBorderColor
getBorderColor.
- Returns:
- a
Colorobject. - See Also:
-
setBorderColor
The border color for the data label.- Parameters:
borderColor- aColorobject.
-
getBorderRadius
getBorderRadius.
- Returns:
- a
Numberobject. - See Also:
-
setBorderRadius
The border radius in pixels for the data label.- Parameters:
borderRadius- aNumberobject.
-
getBorderWidth
getBorderWidth.
- Returns:
- a
Numberobject. - See Also:
-
setBorderWidth
The border width in pixels for the data label.- Parameters:
borderWidth- aNumberobject.
-
getColor
getColor.
- Returns:
- a
Colorobject. - See Also:
-
setColor
The text color for the data labels.- Parameters:
color- aColorobject.
-
getCrop
getCrop.
- Returns:
- a
Booleanobject. - See Also:
-
setCrop
Whether to hide data labels that are outside the plot area. By default, the data label is moved inside the plot area according to the overflow option.- Parameters:
crop- aBooleanobject.
-
setEnabled
Enable or disable the data labels.- Parameters:
enabled- aBooleanobject.
-
getFormat
getFormat.
- Returns:
- a
Stringobject. - See Also:
-
setFormat
A format string for the data label. Available variables are the same as forformatter.- Parameters:
format- aStringobject.
-
getFormatter
getFormatter.
- Returns:
- a
Stringobject. - See Also:
-
setFormatter
Callback JavaScript function to format the data label. Note that if aformatis defined, the format takes precedence and the formatter is ignored.- Parameters:
_fn_formatter- aStringobject.
-
getOverflow
getOverflow.
- Returns:
- a
Stringobject. - See Also:
-
setOverflow
How to handle data labels that flow outside the plot area. The default isjustify, which aligns them inside the plot area. For columns and bars, this means it will be moved inside the bar. To display data labels outside the plot area, setcroptofalseandoverflowto"none".- Parameters:
overflow- aStringobject.
-
getPadding
getPadding.
- Returns:
- a
Numberobject. - See Also:
-
setPadding
When either theborderWidthor thebackgroundColoris set, this is the padding within the box.- Parameters:
padding- aNumberobject.
-
getRotation
getRotation.
- Returns:
- a
Numberobject. - See Also:
-
setRotation
Text rotation in degrees. Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label.- Parameters:
rotation- aNumberobject.
-
getShadow
getShadow.
- Returns:
- a
Booleanobject. - See Also:
-
setShadow
The shadow of the box.- Parameters:
shadow- aBooleanobject.
-
getShape
getShape.
- Returns:
- a
Shapeobject. - See Also:
-
setShape
The name of a symbol to use for the border around the label. Symbols are predefined functions on the Renderer object.- Parameters:
shape- aShapeobject.
-
getStyle
getStyle.
- Returns:
- a
Styleobject. - See Also:
-
setStyle
Styles for the label.- Parameters:
style- aStyleobject.
-
getUseHTML
getUseHTML.
- Returns:
- a
Booleanobject. - See Also:
-
setUseHTML
Whether to use HTML to render the labels.- Parameters:
useHTML- aBooleanobject.
-
getVerticalAlign
getVerticalAlign.
- Returns:
- a
VerticalAlignobject. - See Also:
-
setVerticalAlign
The vertical alignment of a data label.- Parameters:
verticalAlign- aVerticalAlignobject.
-