Class ChartStyle
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.style.ChartStyle
- All Implemented Interfaces:
Serializable
ChartStyle class.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldbackgroundColor.Getter for the fieldborderColor.Getter for the fieldborderRadius.Getter for the fieldborderWidth.Getter for the fieldclassName.Getter for the fieldplotBackgroundColor.Getter for the fieldplotBackgroundImage.Getter for the fieldplotBorderColor.Getter for the fieldplotBorderWidth.getStyle()Gets various style defaults used.isPlotShadow.voidsetBackgroundColor(Color backgroundColor) Sets the background color of the outer chart area.voidsetBorderColor(Color borderColor) Sets the color of the outer chart border.voidsetBorderRadius(Number borderRadius) Sets the corner radius of the outer chart border.voidsetBorderWidth(Number borderWidth) Sets the pixel width of the outer chart border.voidsetClassName(String className) Sets the CSS class name to apply to the container DIV around the chart, allowing unique CSS styling for each chart.voidsetPlotBackgroundColor(Color plotBackgroundColor) Sets the background color of the plot area.voidsetPlotBackgroundImage(String plotBackgroundImage) Sets the background of the plot to an image specified by the provided URL.voidsetPlotBorderColor(Color plotBorderColor) Sets the color of the outer chart border.voidsetPlotBorderWidth(Number plotBorderWidth) Sets the pixel width of the plot area border.voidsetPlotShadow(Boolean plotShadow) Sets whether to apply a drop shadow to the plot area.voidSets additional CSS styles to apply inline to the container div.
-
Constructor Details
-
ChartStyle
public ChartStyle()
-
-
Method Details
-
getBackgroundColor
Getter for the field
backgroundColor.- Returns:
- The background color of the chart, null if not defined
- See Also:
-
setBackgroundColor
Sets the background color of the outer chart area. May be a gradient. Defaults to "#FFFFFF".- Parameters:
backgroundColor- aColorobject.- See Also:
-
getPlotBackgroundColor
Getter for the field
plotBackgroundColor.- Returns:
- The background color of the plot, null if not defined
- See Also:
-
setPlotBackgroundColor
Sets the background color of the plot area. May be a gradient. Defaults to null.- Parameters:
plotBackgroundColor- aColorobject.- See Also:
-
getPlotBackgroundImage
Getter for the field
plotBackgroundImage.- Returns:
- The background image of the plot, null if not defined
- See Also:
-
setPlotBackgroundImage
Sets the background of the plot to an image specified by the provided URL. To set an image as the background for the entire chart, set a CSS background image on the container element. Defaults to null.- Parameters:
plotBackgroundImage- The URL of the background image
-
isPlotShadow
isPlotShadow.
- Returns:
- Whether a drop shadow is applied or null if not defined
- See Also:
-
setPlotShadow
Sets whether to apply a drop shadow to the plot area. Requires that plotBackgroundColor be set.- Parameters:
plotShadow- aBooleanobject.
-
getPlotBorderWidth
Getter for the field
plotBorderWidth.- Returns:
- The width of the plot border or null if not defined
- See Also:
-
setPlotBorderWidth
Sets the pixel width of the plot area border. Defaults to 0.- Parameters:
plotBorderWidth- Width of border
-
getClassName
Getter for the field
className.- Returns:
- a
Stringobject. - See Also:
-
setClassName
Sets the CSS class name to apply to the container DIV around the chart, allowing unique CSS styling for each chart. Defaults to "".- Parameters:
className- aStringobject.
-
getBorderWidth
Getter for the field
borderWidth.- Returns:
- The width of the chart border, null if not defined
- See Also:
-
setBorderWidth
Sets the pixel width of the outer chart border. The border is painted using vector graphic techniques to allow rounded corners. Defaults to 0.- Parameters:
borderWidth- Border width
-
getBorderRadius
Getter for the field
borderRadius.- Returns:
- The corner radius of the border, null if not defined
- See Also:
-
setBorderRadius
Sets the corner radius of the outer chart border. Defaults to 5.- Parameters:
borderRadius- Radius or border
-
getPlotBorderColor
Getter for the field
plotBorderColor.- Returns:
- The color of the plot border, null if not defined
- See Also:
-
setPlotBorderColor
Sets the color of the outer chart border. The border is painted using vector graphic techniques to allow rounded corners. Defaults to "#4572A7".- Parameters:
plotBorderColor- aColorobject.
-
getStyle
Gets various style defaults used. This can be used to for example define default font family.- Returns:
- a
Styleobject. - See Also:
-
setStyle
Sets additional CSS styles to apply inline to the container div. Note that since the default font styles are applied in the renderer, it is ignorant of the individual chart options and must be set globally. Defaults to:style: { fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif', // default font fontSize: '12px' }- Parameters:
style- aStyleobject.
-
getBorderColor
Getter for the field
borderColor.- Returns:
- The color of the plot border, null if not defined
- See Also:
-
setBorderColor
Sets the color of the outer chart border. Defaults to #4572A7.- Parameters:
borderColor- aColorobject.
-