Skip to main content
A newer version of this page is available.

BarSeriesBase Class

The base class for all Bar series types.

Declaration

public abstract class BarSeriesBase
extends Series

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)

BarSeriesBase()

Initializes a new BarSeriesBase class instance with default parameters.

Declaration

public BarSeriesBase()

Methods

getBarWidth() Method

Returns a bar’s width.

Declaration

public double getBarWidth()

Returns

Type Description
double

The bar’s width, in arguments axis units.

getStyle() Method

Returns the Bar series style.

Declaration

public BarSeriesStyle getStyle()

Returns

Type Description
BarSeriesStyle

The BarSeriesStyle object specifying the style applied to the series.

isColorEach() Method

Returns the value indicating whether bars have different fill colors.

Declaration

public boolean isColorEach()

Returns

Type Description
boolean

true if bars are colored in different colors; false bars are colored in a color assigned to the series.

setBarWidth(double) Method

Specifies a bar’s width.

Declaration

public void setBarWidth(double barWidth)

Parameters

Name Type Description
barWidth double

The bar’s width, in arguments axis units.

setColorEach(boolean) Method

Specifies the value indicating whether bars have different fill colors.

Declaration

public void setColorEach(boolean value)

Parameters

Name Type Description
value boolean

true if bars are colored in different colors; false bars are colored in a color assigned to the series.

setStyle(BarSeriesStyle) Method

Specifies the Bar series style.

Declaration

public void setStyle(BarSeriesStyle style)

Parameters

Name Type Description
style BarSeriesStyle

The BarSeriesStyle object specifying which style is applied to the series.