All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class graphing.DispTraceGraphWindow

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----graphing.GraphWindow
                           |
                           +----graphing.ZoomGraphWindow
                                   |
                                   +----graphing.TraceGraphWindow
                                           |
                                           +----graphing.DispTraceGraphWindow

public class DispTraceGraphWindow
extends TraceGraphWindow
A DispTraceGraphWindow is a TraceGraphWindow which can display the coordinates of selected test points. It can display as many functions and nodes as desired, and shows the x and y coordinates of the last selected node.


Variable Index

 o display
Display the coordinates of the selected node is this is set
 o displayFont
The font coordinates are displayed in.
 o displayText
 o displayX
The location of the text displaying the coordinates of a test point.
 o displayY
 o sigFig
The number of significant places the coordinates of the test point are displayed to.

Constructor Index

 o DispTraceGraphWindow()
 o DispTraceGraphWindow(double, double, double, double)
 o DispTraceGraphWindow(double, double, double, double, double, double)

Method Index

 o deleteAll()
Delete all the nodes.
 o paint(Graphics)
 o trunc(double, int)
Truncate x to s significant figures.

Variables

 o sigFig
  public int sigFig
The number of significant places the coordinates of the test point are displayed to.

 o displayFont
  protected Font displayFont
The font coordinates are displayed in.

 o displayX
  protected int displayX
The location of the text displaying the coordinates of a test point.

 o displayY
  protected int displayY
 o displayText
  protected String displayText
 o display
  public boolean display
Display the coordinates of the selected node is this is set

Constructors

 o DispTraceGraphWindow
  public DispTraceGraphWindow(double xMin,
                              double xMax,
                              double xScale,
                              double yMin,
                              double yMax,
                              double yScale)
 o DispTraceGraphWindow
  public DispTraceGraphWindow(double xMin,
                              double xMax,
                              double yMin,
                              double yMax)
 o DispTraceGraphWindow
  public DispTraceGraphWindow()

Methods

 o paint
  public void paint(Graphics g)
Overrides:
paint in class TraceGraphWindow
 o deleteAll
  public void deleteAll()
Delete all the nodes.

Overrides:
deleteAll in class TraceGraphWindow
 o trunc
  protected static double trunc(double x,
                                int s)
Truncate x to s significant figures.


All Packages  Class Hierarchy  This Package  Previous  Next  Index