All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.swing.JLineGraph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----JSci.swing.JDoubleBufferedComponent
                                   |
                                   +----JSci.swing.JGraph2D
                                           |
                                           +----JSci.swing.JLineGraph

public class JLineGraph
extends JGraph2D
A line graph Swing component.


Constructor Index

 o JLineGraph(Graph2DModel)
Constructs a line graph.

Method Index

 o dataChanged(GraphDataEvent)
Implementation of GraphDataListener.
 o getMinimumSize()
Returns the minimum size of this component.
 o getPreferredSize()
Returns the preferred size of this component.
 o offscreenPaint(Graphics)
Paint the graph.
 o setColor(int, Color)
Sets the line color of the nth y-series.
 o setYExtrema(float, float)
Sets the minimum/maximum values on the y-axis.

Constructors

 o JLineGraph
 public JLineGraph(Graph2DModel gm)
Constructs a line graph.

Methods

 o dataChanged
 public void dataChanged(GraphDataEvent e)
Implementation of GraphDataListener.

Overrides:
dataChanged in class JGraph2D
 o setColor
 public void setColor(int n,
                      Color c)
Sets the line color of the nth y-series.

Parameters:
n - the index of the y-series
c - the line color
 o setYExtrema
 public void setYExtrema(float min,
                         float max)
Sets the minimum/maximum values on the y-axis.

 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this component.

Overrides:
getPreferredSize in class JComponent
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

Overrides:
getMinimumSize in class JComponent
 o offscreenPaint
 protected void offscreenPaint(Graphics g)
Paint the graph.

Overrides:
offscreenPaint in class JDoubleBufferedComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index