public final class XAxisScalarMap extends AxisScalarMap
Display.XAxis
.
Instances of this class have the the JavaBean properties of the superclass.
SCALAR_MAP, SCALAR_TYPE
Constructor and Description |
---|
XAxisScalarMap(visad.RealType realType,
DisplayAdapter display)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
protected javax.vecmath.Vector3d |
new3DTranslationVector(double amount)
Returns a new, 3-D, translation vector.
|
protected void |
scale(double[] values,
double amount)
Scales an array of values by a given amount
|
protected void |
scale(double amount,
java.awt.geom.AffineTransform transform)
Scales the axis values.
|
protected void |
translate(double amount,
java.awt.geom.AffineTransform transform)
Translates the axis values.
|
flip, scale, setControl, translate
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setRange, setScalarType
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDisplayRealType, removePropertyChangeListener, removePropertyChangeListener
public XAxisScalarMap(visad.RealType realType, DisplayAdapter display) throws visad.VisADException, java.rmi.RemoteException
realType
- The type of data to be mapped to the X-axis.display
- The adapted, VisAD display for rendering.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void translate(double amount, java.awt.geom.AffineTransform transform)
translate
in class AxisScalarMap
amount
- The amount to translate the axis.transform
- The transformation to be translated.protected javax.vecmath.Vector3d new3DTranslationVector(double amount)
new3DTranslationVector
in class AxisScalarMap
amount
- The amount to translate the axis.protected void scale(double amount, java.awt.geom.AffineTransform transform)
scale
in class AxisScalarMap
amount
- The amount to scale the axis by.transform
- The transformation to be scaled.protected void scale(double[] values, double amount)
scale
in class AxisScalarMap
values
- The array of values to be scaled.amount
- The amount to scale the values.