|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moxieapps.gwt.highcharts.client.Configurable<T>
org.moxieapps.gwt.highcharts.client.plotOptions.PlotOptions<FlagPlotOptions>
org.moxieapps.gwt.highcharts.client.plotOptions.FlagPlotOptions
public class FlagPlotOptions
Represents the options for the Flags present on the chart. The plot options for this class are to be instantiated
into a Series
. Example usage:
chart.addSeries(
chart.createSeries()
.setType(Series.FLAGS)
.addPoint(t(2011), 5, 10)
.setPlotOptions(
new FlagPlotOptions()
.setOnSeries("data")
)
);
Nested Class Summary | |
---|---|
static class |
FlagPlotOptions.Shape
An enumeration representing the shape of the flag. |
Nested classes/interfaces inherited from class org.moxieapps.gwt.highcharts.client.plotOptions.PlotOptions |
---|
PlotOptions.Cursor, PlotOptions.PointPlacement, PlotOptions.Stacking |
Constructor Summary | |
---|---|
FlagPlotOptions()
|
Method Summary | |
---|---|
FlagPlotOptions |
setFillColor(Color fillColor)
Convenience method for setting the 'fillColor' option of the flag, allowing for colors with opacity or gradients. |
FlagPlotOptions |
setFillColor(String fillColor)
Convenience method for setting the 'fillColor' option of the flag to an RGB hex value. |
FlagPlotOptions |
setLineColor(Color lineColor)
Convenience method for setting the 'lineColor' option of the flag, allowing for colors with opacity or gradients. |
FlagPlotOptions |
setLineColor(String lineColor)
Convenience method for setting the 'lineColor' option of the flag to an RGB hex value. |
FlagPlotOptions |
setOnSeries(String onSeries)
Convenience method for setting the 'onSeries' option of the flag. |
FlagPlotOptions |
setShape(FlagPlotOptions.Shape shape)
Convenience method for setting the 'shape' option of the flag. |
FlagPlotOptions |
setStyle(Style style)
Convenience method for setting the 'style' options of the flag. |
FlagPlotOptions |
setWidth(Number width)
Convenience method for setting the 'width' option of the flag. |
Methods inherited from class org.moxieapps.gwt.highcharts.client.plotOptions.PlotOptions |
---|
getDataLabels, setAllowPointSelect, setAnimation, setAnimation, setBaseDataLabels, setColor, setColor, setCropThreshold, setCursor, setDashStyle, setDataGrouping, setDataLabels, setEnableMouseTracking, setHoverStateEnabled, setHoverStateLineWidth, setHoverStateMarker, setId, setLegendIndex, setLineWidth, setLinkedTo, setLinkedTo, setMarker, setNegativeColor, setNegativeColor, setPointInterval, setPointPlacement, setPointStart, setSelected, setShadow, setShowCheckbox, setShowInLegend, setStacking, setStickyTracking, setThreshold, setTurboThreshold, setVisible, setZIndex, setZoneAxis, setZones |
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 FlagPlotOptions()
Method Detail |
---|
public FlagPlotOptions setFillColor(String fillColor)
series.setOption("lineColor", "#CCCCCC");
The RGB color of the flag. Defaults to "#4572A7".
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 setFillColor(Color)
version instead.
fillColor
- The value to set as the 'lineColor' option on the chart.
FlagPlotOptions
instance for convenient method chaining.setFillColor(Color)
public FlagPlotOptions setFillColor(Color fillColor)
series.setOption("lineColor", new Color()
.setLinearGradient(0.0, 0.0, 1.0, 1.0)
.addStop(new Color(255, 255, 255))
.addStop(new Color(200, 200, 255))
);
The color of the flag. Defaults to "#4572A7".
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 setFillColor(String)
version instead.
fillColor
- The color gradient or color with an alpha channel to set as the 'borderColor' option on the chart.
FlagPlotOptions
instance for convenient method chaining.public FlagPlotOptions setLineColor(String lineColor)
series.setOption("lineColor", "#CCCCCC");
The RGB color of the outer chart border. The border is painted using vector graphic techniques to allow
rounded corners. Defaults to "#4572A7".
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 setLineColor(Color)
version instead.
lineColor
- The value to set as the 'lineColor' option on the chart.
FlagPlotOptions
instance for convenient method chaining.setLineColor(Color)
public FlagPlotOptions setLineColor(Color lineColor)
series.setOption("lineColor", new Color()
.setLinearGradient(0.0, 0.0, 1.0, 1.0)
.addStop(new Color(255, 255, 255))
.addStop(new Color(200, 200, 255))
);
The color of the flag's line. Defaults to "#4572A7".
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 setLineColor(String)
version instead.
lineColor
- The color gradient or color with an alpha channel to set as the 'borderColor' option on the chart.
FlagPlotOptions
instance for convenient method chaining.public FlagPlotOptions setOnSeries(String onSeries)
series.setOption("onSeries", "seriesName")
Attaches flags to the given series. If no id is given, the flags are drawn on the x axis. Defaults to undefined. Defaults to undefined.
onSeries
- The id of the series that the flags should be drawn on
FlagPlotOptions
instance for convenient method chaining.public FlagPlotOptions setShape(FlagPlotOptions.Shape shape)
series.setOption("shape", "flag");
Sets the shape of the flag. Can be one of "circlepin", "squarepin", or "flag". Defaults to "flag".
shape
- The shape of the marker.
FlagPlotOptions
instance for convenient method chaining.public FlagPlotOptions setStyle(Style style)
series.setOption("/style/fontWeight", "bold");
series.setOption("/style/fontFamily", "serif");
etc.
CSS styles for the flag. When titles are rotated they are rendered using vector graphic techniques
and not all styles are applicable. Most noteworthy, a bug in IE8 renders all rotated strings bold
and italic. Defaults to:
style
- CSS styles for the axis title.
FlagPlotOptions
instance for convenient method chaining.public FlagPlotOptions setWidth(Number width)
series.setOption("width", 10);
Manually sets the width of the flag.
width
- The width of the flag.
FlagPlotOptions
instance for convenient method chaining.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |