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.
-
xMax
- The range variables, which can be read by the panel's parent.
-
xMin
- The range variables, which can be read by the panel's parent.
-
xScale
- The range variables, which can be read by the panel's parent.
-
yMax
- The range variables, which can be read by the panel's parent.
-
yMin
- The range variables, which can be read by the panel's parent.
-
yScale
- The range variables, which can be read by the panel's parent.
-
RangePanel(Component)
-
-
action(Event, Object)
- Read in the range settings and check if they are legitimate.
-
setEntries(double, double, double, double, double, double)
- Call this method if you want the range panel to display the current range settings.
xMin
public double xMin
- The range variables, which can be read by the panel's parent.
xMax
public double xMax
- The range variables, which can be read by the panel's parent.
xScale
public double xScale
- The range variables, which can be read by the panel's parent.
yMin
public double yMin
- The range variables, which can be read by the panel's parent.
yMax
public double yMax
- The range variables, which can be read by the panel's parent.
yScale
public double yScale
- The range variables, which can be read by the panel's parent.
RangePanel
public RangePanel(Component parent)
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.
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