ucar.unidata.view.geoloc
Class MapProjectionDisplayJ2D

java.lang.Object
  extended by ucar.visad.display.DisplayMaster
      extended by ucar.unidata.view.geoloc.NavigatedDisplay
          extended by ucar.unidata.view.geoloc.MapProjectionDisplay
              extended by ucar.unidata.view.geoloc.MapProjectionDisplayJ2D

public class MapProjectionDisplayJ2D
extends MapProjectionDisplay

Provides a navigated VisAD DisplayImpl for displaying data. The Projection or MapProjection provides the transformation from lat/lon space to xy space. There is one mode with this display - MODE_2D Performance is better using MapProjectionDisplayJ3D. Any displayable data must be able to map to RealType.Latitude, RealType.Longitude.

Version:
$Revision: 1.10 $ $Date: 2006/08/22 20:18:47 $
Author:
Don Murray

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.unidata.view.geoloc.MapProjectionDisplay
MapProjectionDisplay.MapProjection3DAdapter
 
Nested classes/interfaces inherited from class ucar.unidata.view.geoloc.NavigatedDisplay
NavigatedDisplay.VerticalMapSet
 
Field Summary
 
Fields inherited from class ucar.unidata.view.geoloc.MapProjectionDisplay
CURSOR_BEARING, CURSOR_BEARING_TYPE, CURSOR_RANGE, CURSOR_RANGE_TYPE, force2D
 
Fields inherited from class ucar.unidata.view.geoloc.NavigatedDisplay
BOTTOM_VIEW, BOTTOM_VIEW_NAME, CURSOR_ALTITUDE, CURSOR_LATITUDE, CURSOR_LONGITUDE, EAST_VIEW, EAST_VIEW_NAME, MODE_2D, MODE_2Din3D, MODE_3D, NORTH_VIEW, NORTH_VIEW_NAME, SOUTH_VIEW, SOUTH_VIEW_NAME, TOP_VIEW, TOP_VIEW_NAME, WEST_VIEW, WEST_VIEW_NAME
 
Fields inherited from class ucar.visad.display.DisplayMaster
behavior, defaultMouseFunctions, POINT_MODE
 
Constructor Summary
MapProjectionDisplayJ2D()
          Constructs the default instance.
MapProjectionDisplayJ2D(MapProjection projection)
          Constructs an instance with the specified MapProjection
MapProjectionDisplayJ2D(ucar.unidata.geoloc.ProjectionImpl projection)
          Constructs an instance with the specified Projection and mode.
 
Method Summary
 void addKeyboardBehavior(KeyboardBehavior behavior)
          Add a keyboard behavior.
 void enableClipping(boolean clip)
          Enable clipping of data at the box edges
 RubberBandBox getRubberBandBox()
          Retrieve the RubberBandBox being used in this component.
protected  void initializeClass()
          Set up the display called by constructor
 boolean isPerspectiveView()
          Get the view to perspective or parallel.
 
Methods inherited from class ucar.unidata.view.geoloc.MapProjectionDisplay
addVerticalMap, cursorMoved, destroy, getAltitudeMap, getCursorBearing, getCursorRange, getDisplayAltitudeType, getDisplayCoordinateSystem, getDisplayLatitudeType, getDisplayLongitudeType, getEarthLocation, getInstance, getInstance, getInstance, getInstance, getMapProjection, getSpatialCoordinates, getSpatialCoordinates, getVerticalRange, init, main, makeDefaultMapProjection, pointerMoved, removeVerticalMap, scaleVerticalValues, setCursorBearing, setCursorRange, setMapArea, setMapProjection, setMapProjection, setMapRegion, setVerticalRange, setVerticalRangeUnit, setView, updateLocation
 
Methods inherited from class ucar.unidata.view.geoloc.NavigatedDisplay
animateMatrix, center, center, center, center, centerAndZoom, centerAndZoomTo, enableRubberBanding, flythrough, getAnimationStringOn, getAutoRotate, getBottomViewName, getBoxVisible, getCenterPoint, getCursorAltitude, getCursorLatitude, getCursorLongitude, getDisplayMode, getEarthLocation, getEarthLocation, getEarthLocation, getEastViewName, getIsAnimating, getLatLonBox, getLatLonRect, getNavigationToolBar, getNorthViewName, getRay, getRayDirection, getRayPositionAtZ, getScaledValue, getScalesVisible, getScreenCenter, getScreenCoordinates, getScreenCoordinates, getScreenLowerLeft, getScreenLowerRight, getScreenUpperLeft, getScreenUpperRight, getSouthViewName, getSpatialCoordinatesFromScreen, getSpatialCoordinatesFromScreen, getTopViewName, getVerticalRangeUnit, getVisadBox, getWestViewName, init, isClippingEnabled, moveToScreen, moveToScreen, moveToScreen, rotateView, rotateView, setAnimationStringOn, setAutoRotate, setBoxVisible, setCursorAltitude, setCursorLatitude, setCursorLongitude, setCursorStringOn, setForeground, setPerspectiveView, setRotateDelay, setRubberBandBox, setScalesVisible, setVerticalMapUnit
 
