Package ucar.visad.display
Class AxisScalarMap
java.lang.Object
ucar.visad.display.MapAdapter
ucar.visad.display.ScalarMapAdapter
ucar.visad.display.AxisScalarMap
- All Implemented Interfaces:
Comparable
,Propertied
- Direct Known Subclasses:
XAxisScalarMap
,YAxisScalarMap
,ZAxisScalarMap
Provides support for adapting ScalarMap-s to
Display.XAxis
,
Display.YAxis
, or Display.ZAxis
.
Instances of this class have the the JavaBean properties of the superclass.
- Version:
- $Revision: 1.10 $
- Author:
- Steven R. Emmerson
-
Field Summary
Fields inherited from class ucar.visad.display.ScalarMapAdapter
SCALAR_MAP, SCALAR_TYPE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AxisScalarMap
(RealType realType, DisplayRealType displayType, DisplayAdapter display) Constructs. -
Method Summary
Modifier and TypeMethodDescriptionvoid
flip()
Flips.protected abstract javax.vecmath.Vector3d
new3DTranslationVector
(double amount) Returns a new, 3-D, translation vector.void
scale
(double amount) Scales.protected abstract void
scale
(double[] values, double amount) Scales.protected abstract void
scale
(double amount, AffineTransform transform) Scales the axis values.protected void
Sets the control of the underlyingScalarMap
.void
translate
(double amount) Translates.protected abstract void
translate
(double amount, AffineTransform transform) Translates the axis values.Methods inherited from class ucar.visad.display.ScalarMapAdapter
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setRange, setScalarType
Methods inherited from class ucar.visad.display.MapAdapter
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDisplayRealType, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
AxisScalarMap
protected AxisScalarMap(RealType realType, DisplayRealType displayType, DisplayAdapter display) throws VisADException, RemoteException Constructs.- Parameters:
realType
- The type of data to be mapped to the axis.displayType
- The display type of the axis.display
- The adapted, VisAD display for rendering.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
-
Method Details
-
translate
Translates.- Parameters:
amount
- The amount by which to translate.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
scale
Scales.- Parameters:
amount
- The amount by which to scale.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
flip
Flips.- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setControl
Sets the control of the underlyingScalarMap
. This is a template method.- Specified by:
setControl
in classScalarMapAdapter
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
translate
Translates the axis values.- Parameters:
amount
- The amount to translate the axis.transform
- The transformation to be translated.
-
new3DTranslationVector
protected abstract javax.vecmath.Vector3d new3DTranslationVector(double amount) Returns a new, 3-D, translation vector.- Parameters:
amount
- The amount to translate the axis.- Returns:
- Vector3D of the translation amount
-
scale
Scales the axis values.- Parameters:
amount
- The amount to scale the axis by.transform
- The transformation to be scaled.
-
scale
protected abstract void scale(double[] values, double amount) Scales.- Parameters:
values
- Unknown.amount
- Unknown.
-