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.
-
LineTrace(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 LineTrace.
-
getPreferredSize()
- Returns the preferred size of this component.
-
offscreenPaint(Graphics)
- Paint the trace.
-
setBounds(int, int, int, int)
- Reshapes the LineTrace 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.
LineTrace
public LineTrace(float minx,
float maxx,
float miny,
float maxy)
- Constructs a line trace.
getModel
public Graph2DModel getModel()
- Gets the data sampled by this LineTrace.
setNumbering
public final 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 LineTrace 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 Component
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of this component.
- Overrides:
- getMinimumSize in class Component
offscreenPaint
protected void offscreenPaint(Graphics g)
- Paint the trace.
- Overrides:
- offscreenPaint in class DoubleBufferedCanvas
All Packages Class Hierarchy This Package Previous Next Index