public class PaneBackground extends Configurable<PaneBackground>
Pane.setBackground(PaneBackground...) method.| Modifier and Type | Class and Description |
|---|---|
static class |
PaneBackground.Shape
An enumeration of the available shapes for the pane background.
|
| Constructor and Description |
|---|
PaneBackground() |
| Modifier and Type | Method and Description |
|---|---|
PaneBackground |
setBackgroundColor(Color backgroundColor)
Convenience method for setting the 'backgroundColor' option of the pane's background, allowing for
colors with opacity or gradients.
|
PaneBackground |
setBackgroundColor(String backgroundColor)
Convenience method for setting the 'backgroundColor' option of the pane's background to an RGB hex value.
|
PaneBackground |
setBorderColor(Color borderColor)
Convenience method for setting the 'borderColor' option of the pane's border, allowing for
colors with opacity or gradients.
|
PaneBackground |
setBorderColor(String borderColor)
Convenience method for setting the 'borderColor' option of the pane's border to an RGB hex value.
|
PaneBackground |
setBorderWidth(Number borderWidth)
Convenience method for setting the 'borderWidth' option of the pane's background.
|
PaneBackground |
setBorderWidth(String borderWidth)
Convenience method for setting the 'borderWidth' option of the pane's background.
|
PaneBackground |
setInnerRadius(Number innerRadius)
Convenience method for setting the 'innerRadius' option of the pane's background.
|
PaneBackground |
setInnerRadius(String innerRadius)
Convenience method for setting the 'innerRadius' option of the pane's background.
|
PaneBackground |
setOuterRadius(Number outerRadius)
Convenience method for setting the 'outerRadius' option of the pane's background.
|
PaneBackground |
setOuterRadius(String outerRadius)
Convenience method for setting the 'outerRadius' option of the pane's background.
|
PaneBackground |
setShape(PaneBackground.Shape shape)
Convenience method for setting the 'background' option of the pane.
|
getOptions, setOptionpublic PaneBackground setBorderColor(String borderColor)
chart.setOption("pane/background/borderColor", "#CCCCCC");
The RGB background color for the border of the pane. Defaults to "#FFFFFF".
Note that this method is intended for setting the color to a simple RBG hex value. If you instead
want to set a color to include an alpha channel or a gradient, use the setBorderColor(Color)
version insteadborderColor - The value to set as the 'borderColor' option on the pane.PaneBackground instance for convenient method chainingpublic PaneBackground setBorderColor(Color borderColor)
chart.setOption("/pane/borderColor", new Color()
.setLinearGradient(0.0, 0.0, 1.0, 1.0)
.addStop(new Color(255, 255, 255))
.addStop(new Color(200, 200, 255))
);
The background color or gradient for the outer chart area. Defaults to "#FFFFFF".
Note that this method is intended for setting the color to a gradient or color that includes
an alpha channel. If you instead just want to set the color to a normal RGB hex value
you can use the setBorderColor(String) version instead.borderColor - The color gradient or color with an alpha channel to set as the 'backgroundBorderColor' option on the panePaneBackground instance for convenient method chainingpublic PaneBackground setBorderWidth(Number borderWidth)
pane.setOption("pane/background/borderWidth", 10);
borderWidth - Thickness of the background's border in pixels.PaneBackground instance for convenient method chaining.public PaneBackground setBorderWidth(String borderWidth)
pane.setOption("pane/background/borderWidth", '10%');
borderWidth - Thickness of the background's border as a percentage of the background.PaneBackground instance for convenient method chaining.public PaneBackground setBackgroundColor(String backgroundColor)
chart.setOption("pane/background/backgroundColor", "#CCCCCC");
The RGB background color for the outer chart area. Defaults to "#FFFFFF".
Note that this method is intended for setting the color to a simple RBG hex value. If you instead
want to set a color to include an alpha channel or a gradient, use the setBackgroundColor(Color)
version insteadbackgroundColor - The value to set as the 'backgroundColor' option on the pane.PaneBackground instance for convenient method chainingpublic PaneBackground setBackgroundColor(Color backgroundColor)
chart.setOption("/pane//backgroundColor", new Color()
.setLinearGradient(0.0, 0.0, 1.0, 1.0)
.addStop(new Color(255, 255, 255))
.addStop(new Color(200, 200, 255))
);
The background color or gradient for the outer chart area. Defaults to "#FFFFFF".
Note that this method is intended for setting the color to a gradient or color that includes
an alpha channel. If you instead just want to set the color to a normal RGB hex value
you can use the setBackgroundColor(String) version instead.backgroundColor - The color gradient or color with an alpha channel to set as the 'backgroundColor' option on the panePaneBackground instance for convenient method chainingpublic PaneBackground setInnerRadius(String innerRadius)
chart.setOption("pane/background/innerRadius", '100%');
Note: The official Highcharts API reference refers to this as "innerRadius," however it is implemented as "innerRadius."innerRadius - The distance as a percentage of the size of the chart from its center to the inner edge of the background.PaneBackground instance for convenient method chainingpublic PaneBackground setInnerRadius(Number innerRadius)
chart.setOption("pane/background/innerRadius", 100);
Note: The official Highcharts API reference refers to this as "innerRadius," however it is implemented as "innerRadius."innerRadius - The distance in pixels from the center of the chart to the outer edge of the background.PaneBackground instance for convenient method chainingpublic PaneBackground setOuterRadius(String outerRadius)
chart.setOption("background/outerRadius", '100%');
Note: The official Highcharts API reference refers to this as "outerWidth," however it is implemented as "outerRadius."outerRadius - The distance as a percentage of the size of the chart from its center to the outer edge of the background.PaneBackground instance for convenient method chaining.public PaneBackground setOuterRadius(Number outerRadius)
chart.setOption("background/outerRadius", 100);
Note: The official Highcharts API reference refers to this as "outerWidth," however it is implemented as "outerRadius."outerRadius - The distance in pixels from the center of the chart to the inner edge of the background.PaneBackground instance for convenient method chaining.public PaneBackground setShape(PaneBackground.Shape shape)
chart.setOption("pane/background/shape", "arc");
The shape of the pane's background.PaneBackground instance for convenient method chaining.Copyright © 2015. All Rights Reserved.