public final class

ChartStyle

extends Object
java.lang.Object
   ↳ com.shinobicontrols.charts.ChartStyle

Class Overview

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

Summary

Public Constructors
ChartStyle()
Public Methods
int getBackgroundColor()
The color for the background of the full chart view.
int getCanvasBackgroundColor()
The color for the background of the canvas area.
int getPlotAreaBackgroundColor()
The color for the background of the plot area.
void setBackgroundColor(int backgroundColor)
Sets the color for the background of the full chart view.
void setCanvasBackgroundColor(int canvasBackgroundColor)
Sets the color for the background of the canvas area.
void setPlotAreaBackgroundColor(int plotAreaBackgroundColor)
Sets the color for the background of the plot area.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ChartStyle ()

Public Methods

public int getBackgroundColor ()

The color for the background of the full chart view.

Returns
  • The int representation of the color for the background of the chart

public int getCanvasBackgroundColor ()

The color for the background of the canvas area. The canvas is the region bounded by the axes, including the axes themselves.

Returns
  • The int representation of the color for the background of the canvas area

public int getPlotAreaBackgroundColor ()

The color for the background of the plot area. The plot area is the region bounded by the axes, excluding the axes.

Returns
  • The int representation of the color for the background of the plot area

public void setBackgroundColor (int backgroundColor)

Sets the color for the background of the full chart view.

Parameters
backgroundColor The int representation of the color to use for the background of the chart

public void setCanvasBackgroundColor (int canvasBackgroundColor)

Sets the color for the background of the canvas area. The canvas is the region bounded by the axes, including the axes themselves.

Parameters
canvasBackgroundColor The int representation of the color for the background of the canvas area

public void setPlotAreaBackgroundColor (int plotAreaBackgroundColor)

Sets the color for the background of the plot area. The plot area is the region bounded by the axes, excluding the axes.

Parameters
plotAreaBackgroundColor The int representation of the color for the background of the plot area