    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.

##

JLineTrace(float, float, float, float)
  Constructs a line trace.

##

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

##

JLineTrace

     public JLineTrace(float minx,
                       float maxx,
                       float miny,
                       float maxy)

  Constructs a line trace.

##

getModel

     public Graph2DModel getModel()

  Gets the data sampled by this JLineTrace.

setNumbering

     public void setNumbering(boolean flag)

  Turns axis numbering on/off.

setXExtrema

     public void setXExtrema(float min,
                             float max)

  Sets the minimum/maximum values on the x-axis.

setYExtrema

     public void setYExtrema(float min,
                             float max)

  Sets the minimum/maximum values on the y-axis.

setSampleNumber

     public void setSampleNumber(int n)

  Sets the number of samples.

clear

     public void clear()

  Clear the trace.

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

getPreferredSize

     public Dimension getPreferredSize()

  Returns the preferred size of this component.

  Overrides:
    getPreferredSize in class JComponent

getMinimumSize

     public Dimension getMinimumSize()

  Returns the minimum size of this component.

  Overrides:
    getMinimumSize in class JComponent

offscreenPaint

     protected void offscreenPaint(Graphics g)

  Paint the trace.

  Overrides:
    offscreenPaint in class JDoubleBufferedComponent

    All Packages  Class Hierarchy  This Package  Previous  Next  Index