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.
-
comp
- Component through which a scale coordinate value may be set.
-
max
- The maximum value that a scale coordinate may have.
-
min
- The minimum value that a scale coordinate may have.
-
CoordinateAdjuster(AxisScale)
- Construct a CoordinateAdjuster consisting of only the parent
scale as an initial value.
-
CoordinateAdjuster(AxisScale, Component)
- Construct a CoordinateAdjuster consisting of the Component
through which the coordinate value may be changed.
-
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.
-
destroy()
- Destroy objects that make up a CoordinateAdjuster as soon as
possible after last use.
-
getValue()
- Return the user coordinate value corresponding to the value of
the Component through which the coordinate value may be changed.
-
toString()
- Return a string representation of the object
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.
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.
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.
CoordinateAdjuster
public CoordinateAdjuster(AxisScale parent)
- Construct a CoordinateAdjuster consisting of only the parent
scale as an initial value.
CoordinateAdjuster
public CoordinateAdjuster(AxisScale parent,
Component comp)
- Construct a CoordinateAdjuster consisting of the Component
through which the coordinate value may be changed.
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.
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.
destroy
public void destroy()
- Destroy objects that make up a CoordinateAdjuster as soon as
possible after last use. The default implmentation is empty.
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