All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JSci.swing.JLineTrace

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----JSci.swing.JDoubleBufferedComponent
                                   |
                                   +----JSci.swing.JLineTrace

public final class JLineTrace
extends JDoubleBufferedComponent
A line trace Swing component.


Constructor Index

 o JLineTrace(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 JLineTrace.
 o getPreferredSize()
Returns the preferred size of this component.
 o offscreenPaint(Graphics)
Paint the trace.
 o setBounds(int, int, int, int)
Reshapes the JLineTrace 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 JLineTrace
 public JLineTrace(float minx,
                   float maxx,
                   float miny,
                   float maxy)
Constructs a line trace.

Methods

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

 o setNumbering
 public 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 JLineTrace 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 JComponent
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of this component.

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

Overrides:
offscreenPaint in class JDoubleBufferedComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index