All Packages Class Hierarchy This Package Previous Next Index
Class JSci.awt.LineGraph
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----JSci.awt.DoubleBufferedCanvas
|
+----JSci.awt.Graph2D
|
+----JSci.awt.LineGraph
- public class LineGraph
- extends Graph2D
A line graph AWT component.
-
LineGraph(Graph2DModel)
- Constructs a line graph.
-
dataChanged(GraphDataEvent)
- Implementation of GraphDataListener.
-
getMinimumSize()
- Returns the minimum size of this component.
-
getPreferredSize()
- Returns the preferred size of this component.
-
offscreenPaint(Graphics)
- Paint the graph.
-
setColor(int, Color)
- Sets the line color of the nth y-series.
-
setYExtrema(float, float)
- Sets the minimum/maximum values on the y-axis.
LineGraph
public LineGraph(Graph2DModel gm)
- Constructs a line graph.
dataChanged
public void dataChanged(GraphDataEvent e)
- Implementation of GraphDataListener.
- Overrides:
- dataChanged in class Graph2D
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
setYExtrema
public void setYExtrema(float min,
float max)
- Sets the minimum/maximum values on the y-axis.
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of this component.
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
offscreenPaint
protected void offscreenPaint(Graphics g)
- Paint the graph.
- Overrides:
- offscreenPaint in class DoubleBufferedCanvas
All Packages Class Hierarchy This Package Previous Next Index