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.
-
PieChartView()
- Default constructor.
-
handleModelChange(ModelChangeEvent)
- Handles model changes by repainting.
-
initialize()
- Initializes the view.
-
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.
-
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
-
update(Graphics)
- Updates the chart by causing a repaint.
PieChartView
public PieChartView()
- Default constructor.
initialize
public void initialize()
- Initializes the view.
This method is called after the Model, View, and ComponentController
are constructed.
- Overrides:
- initialize in class ChartView
handleModelChange
public void handleModelChange(ModelChangeEvent event)
- Handles model changes by repainting.
- Parameters:
- event - the ModelChange event
- Overrides:
- handleModelChange in class ChartView
update
public void update(Graphics g)
- Updates the chart by causing a repaint.
- Parameters:
- g - the Graphics object
- Overrides:
- update in class ChartView
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
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