Constructor and Description |
---|
PieChart() |
Modifier and Type | Method and Description |
---|---|
PieSlice |
addSlice(double value)
Creates a new
PieSlice and adds it to this chart. |
PieSlice[] |
addSlices(double... values)
Creates some new
PieSlice s and adds them to this chart. |
double |
getPieBorder()
Returns the pie's border size.
|
int |
getPieColor()
Returns the color of the pie as ARGB int, e.g.
|
double |
getStartAngle()
Returns the angle the pie starts drawing its slices.
|
PieChart |
pieBorder(double newPieBorder)
Sets the pie's border size.
|
Chart |
pieColor(int newPieColor)
Sets the color of the pie as ARGB int, e.g.
|
void |
removeSlice(PieSlice slice)
Removes a
PieSlice from this chart. |
void |
removeSlices(PieSlice... removedSlices)
Removes some
PieSlice s from this chart. |
void |
setPieBorder(double pieBorder)
Sets the pie's border size.
|
void |
setPieColor(int pieColor)
Sets the color of the pie as ARGB int, e.g.
|
void |
setStartAngle(double startAngle)
Sets the angle the pie starts drawing its slices.
|
PieChart |
startAngle(double newStartAngle)
Sets the angle the pie starts drawing its slices.
|
addRefreshListener, backgroundColor, calculateGraphArea, getBackgroundColor, getBorder, getTitle, paintOn, removeRefreshListener, setBackgroundColor
public PieSlice addSlice(double value)
PieSlice
and adds it to this chart.value
- the value of the slicepublic PieSlice[] addSlices(double... values)
PieSlice
s and adds them to this chart.values
- the values of the slicespublic void removeSlice(PieSlice slice)
PieSlice
from this chart.slice
- the removed slicepublic void removeSlices(PieSlice... removedSlices)
PieSlice
s from this chart.removedSlices
- the removed slicespublic int getPieColor()
0xFFFF0000
and
blue is 0xFF0000FF
.public Chart pieColor(int newPieColor)
0xFFFF0000
and blue
is 0xFF0000FF
.newPieColor
- the colorpublic void setPieColor(int pieColor)
0xFFFF0000
and blue
is 0xFF0000FF
.pieColor
- the colorpublic double getPieBorder()
getPieColor()
.getPieColor()
public PieChart pieBorder(double newPieBorder)
getPieColor()
.newPieBorder
- the border's sizegetPieColor()
public void setPieBorder(double pieBorder)
getPieColor()
.pieBorder
- the border's sizegetPieColor()
public double getStartAngle()
public PieChart startAngle(double newStartAngle)
newStartAngle
- the start anglepublic void setStartAngle(double startAngle)
startAngle
- the start angleCopyright © 2020. All rights reserved.