public class

LineSeriesStyle

extends SeriesStyle
java.lang.Object
   ↳ com.shinobicontrols.charts.SeriesStyle
     ↳ com.shinobicontrols.charts.LineSeriesStyle

Class Overview

Visual style properties for LineSeries If you make any styling changes after the chart has been displayed, you should call redrawChart().

Summary

Public Constructors
LineSeriesStyle()
Constructs a new LineSeriesStyle object.
LineSeriesStyle(LineSeriesStyle lineSeriesStyle)
Constructs a new LineSeriesStyle object taking its values from the given LineSeriesStyle.
Public Methods
int getAreaColor()
The fill color of the area between the line and the axis above the series' baseline.
int getAreaColorBelowBaseline()
The fill color of the area between the line and the axis below the series' baseline.
int getAreaColorGradient()
The second fill color of the area between the line and the axis above the series' baseline.
int getAreaColorGradientBelowBaseline()
The second fill color of the area between the line and the axis below the series' baseline.
int getAreaLineColor()
The color of the line if getFillStyle() is FLAT or GRADIENT.
int getAreaLineColorBelowBaseline()
The color of the fill between the line and axis below the baseline, if getFillStyle() is FLAT or GRADIENT.
float getAreaLineWidth()
The width of the line, if the area is filled, in device independent pixels.
SeriesStyle.FillStyle getFillStyle()
Whether and how to fill the area between the line and the axis.
int getLineColor()
The color of the line if getFillStyle() is NONE.
int getLineColorBelowBaseline()
The color of the line below the baseline.
float getLineWidth()
The width of the line, in device independent pixels.
PointStyle getPointStyle()
Style properties for points that have not been selected.
PointStyle getSelectedPointStyle()
Style properties for points that have been selected.
boolean isLineShown()
Whether the line should be drawn.
void setAreaColor(int areaColor)
Sets the fill color of the area between the line and the axis above the series' baseline.
void setAreaColorBelowBaseline(int areaColorBelowBaseline)
Sets the fill color of the area between the line and the axis below the series' baseline.
void setAreaColorGradient(int areaColorGradient)
Sets the second fill color of the area between the line and the axis above the series' baseline.
void setAreaColorGradientBelowBaseline(int areaColorGradientBelowBaseline)
Sets the second fill color of the area between the line and the axis below the series' baseline.
void setAreaLineColor(int areaLineColor)
Sets the color of the line if getFillStyle() is FLAT or GRADIENT.
void setAreaLineColorBelowBaseline(int areaLineColorBelowBaseline)
Sets the color of the fill between the line and axis below the baseline, if getFillStyle() is FLAT or GRADIENT.
void setAreaLineWidth(float areaLineWidth)
Sets the width of the line, if the area is filled, in device independent pixels.
void setFillStyle(SeriesStyle.FillStyle fillStyle)
Sets whether and how to fill the area between the line and the axis.
void setLineColor(int lineColor)
Sets the color of the line if getFillStyle() is NONE.
void setLineColorBelowBaseline(int lineColorBelowBaseline)
Sets the color of the line below the baseline.
void setLineShown(boolean lineShown)
Sets whether the line should be drawn.
void setLineWidth(float lineWidth)
Sets the width of the line, in device independent pixels.
void setPointStyle(PointStyle style)
Sets the style properties for points that have not been selected.
void setSelectedPointStyle(PointStyle style)
Sets the style properties for points that have been selected.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LineSeriesStyle ()

Constructs a new LineSeriesStyle object.

public LineSeriesStyle (LineSeriesStyle lineSeriesStyle)

Constructs a new LineSeriesStyle object taking its values from the given LineSeriesStyle. If this LineSeriesStyle is null then the default style values will be used.

Parameters
lineSeriesStyle the LineSeriesStyle to copy values from

Public Methods

public int getAreaColor ()

The fill color of the area between the line and the axis above the series' baseline.

If the getFillStyle() is FLAT the whole of the area fill will use this color.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColorGradient() color, with this color furthest away from the baseline.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the color used to fill the area between the line and the axis above the baseline

public int getAreaColorBelowBaseline ()

The fill color of the area between the line and the axis below the series' baseline.

If the getFillStyle() is FLAT the whole of the area fill will use this color.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColorGradientBelowBaseline() color, with this color furthest from the baseline.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the color used to fill the area between the line and the axis below the baseline

public int getAreaColorGradient ()

The second fill color of the area between the line and the axis above the series' baseline.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColor() color, with this color nearest to the baseline.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the second color used to fill the area between the line and the axis above the baseline, used to form a gradient

public int getAreaColorGradientBelowBaseline ()

