All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class graphing.RangePanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----graphing.RangePanel

public class RangePanel
extends Frame
A pop-up panel that shows the current scale of the graph and lets the user edit the scale. The panel also checks for inappropriate values of the range variables and issues a warning.


Variable Index

 o xMax
The range variables, which can be read by the panel's parent.
 o xMin
The range variables, which can be read by the panel's parent.
 o xScale
The range variables, which can be read by the panel's parent.
 o yMax
The range variables, which can be read by the panel's parent.
 o yMin
The range variables, which can be read by the panel's parent.
 o yScale
The range variables, which can be read by the panel's parent.

Constructor Index

 o RangePanel(Component)

Method Index

 o action(Event, Object)
Read in the range settings and check if they are legitimate.
 o setEntries(double, double, double, double, double, double)
Call this method if you want the range panel to display the current range settings.

Variables

 o xMin
  public double xMin
The range variables, which can be read by the panel's parent.

 o xMax
  public double xMax
The range variables, which can be read by the panel's parent.

 o xScale
  public double xScale
The range variables, which can be read by the panel's parent.

 o yMin
  public double yMin
The range variables, which can be read by the panel's parent.

 o yMax
  public double yMax
The range variables, which can be read by the panel's parent.

 o yScale
  public double yScale
The range variables, which can be read by the panel's parent.

Constructors

 o RangePanel
  public RangePanel(Component parent)

Methods

 o setEntries
  public void setEntries(double xMin,
                         double xMax,
                         double xScale,
                         double yMin,
                         double yMax,
                         double yScale)
Call this method if you want the range panel to display the current range settings.

 o action
  public boolean action(Event e,
                        Object a)
Read in the range settings and check if they are legitimate. If not, pop up a warning and let the user try again. Once workable values of the range variables have been entered they are stored in the public instance variables and an ACTION_EVENT with this panel as its target is passed to the parent.

Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index