Class JSci.awt.ArgandDiagram
All Packages Class Hierarchy This Package Previous Next Index
Class JSci.awt.ArgandDiagram
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----JSci.awt.ArgandDiagram
- public final class ArgandDiagram
- extends Canvas
An Argand diagram AWT component.
-
ArgandDiagram(Complex[])
- Construct an Argand diagram.
-
minimumSize()
- Returns the minimum size of this component.
-
paint(Graphics)
- Paint the diagram.
-
preferredSize()
- Returns the preferred size of this component.
-
reshape(int, int, int, int)
- Reshapes the ArgandDiagram to the specified bounding box.
-
setColor(Color)
- Sets the line color.
-
setData(Complex[])
- Sets the data plotted by this ArgandDiagram to the specified data.
-
setNumbering(boolean)
- Turns axis numbering on/off.
ArgandDiagram
public ArgandDiagram(Complex array[])
- Construct an Argand diagram.
- Parameters:
- array - an array of complex points
setData
public void setData(Complex array[])
- Sets the data plotted by this ArgandDiagram to the specified data.
- Parameters:
- array - an array of complex points
setColor
public void setColor(Color c)
- Sets the line color.
- Parameters:
- 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 ArgandDiagram to the specified bounding box.
- Overrides:
- reshape in class Component
paint
public void paint(Graphics g)
- Paint the diagram.
- Overrides:
- paint in class Canvas
All Packages Class Hierarchy This Package Previous Next Index