All Packages Class Hierarchy This Package Previous Next Index
Class polymtl.magi.awt.Graphique2D1_0
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----polymtl.magi.awt.Graphique2D1_0
- public final class Graphique2D1_0
- extends Canvas
A line graph AWT component.
-
Graphique2D1_0(double[][])
- Construct a line graph.
-
minimumSize()
- Returns the minimum size of this component.
-
paint(Graphics)
- Paint the graph.
-
preferredSize()
- Returns the preferred size of this component.
-
reshape(int,
int, int, int)
- Reshapes the Graphique2D to the specified bounding
box.
-
setColor(int,
Color)
- Sets the line color of the nth y-series.
-
setData(double[][])
- Sets the data plotted by this Graphique2D to the
specified data.
-
setExtremas(double,
double)
-
-
setNumbering(boolean)
- Turns axis numbering on/off.
Graphique2D1_0
public Graphique2D1_0(double array[][])
- Construct a line graph.
-
- Parameters:
- array - [0][] contains the x-series, [n][] contains
the nth y-series
setData
public void setData(double array[][])
- Sets the data plotted by this Graphique2D to the
specified data.
-
- Parameters:
- array - [0][] contains the x-series, [n][] contains
the nth y-series
setExtremas
public void setExtremas(double miny,
double maxy)
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
setNumbering
public void setNumbering(boolean flag)
- Turns axis numbering on/off.
preferredSize
public Dimension preferredSize()
- Returns the preferred size of this component.
-
- Overrides:
- preferredSize in class Component
minimumSize
public Dimension minimumSize()
- Returns the minimum size of this component.
-
- Overrides:
- minimumSize in class Component
reshape
public void reshape(int x,
int y,
int width,
int height)
- Reshapes the Graphique2D to the specified bounding
box.
-
- Overrides:
-
reshape
in class Component
paint
public void paint(Graphics g)
- Paint the graph.
-
- Overrides:
- paint in class Canvas
All Packages Class Hierarchy This Package Previous Next Index