Constructor and Description |
---|
BarChart()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Bar |
addBar(double value)
Creates a new
Bar and adds it to this chart. |
Bar[] |
addBars(double... values)
Creates some new
Bar s and adds them to this chart. |
Chart |
defaultBarColor(int newDefaultBarColor)
Sets the default color of the bars as ARGB int, e.g.
|
XYAxis |
getAxis()
Returns the axis of this line chart.
|
int |
getDefaultBarColor()
Returns the default color of the bars as ARGB int, e.g.
|
void |
removeBar(Bar bar)
Removes a
Bar from this chart. |
void |
removeBars(Bar... removedBars)
Removes some
Bar s from this chart. |
void |
setDefaultBarColor(int defaultBarColor)
Sets the default color of the bars as ARGB int, e.g.
|
addRefreshListener, backgroundColor, calculateGraphArea, getBackgroundColor, getBorder, getTitle, paintOn, removeRefreshListener, setBackgroundColor
public Bar addBar(double value)
Bar
and adds it to this chart.value
- the value of the barpublic Bar[] addBars(double... values)
Bar
s and adds them to this chart.values
- the values of the barspublic void removeBar(Bar bar)
Bar
from this chart.bar
- the removed barpublic void removeBars(Bar... removedBars)
Bar
s from this chart.removedBars
- the removed barspublic int getDefaultBarColor()
0xFFFF0000
and blue is 0xFF0000FF
.public Chart defaultBarColor(int newDefaultBarColor)
0xFFFF0000
and blue is 0xFF0000FF
.newDefaultBarColor
- the colorpublic void setDefaultBarColor(int defaultBarColor)
0xFFFF0000
and blue is 0xFF0000FF
.defaultBarColor
- the colorpublic XYAxis getAxis()
Copyright © 2020. All rights reserved.