ucar.unidata.ui.symbol
Class RotateInfo

java.lang.Object
  extended by ucar.unidata.ui.symbol.RotateInfo
All Implemented Interfaces:
Cloneable

public class RotateInfo
extends Object
implements Cloneable

Holds information on how to rotate around a particular axis.

Version:
$Revision: 1.4 $
Author:
IDV Development Team

Field Summary
static int TYPE_X
          which axis
static int TYPE_Y
          which axis
static int TYPE_Z
          which axis
static int[] TYPES
          which axis
 
Constructor Summary
RotateInfo()
          default ctor
RotateInfo(int type)
          ctor
 
Method Summary
 RotateInfo doClone()
           
 Range getDataRange()
          Get the DataRange property.
 String getParam()
          Get the Param property.
 Range getRange()
          Get the Range property.
 int getType()
          Get the Type property.
 Unit getUnit()
          Get the the unit.
 String getUnitName()
          Get the name of the unit.
 void setDataRange(Range value)
          Set the Range property.
 void setParam(String value)
          Set the Param property.
 void setRange(Range value)
          Set the Range property.
 void setType(int value)
          Set the Type property.
 void setUnitName(String name)
          Set the name of the unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_X

public static final int TYPE_X
which axis

See Also:
Constant Field Values

TYPE_Y

public static final int TYPE_Y
which axis

See Also:
Constant Field Values

TYPE_Z

public static final int TYPE_Z
which axis

See Also:
Constant Field Values

TYPES

public static final int[] TYPES
which axis

Constructor Detail

RotateInfo

public RotateInfo()
default ctor


RotateInfo

public RotateInfo(int type)
ctor

Parameters:
type - Axis type
Method Detail

doClone

public RotateInfo doClone()
                   throws CloneNotSupportedException
Throws:
CloneNotSupportedException

setParam

public void setParam(String value)
Set the Param property.

Parameters:
value - The new value for Param

getParam

public String getParam()
Get the Param property.

Returns:
The Param

setUnitName

public void setUnitName(String name)
Set the name of the unit. Used by subclasses which have values that can be ed in different units.

Parameters:
name - name of unit

getUnitName

public String getUnitName()
Get the name of the unit.

Returns:
String representation of the unit name. May be null.

getUnit

public Unit getUnit()
Get the the unit.

Returns:
Unit used for ing values. May be null.

setRange

public void setRange(Range value)
Set the Range property.

Parameters:
value - The new value for Range

getRange

public Range getRange()
Get the Range property.

Returns:
The Range

setDataRange

public void setDataRange(Range value)
Set the Range property.

Parameters:
value - The new value for Range

getDataRange

public Range getDataRange()
Get the DataRange property.

Returns:
The DataRange

setType

public void setType(int value)
Set the Type property.

Parameters:
value - The new value for Type

getType

public int getType()
Get the Type property.

Returns:
The Type