The second fill color of the area between the line and the axis below the series' baseline.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColorBelowBaseline() color, with this color nearest to the baseline.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the second color used to fill the area between the line and the axis below the baseline, used to form a gradient

public int getAreaLineColor ()

The color of the line if getFillStyle() is FLAT or GRADIENT.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the color of the line if the area is filled

public int getAreaLineColorBelowBaseline ()

The color of the fill between the line and axis below the baseline, if getFillStyle() is FLAT or GRADIENT.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the color for the line below the baseline if the area is filled

public float getAreaLineWidth ()

The width of the line, if the area is filled, in device independent pixels.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the width of the line if the area is filled, in device independent pixels.

public SeriesStyle.FillStyle getFillStyle ()

Whether and how to fill the area between the line and the axis.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • whether and how to fill the area between the line and the axis.

public int getLineColor ()

The color of the line if getFillStyle() is NONE.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the color of the line

public int getLineColorBelowBaseline ()

The color of the line below the baseline.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the int representation of the color of the line below the baseline

public float getLineWidth ()

The width of the line, in device independent pixels.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • the width of the line, in device independent pixels.

public PointStyle getPointStyle ()

Style properties for points that have not been selected.

Returns
  • the style for unselected points

public PointStyle getSelectedPointStyle ()

Style properties for points that have been selected.

Returns
  • the style for selected points

public boolean isLineShown ()

Whether the line should be drawn.

Note, this property is applicable to the whole series and is ignored for individual point styling.

Returns
  • whether the line should be drawn

public void setAreaColor (int areaColor)

Sets the fill color of the area between the line and the axis above the series' baseline.

If the getFillStyle() is FLAT the whole of the area fill will use this color.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColorGradient() color, with this color furthest away from the baseline.

Parameters
areaColor the int representation of the color used to fill the area between the line and the axis above the baseline
See Also

public void setAreaColorBelowBaseline (int areaColorBelowBaseline)

Sets the fill color of the area between the line and the axis below the series' baseline.

If the getFillStyle() is FLAT the whole of the area fill will use this color.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColorGradientBelowBaseline() color, with this color furthest from the baseline.

Parameters
areaColorBelowBaseline the int representation of the color used to fill the area between the line and the axis below the baseline

public void setAreaColorGradient (int areaColorGradient)

Sets the second fill color of the area between the line and the axis above the series' baseline.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColor() color, with this color nearest to the baseline.

Parameters
areaColorGradient the int representation of the second color used to fill the area between the line and the axis above the baseline, used to form a gradient

public void setAreaColorGradientBelowBaseline (int areaColorGradientBelowBaseline)

Sets the second fill color of the area between the line and the axis below the series' baseline.

If the getFillStyle() is GRADIENT this color will form a gradient with the getAreaColorBelowBaseline() color, with this color nearest to the baseline.

Parameters
areaColorGradientBelowBaseline the int representation of the second color used to fill the area between the line and the axis below the baseline, used to form a gradient

public void setAreaLineColor (int areaLineColor)

Sets the color of the line if getFillStyle() is FLAT or GRADIENT.

Parameters
areaLineColor the int representation of the color of the line if the area is filled

public void setAreaLineColorBelowBaseline (int areaLineColorBelowBaseline)

Sets the color of the fill between the line and axis below the baseline, if getFillStyle() is FLAT or GRADIENT.

Parameters
areaLineColorBelowBaseline the int representation of the color for the line below the baseline if the area is filled

public void setAreaLineWidth (float areaLineWidth)

Sets the width of the line, if the area is filled, in device independent pixels.

Parameters
areaLineWidth the width of the line if the area is filled, in device independent pixels.

public void setFillStyle (SeriesStyle.FillStyle fillStyle)

Sets whether and how to fill the area between the line and the axis.

Parameters
fillStyle whether and how to fill the area between the line and the axis.
See Also

public void setLineColor (int lineColor)

Sets the color of the line if getFillStyle() is NONE.

Parameters
lineColor the int representation of the color of the line
See Also

public void setLineColorBelowBaseline (int lineColorBelowBaseline)

Sets the color of the line below the baseline.

Parameters
lineColorBelowBaseline the int representation of the color of the line below the baseline

public void setLineShown (boolean lineShown)

Sets whether the line should be drawn.

Parameters
lineShown whether the line should be drawn
See Also

public void setLineWidth (float lineWidth)

Sets the width of the line, in device independent pixels.

Parameters
lineWidth the width of the line, in device independent pixels.
See Also

public void setPointStyle (PointStyle style)

Sets the style properties for points that have not been selected.

Parameters
style the style for unselected points
See Also

public void setSelectedPointStyle (PointStyle style)

Sets the style properties for points that have been selected.

Parameters
style the style for selected points