All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eou.swingchart.UniversalChart

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----com.ibm.eou.swingchart.Chart
                                   |
                                   +----com.ibm.eou.swingchart.UniversalChart

public class UniversalChart
extends Chart
Use this bean to draw a simple chart in one of the following formats:

The chart type is determined by the value of property chartType.

See superclass Chart for properties that control the content and presentation of the chart.


Constructor Index

 o UniversalChart()

Method Index

 o copyright()
IBM copyright
 o getChartType()
Return chart type

 o paintChart(Graphics, ChartData, ChartMetrics)
Paint chart for specified chart type.
 o setChartType(int)
Set chart type

Constructors

 o UniversalChart
 public UniversalChart()

Methods

 o copyright
 public static String copyright()
IBM copyright

 o getChartType
 public int getChartType()
Return chart type

Returns:
Chart type
  • Chart.PARALLEL
  • Chart.PIE
  • Chart.PLOT
  • Chart.SCATTER
  • Chart.STACK
  • Chart.SURFACE
 o paintChart
 protected void paintChart(Graphics g,
                           ChartData data,
                           ChartMetrics metrics)
Paint chart for specified chart type. This method is called by paint. Do not call it directly.

Overrides:
paintChart in class Chart
 o setChartType
 public void setChartType(int chartType)
Set chart type

Parameters:
chartType - Chart Type
  • Chart.PARALLEL
  • Chart.PIE
  • Chart.PLOT
  • Chart.SCATTER
  • Chart.STACK
  • Chart.SURFACE

All Packages  Class Hierarchy  This Package  Previous  Next  Index