All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class GraphicPlotter.CoordinateAdjuster

java.lang.Object
   |
   +----GraphicPlotter.CoordinateAdjuster

public class CoordinateAdjuster
extends Object
A CoordinateAdjuster allows a scrollbar associated with a scale to be positioned in terms of values used by the scale.


Variable Index

 o comp
Component through which a scale coordinate value may be set.
 o max
The maximum value that a scale coordinate may have.
 o min
The minimum value that a scale coordinate may have.

Constructor Index

 o CoordinateAdjuster(AxisScale)
Construct a CoordinateAdjuster consisting of only the parent scale as an initial value.
 o CoordinateAdjuster(AxisScale, Component)
Construct a CoordinateAdjuster consisting of the Component through which the coordinate value may be changed.
 o CoordinateAdjuster(AxisScale, Component, String, String)
Construct a CoordinateAdjuster that consists of the Component through which the coordinate value may be changed, and Components that display the mininum and maximum values the coordinate may have.

Method Index

 o destroy()
Destroy objects that make up a CoordinateAdjuster as soon as possible after last use.
 o getValue()
Return the user coordinate value corresponding to the value of the Component through which the coordinate value may be changed.
 o toString()
Return a string representation of the object

Variables

 o comp
 public Component comp
Component through which a scale coordinate value may be set. For a scale whose coordinate values are continuous, it is usually a TextField. For a scale whose coordinate values are discrete, it is usually a Choice.

 o min
 public String min
The minimum value that a scale coordinate may have. It is used to display the range of values the coordinate have. Is usually null when the coordinate values are discrete.

 o max
 public String max
The maximum value that a scale coordinate may have. It is used to display the range of values the coordinate have. Is usually null when the coordinate values are discrete.

Constructors

 o CoordinateAdjuster
 public CoordinateAdjuster(AxisScale parent)
Construct a CoordinateAdjuster consisting of only the parent scale as an initial value.

 o CoordinateAdjuster
 public CoordinateAdjuster(AxisScale parent,
                           Component comp)
Construct a CoordinateAdjuster consisting of the Component through which the coordinate value may be changed.

 o CoordinateAdjuster
 public CoordinateAdjuster(AxisScale parent,
                           Component comp,
                           String min,
                           String max)
Construct a CoordinateAdjuster that consists of the Component through which the coordinate value may be changed, and Components that display the mininum and maximum values the coordinate may have.

Methods

 o getValue
 public double getValue() throws RuntimeException
Return the user coordinate value corresponding to the value of the Component through which the coordinate value may be changed.

Throws: RuntimeException
Thrown when this object is set to a value that cannot be converted to a user coordinate.
 o destroy
 public void destroy()
Destroy objects that make up a CoordinateAdjuster as soon as possible after last use. The default implmentation is empty.

 o toString
 public String toString()
Return a string representation of the object

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index