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.

Constructor Index

 o ArgandDiagram(Complex[])
Construct an Argand diagram.

Method Index

 o minimumSize()
Returns the minimum size of this component.
 o paint(Graphics)
Paint the diagram.
 o preferredSize()
Returns the preferred size of this component.
 o reshape(int, int, int, int)
Reshapes the ArgandDiagram to the specified bounding box.
 o setColor(Color)
Sets the line color.
 o setData(Complex[])
Sets the data plotted by this ArgandDiagram to the specified data.
 o setNumbering(boolean)
Turns axis numbering on/off.

Constructors

 o ArgandDiagram
  public ArgandDiagram(Complex array[])
Construct an Argand diagram.
Parameters:
array - an array of complex points

Methods

 o setData
  public void setData(Complex array[])
Sets the data plotted by this ArgandDiagram to the specified data.
Parameters:
array - an array of complex points
 o setColor
  public void setColor(Color c)
Sets the line color.
Parameters:
c - the line color
 o setNumbering
  public void setNumbering(boolean flag)
Turns axis numbering on/off.
 o preferredSize
  public Dimension preferredSize()
Returns the preferred size of this component.
Overrides:
preferredSize in class Component
 o minimumSize
  public Dimension minimumSize()
Returns the minimum size of this component.
Overrides:
minimumSize in class Component
 o 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
 o paint
  public void paint(Graphics g)
Paint the diagram.
Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index