ucar.visad.display
Class ZAxisScalarMap

java.lang.Object
  extended by ucar.visad.display.MapAdapter
      extended by ucar.visad.display.ScalarMapAdapter
          extended by ucar.visad.display.AxisScalarMap
              extended by ucar.visad.display.ZAxisScalarMap
All Implemented Interfaces:
Comparable, Propertied

public final class ZAxisScalarMap
extends AxisScalarMap

Provides support for adapting ScalarMap-s to Display.ZAxis.

Instances of this class have the the JavaBean properties of the superclass.

Version:
$Revision: 1.9 $
Author:
Steven R. Emmerson

Field Summary
 
Fields inherited from class ucar.visad.display.ScalarMapAdapter
SCALAR_MAP, SCALAR_TYPE
 
Constructor Summary
ZAxisScalarMap(RealType realType, DisplayAdapter display)
          Constructs.
 
Method Summary
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 an amount.
protected  void scale(double amount, AffineTransform transform)
          Scales the axis values.
protected  void translate(double amount, AffineTransform transform)
          Translates the axis values.
 
Methods inherited from class ucar.visad.display.AxisScalarMap
flip, scale, setControl, translate
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZAxisScalarMap

public ZAxisScalarMap(RealType realType,
                      DisplayAdapter display)
               throws VisADException,
                      RemoteException
Constructs.

Parameters:
realType - The type of data to be mapped to the Z-axis.
display - The adapted, VisAD display for rendering.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

translate

protected void translate(double amount,
                         AffineTransform transform)
Translates the axis values.

Specified by:
translate in class AxisScalarMap
Parameters:
amount - The amount to translate the axis.
transform - The transformation to be translated.

new3DTranslationVector

protected javax.vecmath.Vector3d new3DTranslationVector(double amount)
Returns a new, 3-D, translation vector.

Specified by:
new3DTranslationVector in class AxisScalarMap
Parameters:
amount - The amount to translate the axis.
Returns:
Vector3d with the amount of translation

scale

protected void scale(double amount,
                     AffineTransform transform)
Scales the axis values.

Specified by:
scale in class AxisScalarMap
Parameters:
amount - The amount to scale the axis by.
transform - The transformation to be scaled.

scale

protected void scale(double[] values,
                     double amount)
Scales an array of values by an amount.

Specified by:
scale in class AxisScalarMap
Parameters:
values - The values to be scaled.
amount - The amount by which to scale the values.