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.
-
JLineGraph(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.
JLineGraph
public JLineGraph(Graph2DModel gm)
- Constructs a line graph.
dataChanged
public void dataChanged(GraphDataEvent e)
- Implementation of GraphDataListener.
- Overrides:
- dataChanged in class JGraph2D
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 JComponent
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of this component.
- Overrides:
- getMinimumSize in class JComponent
offscreenPaint
protected void offscreenPaint(Graphics g)
- Paint the graph.
- Overrides:
- offscreenPaint in class JDoubleBufferedComponent
All Packages Class Hierarchy This Package Previous Next Index