public class

OHLCSeriesStyle

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

Class Overview

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

Summary

Public Constructors
OHLCSeriesStyle()
Constructs a new OHLCSeriesStyle object.
OHLCSeriesStyle(OHLCSeriesStyle ohlcSeriesStyle)
Constructs a new OHLCSeriesStyle object taking its values from the given OHLCSeriesStyle.
Public Methods
float getArmWidth()
Gets the width of the arms, in device independent pixels.
int getFallingColor()
Gets the color of the body of the OHLC point if the point is falling.
int getFallingColorGradient()
Gets the gradient color of the body of the OHLC point if the point is falling.
int getRisingColor()
Gets the color of the body of the OHLC point if the point is rising.
int getRisingColorGradient()
Gets the gradient color of the body of the OHLC point if the point is rising.
float getTrunkWidth()
Gets the width of the trunk, in device independent pixels.
void setArmWidth(float width)
Sets the width of the arms, in device independent pixels.
void setFallingColor(int color)
Sets the color of the body of the OHLC point if the point is falling.
void setFallingColorGradient(int color)
Sets the gradient color of the body of the OHLC point if the point is falling.
void setRisingColor(int color)
Sets the color of the body of the OHLC point if the point is rising.
void setRisingColorGradient(int color)
Sets the gradient color of the body of the OHLC point if the point is rising.
void setTrunkWidth(float width)
Sets the width of the trunk, in device independent pixels.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OHLCSeriesStyle ()

Constructs a new OHLCSeriesStyle object.

public OHLCSeriesStyle (OHLCSeriesStyle ohlcSeriesStyle)

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

Parameters
ohlcSeriesStyle the OHLCSeriesStyle to copy values from

Public Methods

public float getArmWidth ()

Gets the width of the arms, 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 arms, in device independent pixels.

public int getFallingColor ()

Gets the color of the body of the OHLC point if the point is falling.

Note, this property can be applied on a per-point basis by performing individual point styling. See SeriesStyleProvider for more details.

Returns
  • The color of the body of the OHLC point if the point is falling.

public int getFallingColorGradient ()

Gets the gradient color of the body of the OHLC point if the point is falling.

Note, this property can be applied on a per-point basis by performing individual point styling. See SeriesStyleProvider for more details.

Returns
  • The gradient color of the body of the OHLC point if the point is rising.

public int getRisingColor ()

Gets the color of the body of the OHLC point if the point is rising.

Note, this property can be applied on a per-point basis by performing individual point styling. See SeriesStyleProvider for more details.

Returns
  • The color of the body of the OHLC point if the point is rising.

public int getRisingColorGradient ()

Gets the gradient color of the body of the OHLC point if the point is rising.

Note, this property can be applied on a per-point basis by performing individual point styling. See SeriesStyleProvider for more details.

Returns
  • The gradient color of the body of the OHLC point if the point is rising.

public float getTrunkWidth ()

Gets the width of the trunk, 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 trunk in pixels.

public void setArmWidth (float width)

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

Parameters
width The width of the arms, in device independent pixels.
See Also

public void setFallingColor (int color)

Sets the color of the body of the OHLC point if the point is falling. Note that this color is applied using either the selected or non-selected style, on a per-point basis.

Parameters
color The color of the body of the OHLC point if the point is falling.

public void setFallingColorGradient (int color)

Sets the gradient color of the body of the OHLC point if the point is falling. Note that this color is applied using either the selected or non-selected style, on a per-point basis.

Parameters
color The gradient color of the body of the OHLC point if the point is rising.

public void setRisingColor (int color)

Sets the color of the body of the OHLC point if the point is rising. Note that this color is applied using either the selected or non-selected style, on a per-point basis.

Parameters
color The color of the body of the OHLC point if the point is rising.
See Also

public void setRisingColorGradient (int color)

Sets the gradient color of the body of the OHLC point if the point is rising. Note that this color is applied using either the selected or non-selected style, on a per-point basis.

Parameters
color The gradient color of the body of the OHLC point if the point is rising.

public void setTrunkWidth (float width)

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

Parameters
width The width of the trunk in pixels.
See Also