Class JDPChart

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPChart

public class JDPChart
extends Panel
Class JDPChart represents a basic charting class to handle bar, column, line, area and pie charts.


Constructor Index

 o JDPChart(JDPUser, JDPChartParms)
Creates a Chart.

Method Index

 o calculateScaling()
Calulate the scaling necessary to safely plot this chart inside the borders of this panel.
 o getMinimumHeight()
Get the minimum height of the grid
 o getMinimumWidth()
Get the minimum width of the grid
 o handleEvent(Event)
 o insets()
 o layout()
 o minimumSize()
 o paint(Graphics)
 o preferredSize()
 o setMinimumHeight(int)
Set the minimum height of the grid
 o setMinimumWidth(int)
Set the minimum width of the grid
 o update(Graphics)

Constructors

 o JDPChart
 public JDPChart(JDPUser user,
                 JDPChartParms p)
Creates a Chart.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
chartParms - an list of the chart paramaters.

Methods

 o insets
 public Insets insets()
Overrides:
insets in class Container
 o layout
 public void layout()
Overrides:
layout in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o calculateScaling
 public void calculateScaling()
Calulate the scaling necessary to safely plot this chart inside the borders of this panel. This method should be called when the cahrt parameters change.

 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Container
 o setMinimumWidth
 public void setMinimumWidth(int width)
Set the minimum width of the grid

Parameters:
the - width in pixels.
 o getMinimumWidth
 public int getMinimumWidth()
Get the minimum width of the grid

Returns:
the width in pixels.
 o setMinimumHeight
 public void setMinimumHeight(int height)
Set the minimum height of the grid

Parameters:
the - height in pixels.
 o getMinimumHeight
 public int getMinimumHeight()
Get the minimum height of the grid

Returns:
the height in pixels.