All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.charting.PieChartView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----COM.ibm.desktop.ModelView
                                   |
                                   +----COM.ibm.beans.charting.ChartView
                                           |
                                           +----COM.ibm.beans.charting.PieChartView

public class PieChartView
extends ChartView
PieChartView extends from the ChartView class, implements a pie chart representation of the data in the Model.


Constructor Index

 o PieChartView()
Default constructor.

Method Index

 o handleModelChange(ModelChangeEvent)
Handles model changes by repainting.
 o initialize()
Initializes the view.
 o paint(Graphics)
Paints the entire Pie Chart by painting the wedges, the values and labels, and the legend, and draws the off-screen buffer to the the current graphics context.
 o setLegendLabels()
Sets the labels to be used in the legend, based on whether or not we are showing only the values, or only the data set labels (chartLabels) or both
 o update(Graphics)
Updates the chart by causing a repaint.

Constructors

 o PieChartView
 public PieChartView()
Default constructor.

Methods

 o initialize
 public void initialize()
Initializes the view. This method is called after the Model, View, and ComponentController are constructed.

Overrides:
initialize in class ChartView
 o handleModelChange
 public void handleModelChange(ModelChangeEvent event)
Handles model changes by repainting.

Parameters:
event - the ModelChange event
Overrides:
handleModelChange in class ChartView
 o update
 public void update(Graphics g)
Updates the chart by causing a repaint.

Parameters:
g - the Graphics object
Overrides:
update in class ChartView
 o paint
 public void paint(Graphics g)
Paints the entire Pie Chart by painting the wedges, the values and labels, and the legend, and draws the off-screen buffer to the the current graphics context.

Parameters:
g - the Graphics object
Overrides:
paint in class ChartView
 o setLegendLabels
 protected void setLegendLabels()
Sets the labels to be used in the legend, based on whether or not we are showing only the values, or only the data set labels (chartLabels) or both

Overrides:
setLegendLabels in class ChartView

All Packages  Class Hierarchy  This Package  Previous  Next  Index