ucar.visad.display
Class PolarLineDrawing

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.LineDrawing
              extended by ucar.visad.display.PolarLineDrawing
Direct Known Subclasses:
CrossHair, Radials, RingSet, SpeedLabels

public abstract class PolarLineDrawing
extends LineDrawing

Provides support for lines drawing in a polar coordinate system.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
 
Field Summary
 
Fields inherited from class ucar.visad.display.LineDrawing
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
 
Fields inherited from class ucar.visad.display.DisplayableData
MANIPULABLE, renderer, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
protected PolarLineDrawing(PolarLineDrawing that)
          Constructs from another instance.
protected PolarLineDrawing(String name, RealTupleType polarType)
          Constructs from a name and a vector space.
 
Method Summary
 boolean equals(Object obj)
          Indicates if this instance is semantically identical to another object.
protected  int getBearingIndex()
          Gets the index of the bearing element.
static int getBearingIndex(RealTupleType polarType)
          Gets the index of the bearing element of a vector space.
protected  RealType getBearingType()
          Gets the RealType of the bearing element.
protected  RealTupleType getPolarType()
          Gets the vector space of this instance.
protected  int getRangeIndex()
          Gets the index of the range element.
protected  RealType getRangeType()
          Gets the RealType of the range element.
 int hashCode()
          Gets the hash code of this instance.
 
Methods inherited from class ucar.visad.display.LineDrawing
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA
 
Methods inherited from class ucar.visad.display.DisplayableData
addAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolarLineDrawing

protected PolarLineDrawing(String name,
                           RealTupleType polarType)
                    throws RemoteException,
                           VisADException
Constructs from a name and a vector space.

Parameters:
name - The name for the instance.
polarType - The vector space.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

PolarLineDrawing

protected PolarLineDrawing(PolarLineDrawing that)
                    throws RemoteException,
                           VisADException
Constructs from another instance. The following attributes are set from the other instance: the vector space.

Parameters:
that - The other instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

getPolarType

protected final RealTupleType getPolarType()
Gets the vector space of this instance.

Returns:
The vector space of this instance.

getRangeIndex

protected final int getRangeIndex()
Gets the index of the range element.

Returns:
The index of the range element.

getBearingIndex

protected final int getBearingIndex()
Gets the index of the bearing element.

Returns:
The index of the bearing element.

getBearingIndex

public static int getBearingIndex(RealTupleType polarType)
                           throws VisADException
Gets the index of the bearing element of a vector space.

Parameters:
polarType - The vector space.
Returns:
The index of the bearing element.
Throws:
VisADException - VisAD failure.

getRangeType

protected final RealType getRangeType()
                               throws VisADException
Gets the RealType of the range element.

Returns:
The RealType of the range element of this instance.
Throws:
VisADException - VisAD failure.

getBearingType

protected final RealType getBearingType()
                                 throws VisADException
Gets the RealType of the bearing element.

Returns:
The RealType of the bearing element of this instance.
Throws:
VisADException - VisAD failure.

equals

public boolean equals(Object obj)
Indicates if this instance is semantically identical to another object.

Overrides:
equals in class Object
Parameters:
obj - The other object.
Returns:
true if and only if this instance is semantically identical to the other object.

hashCode

public int hashCode()
Gets the hash code of this instance.

Overrides:
hashCode in class Object
Returns:
The hash code of this instance.