Skip to main content

ChartStyleBase Class

The Chart and Pie Chart styles’ base class.

Declaration

public abstract class ChartStyleBase
extends StyleBase

Inherited Members

java.lang.Object.equals(java.lang.Object)(Object)
java.lang.Object.hashCode()()
java.lang.Object.notify()()
java.lang.Object.notifyAll()()
java.lang.Object.toString()()
java.lang.Object.wait()()
java.lang.Object.wait(long)(long)
java.lang.Object.wait(long, int)(long,int)

Inheritance

Methods

getBackgroundColor() Method

Returns the chart’s background color.

Declaration

public Integer getBackgroundColor()

Returns

Type Description
Integer

The background color.

getBorderColor() Method

Returns the chart’s border color.

Declaration

public Integer getBorderColor()

Returns

Type Description
Integer

The border color.

getBorderThickness() Method

Returns the chart border’s thickness.

Declaration

public Float getBorderThickness()

Returns

Type Description
Float

The chart border’s thickness, in pixels.

getPaddingBottom() Method

Returns a distance between chart’s content and its bottom border.

Declaration

public Integer getPaddingBottom()

Returns

Type Description
Integer

The bottom padding, in pixels.

getPaddingLeft() Method

Returns a distance between chart’s content and its left border.

Declaration

public Integer getPaddingLeft()

Returns

Type Description
Integer

The left padding, in pixels.

getPaddingRight() Method

Returns a distance between chart’s content and its right border.

Declaration

public Integer getPaddingRight()

Returns

Type Description
Integer

The right padding, in pixels.

getPaddingTop() Method

Returns a distance between chart’s content and its top border.

Declaration

public Integer getPaddingTop()

Returns

Type Description
Integer

The top padding, in pixels.

getPalette() Method

Returns a set of colors that are used to draw series.

Declaration

public int[] getPalette()

Returns

Type Description
int[]

An array of the color-int values.

setBackgroundColor(Integer) Method

Specifies the chart’s background color.

Declaration

public void setBackgroundColor(Integer color)

Parameters

Name Type Description
color Integer

The background color.

setBorderColor(Integer) Method

Specifies the border color.

Declaration

public void setBorderColor(Integer color)

Parameters

Name Type Description
color Integer

The border color.

setBorderThickness(Float) Method

Specifies the chart border’s thickness.

Declaration

public void setBorderThickness(Float thickness)

Parameters

Name Type Description
thickness Float

The chart border’s thickness.

setPadding(Integer, Integer, Integer, Integer) Method

Specifies distances between chart’s content and border.

Declaration

public void setPadding(Integer left, Integer top, Integer right, Integer bottom)

Parameters

Name Type Description
left Integer

The left padding, in pixels.

top Integer

The top padding, in pixels.

right Integer

The right padding, in pixels.

bottom Integer

The bottom padding, in pixels.

setPalette(int[]) Method

Specifies the palette used to draw the chart series.

Declaration

public void setPalette(int[] palette)

Parameters

Name Type Description
palette int[]

An array of the color-int values.