|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moxieapps.gwt.highcharts.client.Configurable<PaneBackground>
org.moxieapps.gwt.highcharts.client.PaneBackground
public class PaneBackground
A configurable class that will allow you to control the pane background options of the charts, which
applies only to polar charts and angular gauges. This configuration object holds general
options for the color, width and border of the pane's background. An instance of this class can be
constructed and then set on the pane via the Pane.setBackground(PaneBackground...)
method.
Nested Class Summary | |
---|---|
static class |
PaneBackground.Shape
An enumeration of the available shapes for the pane background. |
Constructor Summary | |
---|---|
PaneBackground()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.moxieapps.gwt.highcharts.client.Configurable |
---|
getOptions, setOption |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaneBackground()
Method Detail |
---|
public 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 instead
borderColor
- 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 pane
PaneBackground
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 instead
backgroundColor
- 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 pane
PaneBackground
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |