Chart Builder API (beta)

oracle.ord.media.chart.types
Class PieSliceDesc

java.lang.Object
  |
  +--oracle.ord.media.chart.types.PieSliceDesc

public class PieSliceDesc
extends java.lang.Object

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

PieSliceDesc

public PieSliceDesc(java.lang.String label,
                    double value)
PieSliceDesc Constructor. Parameters include the slice label and slice value.
Parameters:
label - The pie slice label.
value - Value of the pie consumed by the slice.
Method Detail

setLabel

public void setLabel(java.lang.String label)
Set the pie slice label.
Parameters:
label - The pie slice label.

setValue

public void setValue(double value)
Set the size of the pie slice.
Parameters:
value - Value of the pie consumed by the slice.

setBackground

public void setBackground(java.awt.Color c)
Set the background (fill) color of the pie slice.
Parameters:
color - Background color of the pie slice.

setLabelColor

public void setLabelColor(java.awt.Color c)
Set the color of the pie slice label.
Parameters:
color - Color of the pie slice label.

getLabel

public java.lang.String getLabel()
Get the pie slice label.
Returns:
label - The pie slice label.

getValue

public double getValue()
Get the size of the pie slice.
Returns:
value - Value of the pie consumed by the slice.

getBackground

public java.awt.Color getBackground()
Get the background (fill) color of the pie slice.
Returns:
color - Background color of the pie slice.

getLabelColor

public java.awt.Color getLabelColor()
Get the color of the pie slice label.
Returns:
color - Color of the pie slice label.

Chart Builder API (beta)