|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ord.media.chart.types.PieSliceDesc
PieSliceDesc is a descriptor for pie slices. A pie slice is defined by two required attributes: its label and the numerical value defining the size of the slice. Additional attributes include the color of the label (setLabelColor()) and the color of the slice (setBackground()).
Data for a pie chart is defined by calling setSeries() with an array of PieSliceDesc.
Constructor Summary | |
PieSliceDesc(java.lang.String label,
double value)
PieSliceDesc Constructor. |
Method Summary | |
java.awt.Color |
getBackground()
Get the background (fill) color of the pie slice. |
java.lang.String |
getLabel()
Get the pie slice label. |
java.awt.Color |
getLabelColor()
Get the color of the pie slice label. |
double |
getValue()
Get the size of the pie slice. |
void |
setBackground(java.awt.Color c)
Set the background (fill) color of the pie slice. |
void |
setLabel(java.lang.String label)
Set the pie slice label. |
void |
setLabelColor(java.awt.Color c)
Set the color of the pie slice label. |
void |
setValue(double value)
Set the size of the pie slice. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PieSliceDesc(java.lang.String label, double value)
label
- The pie slice label.value
- Value of the pie consumed by the slice.Method Detail |
public void setLabel(java.lang.String label)
label
- The pie slice label.public void setValue(double value)
value
- Value of the pie consumed by the slice.public void setBackground(java.awt.Color c)
color
- Background color of the pie slice.public void setLabelColor(java.awt.Color c)
color
- Color of the pie slice label.public java.lang.String getLabel()
public double getValue()
public java.awt.Color getBackground()
public java.awt.Color getLabelColor()
|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |