public abstract class AxisScalarMap extends ScalarMapAdapter
Display.XAxis
,
Display.YAxis
, or Display.ZAxis
.
Instances of this class have the the JavaBean properties of the superclass.
SCALAR_MAP, SCALAR_TYPE
Modifier | Constructor and Description |
---|---|
protected |
AxisScalarMap(visad.RealType realType,
visad.DisplayRealType displayType,
DisplayAdapter display)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
void |
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,
java.awt.geom.AffineTransform transform)
Scales the axis values.
|
protected void |
setControl()
Sets the control of the underlying
ScalarMap . |
void |
translate(double amount)
Translates.
|
protected abstract void |
translate(double amount,
java.awt.geom.AffineTransform transform)
Translates the axis values.
|
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setRange, setScalarType
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDisplayRealType, removePropertyChangeListener, removePropertyChangeListener
protected AxisScalarMap(visad.RealType realType, visad.DisplayRealType displayType, DisplayAdapter display) throws visad.VisADException, java.rmi.RemoteException
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.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void translate(double amount) throws visad.VisADException, java.rmi.RemoteException
amount
- The amount by which to translate.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void scale(double amount) throws visad.VisADException, java.rmi.RemoteException
amount
- The amount by which to scale.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void flip() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void setControl() throws visad.VisADException, java.rmi.RemoteException
ScalarMap
. This is a
template method.setControl
in class ScalarMapAdapter
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected abstract void translate(double amount, java.awt.geom.AffineTransform transform)
amount
- The amount to translate the axis.transform
- The transformation to be translated.protected abstract javax.vecmath.Vector3d new3DTranslationVector(double amount)
amount
- The amount to translate the axis.protected abstract void scale(double amount, java.awt.geom.AffineTransform transform)
amount
- The amount to scale the axis by.transform
- The transformation to be scaled.protected abstract void scale(double[] values, double amount)
values
- Unknown.amount
- Unknown.