ucar.visad.display
Class MapLines

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.MapLines

public class MapLines
extends LineDrawing

Provides support for displaying map lines.

Version:
$Revision: 1.10 $
Author:
Don Murray

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 MapLines(MapLines that)
          Constructs from another instance.
  MapLines(String name)
          Constructs an instance with the supplied reference name.
  MapLines(String name, SampledSet mapSet)
          Constructs an instance from a name and set of map lines.
 
Method Summary
 Displayable cloneForDisplay()
          Returns a clone of this instance suitable for another VisAD display.
 void setMapLines(SampledSet mapSet)
          Sets the map lines of this instance from a set of Latitude/Longitude points for the map lines.
 String toString()
          Provide a readable description of this MapLines
 
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, 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
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapLines

public MapLines(String name)
         throws VisADException,
                RemoteException
Constructs an instance with the supplied reference name.

Parameters:
name - reference name
Throws:
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object

MapLines

public MapLines(String name,
                SampledSet mapSet)
         throws VisADException,
                RemoteException
Constructs an instance from a name and set of map lines.

Parameters:
name - reference name
mapSet - set of map lines
Throws:
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object

MapLines

protected MapLines(MapLines that)
            throws RemoteException,
                   VisADException
Constructs from another instance.

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

setMapLines

public void setMapLines(SampledSet mapSet)
                 throws VisADException,
                        RemoteException
Sets the map lines of this instance from a set of Latitude/Longitude points for the map lines. The set dimension must be 2 and the CoordinateSystem (if one exists) must have a reference of RealType.Latitude and RealType.Longitude

Parameters:
mapSet - set of map lines
Throws:
VisADException - couldn't create the necessary VisAD object or reference is not lat/lon.
RemoteException - couldn't create the remote object

toString

public String toString()
Provide a readable description of this MapLines

Overrides:
toString in class DisplayableData
Returns:
readable description

cloneForDisplay

public Displayable cloneForDisplay()
                            throws RemoteException,
                                   VisADException
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.

Overrides:
cloneForDisplay in class DisplayableData
Returns:
A semi-deep clone of this instance.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.