public class ChartStyle extends AbstractConfigurationObject
Constructor and Description |
---|
ChartStyle() |
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor() |
Color |
getBorderColor() |
Number |
getBorderRadius() |
Number |
getBorderWidth() |
String |
getClassName() |
Color |
getPlotBackgroundColor() |
String |
getPlotBackgroundImage() |
Color |
getPlotBorderColor() |
Number |
getPlotBorderWidth() |
Style |
getStyle()
Gets various style defaults used.
|
Boolean |
isPlotShadow() |
void |
setBackgroundColor(Color backgroundColor)
Sets the background color of the outer chart area.
|
void |
setBorderColor(Color borderColor)
Sets the color of the outer chart border.
|
void |
setBorderRadius(Number borderRadius)
Sets the corner radius of the outer chart border.
|
void |
setBorderWidth(Number borderWidth)
Sets the pixel width of the outer chart border.
|
void |
setClassName(String className)
Sets the CSS class name to apply to the container DIV around the chart,
allowing unique CSS styling for each chart.
|
void |
setPlotBackgroundColor(Color plotBackgroundColor)
Sets the background color of the plot area.
|
void |
setPlotBackgroundImage(String plotBackgroundImage)
Sets the background of the plot to an image specified by the provided
URL.
|
void |
setPlotBorderColor(Color plotBorderColor)
Sets the color of the outer chart border.
|
void |
setPlotBorderWidth(Number plotBorderWidth)
Sets the pixel width of the plot area border.
|
void |
setPlotShadow(Boolean plotShadow)
Sets whether to apply a drop shadow to the plot area.
|
void |
setStyle(Style style)
Sets additional CSS styles to apply inline to the container div.
|
public Color getBackgroundColor()
setBackgroundColor(Color)
,
getPlotBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
backgroundColor
- setPlotBackgroundColor(Color)
public Color getPlotBackgroundColor()
setPlotBackgroundColor(Color)
,
getBackgroundColor()
public void setPlotBackgroundColor(Color plotBackgroundColor)
plotBackgroundColor
- setBackgroundColor(Color)
public String getPlotBackgroundImage()
setPlotBackgroundImage(String)
public void setPlotBackgroundImage(String plotBackgroundImage)
plotBackgroundImage
- The URL of the background imagepublic Boolean isPlotShadow()
setPlotShadow(Boolean)
public void setPlotShadow(Boolean plotShadow)
plotShadow
- public Number getPlotBorderWidth()
setPlotBorderWidth(Number)
public void setPlotBorderWidth(Number plotBorderWidth)
plotBorderWidth
- Width of borderpublic String getClassName()
setClassName(String)
public void setClassName(String className)
className
- public Number getBorderWidth()
setBorderWidth(Number)
public void setBorderWidth(Number borderWidth)
borderWidth
- Border widthpublic Number getBorderRadius()
setBorderRadius(Number)
public void setBorderRadius(Number borderRadius)
borderRadius
- Radius or borderpublic Color getPlotBorderColor()
setPlotBorderColor(Color)
public void setPlotBorderColor(Color plotBorderColor)
plotBorderColor
- public Style getStyle()
setStyle(Style)
public void setStyle(Style style)
style: {
fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif', // default font fontSize: '12px'
}
style
- public Color getBorderColor()
setBorderColor(Color)
public void setBorderColor(Color borderColor)
borderColor
- Copyright © 2021. All rights reserved.