org.moxieapps.gwt.highcharts.client.plotOptions
Class BaseAreaSplinePlotOptions<T extends BaseAreaSplinePlotOptions>

java.lang.Object
  extended by org.moxieapps.gwt.highcharts.client.Configurable<T>
      extended by org.moxieapps.gwt.highcharts.client.plotOptions.PlotOptions<T>
          extended by org.moxieapps.gwt.highcharts.client.plotOptions.BaseAreaSplinePlotOptions<T>
Direct Known Subclasses:
AreaSplinePlotOptions, AreaSplineRangePlotOptions

public abstract class BaseAreaSplinePlotOptions<T extends BaseAreaSplinePlotOptions>
extends PlotOptions<T>

A common base class for both AreaSplinePlotOptions and AreaSplineRangePlotOptions to prevent code duplication while still maintaining a cleaner way for the user to utilize the method chaining with the generics in place. You should not use this class directly, but instead use one of the base classes.

Since:
1.0.0
Author:
squinn@moxiegroup.com (Shawn Quinn)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.moxieapps.gwt.highcharts.client.plotOptions.PlotOptions
PlotOptions.Cursor, PlotOptions.PointPlacement, PlotOptions.Stacking
 
Constructor Summary
BaseAreaSplinePlotOptions()
           
 
Method Summary
 T setConnectEnds(boolean connectEnds)
          Convenience method for setting the 'connectEnds' option of the area plot options.
 T setConnectNulls(boolean connectNulls)
          Convenience method for setting the 'connectNulls' option for the chart.
 T setFillColor(Color fillColor)
          Convenience method for setting the 'fillColor' option of the area plot options, allowing for colors with opacity or gradients.
 T setFillColor(String fillColor)
          Convenience method for setting the 'fillColor' option of the area plot options to a RGB hex value.
 T setFillOpacity(Number fillOpacity)
          Convenience method for setting the 'fillOpacity' option of the area plot options.
 T setGapSize(Number gapSize)
          Convenience Method for setting the "gapSize" option of the plot options.
 T setLineColor(Color lineColor)
          Convenience method for setting the 'lineColor' option of the area plot options, allowing for colors with opacity or gradients.
 T setLineColor(String lineColor)
          Convenience method for setting the 'lineColor' option of the area plot options to a RGB hex value.
 T setTrackByArea(boolean trackByArea)
          Convenience method for setting the 'trackByArea' option of the plot options.
 
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

BaseAreaSplinePlotOptions

public BaseAreaSplinePlotOptions()
Method Detail

setConnectEnds

public T setConnectEnds(boolean connectEnds)
Convenience method for setting the 'connectEnds' option of the area plot options. Equivalent to:

     areaSplinePlotOptions.setOption("connectEnds", false);
 
Polar charts only. Whether to connect the ends of a line series plot across the extremes. Defaults to true.

Parameters:
connectEnds - 'true' to connect ends of a line on a polar chart.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.
Since:
1.6.0

setConnectNulls

public T setConnectNulls(boolean connectNulls)
Convenience method for setting the 'connectNulls' option for the chart. Equivalent to:

     splinePlotOptions.setOption("connectNulls", true);
 
Whether to draw a line between points on either side of a null point, or render a gap between them.

Parameters:
connectNulls - 'true' to connect points on either side of a null point
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.
Since:
1.6.0

setFillColor

public T setFillColor(String fillColor)
Convenience method for setting the 'fillColor' option of the area plot options to a RGB hex value. Equivalent to:

     areaSplinePlotOptions.setOption("fillColor", "#CCCCCC");
 
Fill color or gradient for the area. When null, the series' color is used with the series' fillOpacity. Defaults to null.

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(org.moxieapps.gwt.highcharts.client.Color) version instead.

Parameters:
fillColor - The value to set as the 'fillColor' option of the area plots.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.

setFillColor

public T setFillColor(Color fillColor)
Convenience method for setting the 'fillColor' option of the area plot options, allowing for colors with opacity or gradients. Equivalent to:

     areaSplinePlotOptions.setOption("fillColor", new Color()
        .setLinearGradient(0.0, 0.0, 1.0, 1.0)
        .addStop(new Color(255, 255, 255))
        .addStop(new Color(200, 200, 255))
     );
 
Fill color or gradient for the area. When null, the series' color is used with the series' fillOpacity. Defaults to null.

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.

Parameters:
fillColor - The color gradient or color with an alpha channel to set as the 'fillColor' option of the area plot.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.

setFillOpacity

public T setFillOpacity(Number fillOpacity)
Convenience method for setting the 'fillOpacity' option of the area plot options. Equivalent to:

     areaSplinePlotOptions.setOption("fillOpacity", 0.5);
 
Fill opacity for the area. Defaults to .75.

Parameters:
fillOpacity - Fill opacity for the area.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.

setGapSize

public T setGapSize(Number gapSize)
Convenience Method for setting the "gapSize" option of the plot options. Equivalent to:

     areaSplinePlotOptions.setOption("gapSize", 5);
 
Defines when to display a gap in the graph. A gap size of 5 means that if the distance between two points is greater than five times that of the two closest points, the graph will be broken.In practice, this option is most often used to visualize gaps in time series. In a stock chart, intraday data is available for daytime hours, while gaps will appear in nights and weekends.. Defaults to 0.

Parameters:
gapSize - The distance between points needed to display a gap in the series.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.
Since:
1.6.0

setLineColor

public T setLineColor(String lineColor)
Convenience method for setting the 'lineColor' option of the area plot options to a RGB hex value. Equivalent to:

     areaSplinePlotOptions.setOption("lineColor", "#CCCCCC");
 
A separate color for the graph line. By default the line takes the color of the series, but the lineColor setting allows setting a separate color for the line without altering the fillColor. Defaults to null.

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.

Parameters:
lineColor - The value to set as the 'lineColor' option of the area plots.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.

setLineColor

public T setLineColor(Color lineColor)
Convenience method for setting the 'lineColor' option of the area plot options, allowing for colors with opacity or gradients. Equivalent to:

     areaSplinePlotOptions.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))
     );
 
A separate color for the graph line. By default the line takes the color of the series, but the lineColor setting allows setting a separate color for the line without altering the fillColor. Defaults to null.

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.

Parameters:
lineColor - The color gradient or color with an alpha channel to set as the 'lineColor' option of the area plots.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.

setTrackByArea

public T setTrackByArea(boolean trackByArea)
Convenience method for setting the 'trackByArea' option of the plot options. Equivalent to:

     areaSplinePlotOptions.setOption("trackByArea", true);
 
If true, the whole area will respond to mouseover events. If false, just the line will respond. Defaults to false.

Parameters:
trackByArea - Whether the whole area or just the line should respond to mouseover tooltips and other mouse or touch events.
Returns:
A reference to this AreaSplinePlotOptions instance for convenient method chaining.
Since:
1.6.0


Copyright © 2015. All Rights Reserved.