Methods inherited from class ucar.visad.display.DisplayMaster
addDisplayable, addDisplayListener, addPropertyChangeListener, addPropertyChangeListener, addScalarMap, addScalarMaps, addVetoableChangeListener, addVetoableChangeListener, buildAnimationSet, dataChange, draw, ensureInactive, equals, finalize, firePropertyChange, firePropertyChange, getAnimationSetFromDisplayables, getAnimationStringVisible, getBackground, getComponent, getDisplay, getDisplayableCount, getDisplayables, getDisplayables, getDisplayAspect, getDisplayComponent, getForeground, getImage, getMouseBehavior, getOffscreenDimension, getProjectionMatrix, getSavedProjectionMatrix, getScreenBounds, getStereoAvailable, getWaitMessageVisible, handleMouseWheelMoved, hashCode, indexOf, init, is3D, isActive, isPointMode, printMatrix, printMe, rebuild, rebuildDisplay, reDisplayAll, removeDisplayable, removeDisplayables, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, removeScalarMaps, removeVetoableChangeListener, removeVetoableChangeListener, replaceScalarMap, reScale, resetMouseFunctions, resetProjection, rotate, rotateX, rotateY, rotateZ, saveCurrentDisplay, saveCurrentDisplay, saveCurrentDisplay, saveProjection, setActive, setAnimation, setAnimationStringVisible, setBackground, setDefaultMouseFunctions, setDisplayables, setDisplayables, setDisplayActive, setDisplayAspect, setDisplayInactive, setEyePosition, setKeyboardBehavior, setKeyboardEventMap, setKeyboardEventMap, setMouseFunctions, setOffscreenDimension, setPointMode, setProjectionMatrix, setRebuildNecessary, setWaitMessageVisible, setWheelEventMap, translate, zoom, zoom
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapProjectionDisplayJ2D

public MapProjectionDisplayJ2D()
                        throws VisADException,
                               RemoteException
Constructs the default instance. The default instance is based on a LatLonProjection.

Throws:
VisADException - Couldn't create necessary VisAD object
RemoteException - Couldn't create a remote object

MapProjectionDisplayJ2D

public MapProjectionDisplayJ2D(ucar.unidata.geoloc.ProjectionImpl projection)
                        throws VisADException,
                               RemoteException
Constructs an instance with the specified Projection and mode.

Parameters:
projection - map projection
Throws:
VisADException - Couldn't create necessary VisAD object
RemoteException - Couldn't create a remote object

MapProjectionDisplayJ2D

public MapProjectionDisplayJ2D(MapProjection projection)
                        throws VisADException,
                               RemoteException
Constructs an instance with the specified MapProjection

Parameters:
projection - map projection CS
Throws:
VisADException - Couldn't create necessary VisAD object
RemoteException - Couldn't create a remote object
Method Detail

initializeClass

protected void initializeClass()
                        throws VisADException,
                               RemoteException
Set up the display called by constructor

Overrides:
initializeClass in class MapProjectionDisplay
Throws:
RemoteException
VisADException

addKeyboardBehavior

public void addKeyboardBehavior(KeyboardBehavior behavior)
Add a keyboard behavior.

Specified by:
addKeyboardBehavior in class MapProjectionDisplay
Parameters:
behavior - behavior to add

isPerspectiveView

public boolean isPerspectiveView()
Get the view to perspective or parallel.

Overrides:
isPerspectiveView in class NavigatedDisplay
Returns:
true if perpsective view

enableClipping

public void enableClipping(boolean clip)
Enable clipping of data at the box edges

Overrides:
enableClipping in class NavigatedDisplay
Parameters:
clip - true to turn clipping on, otherwise off

getRubberBandBox

public RubberBandBox getRubberBandBox()
Retrieve the RubberBandBox being used in this component.

Overrides:
getRubberBandBox in class NavigatedDisplay
Returns:
RubberBandBox being used. This instance returns null.