org.ascape.gis.view
Class MapLocationHandler

java.lang.Object
  extended by com.bbn.openmap.layer.location.AbstractLocationHandler
      extended by org.ascape.gis.view.MapLocationHandler
All Implemented Interfaces:
com.bbn.openmap.layer.location.LocationHandler, com.bbn.openmap.PropertyConsumer, java.awt.event.ActionListener, java.awt.event.MouseListener, java.io.Serializable, java.util.EventListener

public class MapLocationHandler
extends com.bbn.openmap.layer.location.AbstractLocationHandler
implements java.awt.event.MouseListener, java.awt.event.ActionListener, java.io.Serializable

This is a handler that open map uses to determine objects to be painted. Most of its activities are delegated to the MapView. (We can't simply define this as an inner class of MapView, because OpenMap wants to create it directly.)

Author:
Miles Parker, Josh Miller, and others
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.bbn.openmap.layer.location.AbstractLocationHandler
locationColor, nameColor, propertyPrefix, zLayer
 
Fields inherited from interface com.bbn.openmap.layer.location.LocationHandler
defaultLocationColorString, defaultNameColorString, forceGlobalCommand, ForceGlobalProperty, LocationColorProperty, NameColorProperty, readDataCommand, showdetails, showLocationsCommand, ShowLocationsProperty, showname, showNamesCommand, ShowNamesProperty
 
Fields inherited from interface com.bbn.openmap.PropertyConsumer
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
 
Constructor Summary
MapLocationHandler()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          A no op.
 void fillLocationPopUpMenu(com.bbn.openmap.layer.location.LocationPopupMenu locMenu)
          Fills the LocationPopupMenu with MenuItems
 java.util.Vector get(float nwLat, float nwLon, float seLat, float seLon, java.util.Vector graphicList)
          Returns a list of graphics that are within a specified region Part of Abstract Location Handler contract.
 void mouseClicked(java.awt.event.MouseEvent e)
          A no op.
 void mouseDragged(java.awt.event.MouseEvent e)
          A no op.
 void mouseEntered(java.awt.event.MouseEvent e)
          A no op.
 void mouseExited(java.awt.event.MouseEvent e)
          A no op.
 void mousePressed(java.awt.event.MouseEvent e)
          Method.
 void mouseReleased(java.awt.event.MouseEvent e)
          A no op.
 void reloadData()
          A no op.
 void setView(MapView view)
          Sets view for the MapLocationHandler object.
 
Methods inherited from class com.bbn.openmap.layer.location.AbstractLocationHandler
getGUI, getLayer, getLocationColor, getNameColor, getProperties, getPropertyInfo, getPropertyPrefix, isForceGlobal, isShowLocations, isShowNames, removed, setForceGlobal, setLayer, setLocationColor, setNameColor, setProperties, setProperties, setPropertyPrefix, setShowLocations, setShowNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapLocationHandler

public MapLocationHandler()
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
A no op.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
A no op.

Parameters:
e - a MouseEvent

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
A no op.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
A no op.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Method.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - parameter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
A no op.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - a MouseEvent

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
A no op.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - a MouseEvent

reloadData

public void reloadData()
A no op.

Specified by:
reloadData in interface com.bbn.openmap.layer.location.LocationHandler

fillLocationPopUpMenu

public void fillLocationPopUpMenu(com.bbn.openmap.layer.location.LocationPopupMenu locMenu)
Fills the LocationPopupMenu with MenuItems

Specified by:
fillLocationPopUpMenu in interface com.bbn.openmap.layer.location.LocationHandler
Overrides:
fillLocationPopUpMenu in class com.bbn.openmap.layer.location.AbstractLocationHandler
Parameters:
locMenu - a LocationPopupMenu

get

public java.util.Vector get(float nwLat,
                            float nwLon,
                            float seLat,
                            float seLon,
                            java.util.Vector graphicList)
Returns a list of graphics that are within a specified region Part of Abstract Location Handler contract.

Specified by:
get in interface com.bbn.openmap.layer.location.LocationHandler
Parameters:
nwLat - nw lat corner
nwLon - nw lon corner
seLat - se lat corner
seLon - se lon corner
graphicList - the graphicList
Returns:
the graphicList

setView

public void setView(MapView view)
Sets view for the MapLocationHandler object.

Parameters:
view - the view


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.