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.
-
JDPChart(JDPUser, JDPChartParms)
- Creates a Chart.
-
calculateScaling()
- Calulate the scaling necessary to safely plot this chart inside the borders
of this panel.
-
getMinimumHeight()
- Get the minimum height of the grid
-
getMinimumWidth()
- Get the minimum width of the grid
-
handleEvent(Event)
-
-
insets()
-
-
layout()
-
-
minimumSize()
-
-
paint(Graphics)
-
-
preferredSize()
-
-
setMinimumHeight(int)
- Set the minimum height of the grid
-
setMinimumWidth(int)
- Set the minimum width of the grid
-
update(Graphics)
-
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.
insets
public Insets insets()
- Overrides:
- insets in class Container
layout
public void layout()
- Overrides:
- layout in class Container
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
update
public void update(Graphics g)
- Overrides:
- update in class Component
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.
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container
setMinimumWidth
public void setMinimumWidth(int width)
- Set the minimum width of the grid
- Parameters:
- the - width in pixels.
getMinimumWidth
public int getMinimumWidth()
- Get the minimum width of the grid
- Returns:
- the width in pixels.
setMinimumHeight
public void setMinimumHeight(int height)
- Set the minimum height of the grid
- Parameters:
- the - height in pixels.
getMinimumHeight
public int getMinimumHeight()
- Get the minimum height of the grid
- Returns:
- the height in pixels.