net.refractions.udig.project.ui
Class PlatformGeoSelectionManager

java.lang.Object
  extended by AbstractGeoSelectionManager
      extended by net.refractions.udig.project.ui.PlatformGeoSelectionManager

public class PlatformGeoSelectionManager
extends AbstractGeoSelectionManager

The UDIG platform standard geoselection manager instance.

It is returned by GeoSelectionService.getPlatformSelectionManager().

Since:
UDIG 1.1
Author:
Vitalus

Field Summary
protected  Map currentMap
          Current active Map.
static java.lang.String ID
          ID of the manager.
static java.util.logging.Logger LOGGER
          Logger.
static java.lang.String PLATFORM_SELECTION_BAG
          Key for selection bag in Map's blackboard.
static java.lang.String PLATFORM_SELECTION_CACHE_KEY
          Key for cached selection bag in Map's blackboard.
 
Constructor Summary
PlatformGeoSelectionManager()
           
 
Method Summary
protected  void fireSelectionChanged(GeoSelectionChangedEvent event)
          Fires GeoSelectionChangedEvent to listeners.
protected  Map getCurrentMap()
           
 IGeoSelectionEntry getLatestSelection()
           
 IGeoSelection getSelection(java.lang.String context)
          Gets selection from current map by context.
 java.util.Iterator<IGeoSelectionEntry> getSelections()
           
protected  void setCurrentMap(Map activeMap)
           
 void setSelection(java.lang.String context, IGeoSelection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
ID of the manager.

See Also:
Constant Field Values

LOGGER

public static java.util.logging.Logger LOGGER
Logger.


PLATFORM_SELECTION_BAG

public static final java.lang.String PLATFORM_SELECTION_BAG
Key for selection bag in Map's blackboard.

See Also:
Constant Field Values

PLATFORM_SELECTION_CACHE_KEY

public static final java.lang.String PLATFORM_SELECTION_CACHE_KEY
Key for cached selection bag in Map's blackboard.

See Also:
Constant Field Values

currentMap

protected Map currentMap
Current active Map.

Constructor Detail

PlatformGeoSelectionManager

public PlatformGeoSelectionManager()
Method Detail

setCurrentMap

protected void setCurrentMap(Map activeMap)

getCurrentMap

protected Map getCurrentMap()

setSelection

public void setSelection(java.lang.String context,
                         IGeoSelection selection)
Parameters:
context -
selection -

getSelection

public IGeoSelection getSelection(java.lang.String context)
Gets selection from current map by context.

Parameters:
context -
Returns:

fireSelectionChanged

protected void fireSelectionChanged(GeoSelectionChangedEvent event)
Fires GeoSelectionChangedEvent to listeners.

Parameters:
event -

getSelections

public java.util.Iterator<IGeoSelectionEntry> getSelections()

getLatestSelection

public IGeoSelectionEntry getLatestSelection()