All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.awt.LineTrace

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----JSci.awt.DoubleBufferedCanvas
                           |
                           +----JSci.awt.LineTrace

public final class LineTrace
extends DoubleBufferedCanvas
A line trace AWT component.


Constructor Index

 o LineTrace(float, float, float, float)
Constructs a line trace.

Method Index

 o clear()
Clear the trace.
 o getMinimumSize()
Returns the minimum size of this component.
 o getModel()
Gets the data sampled by this LineTrace.
 o getPreferredSize()
Returns the preferred size of this component.
 o offscreenPaint(Graphics)
Paint the trace.
 o setBounds(int, int, int, int)
Reshapes the LineTrace to the specified bounding box.
 o setNumbering(boolean)
Turns axis numbering on/off.
 o setSampleNumber(int)
Sets the number of samples.
 o setXExtrema(float, float)
Sets the minimum/maximum values on the x-axis.
 o setYExtrema(float, float)
Sets the minimum/maximum values on the y-axis.

Constructors

 o LineTrace
 public LineTrace(float minx,
                  float maxx,
                  float miny,
                  float maxy)
Constructs a line trace.

Methods

 o getModel
 public Graph2DModel getModel()
Gets the data sampled by this LineTrace.

 o setNumbering
 public final void setNumbering(boolean flag)
Turns axis numbering on/off.

 o setXExtrema
 public void setXExtrema(float min,
                         float max)
Sets the minimum/maximum values on the x-axis.

 o setYExtrema
 public void setYExtrema(float min,
                         float max)
Sets the minimum/maximum values on the y-axis.

 o setSampleNumber
 public void setSampleNumber(int n)
Sets the number of samples.

 o clear
 public void clear()
Clear the trace.

 o setBounds
 public final void setBounds(int x,
                             int y,
                             int width,
                             int height)
Reshapes the LineTrace to the specified bounding box.

Overrides:
setBounds in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of this component.

Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

Overrides:
getMinimumSize in class Component
 o offscreenPaint
 protected void offscreenPaint(Graphics g)
Paint the trace.

Overrides:
offscreenPaint in class DoubleBufferedCanvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index