twaver.gis
Class GisInputHandlerFactory

java.lang.Object
  extended bytwaver.gis.GisInputHandlerFactory

public class GisInputHandlerFactory
extends java.lang.Object

GisInputHandlerFactory can create different interaction mode used in GIS. For example zoom mode, select mode, pan mode, measuring mode.


Constructor Summary
GisInputHandlerFactory()
           
 
Method Summary
static twaver.network.InteractionMode createDefaultMode(twaver.network.TNetwork network, GeographyMap map)
          Creates an interaction mode which can operate the elements on the TNetwork.
static twaver.network.InteractionMode createDistanceMode(twaver.network.TNetwork network)
          Creates an interaction mode which can handle measuring distance interaction.
static twaver.network.InteractionMode createDistanceMode(twaver.network.TNetwork network, GeographyMap map)
           
static twaver.network.InteractionMode createPanMode(GeographyMap map)
          Creates an interaction mode which can handle pan interaction.
static twaver.network.InteractionMode createPanMode(twaver.network.TNetwork network, GeographyMap map)
           
static twaver.network.InteractionMode createResetMode(twaver.network.TNetwork network, GeographyMap map)
           
static twaver.network.InteractionMode createSelectMode(twaver.network.TNetwork network, GeographyMap map)
          Creates an interaction mode which can handle selection interaction.
static twaver.network.InteractionMode createZoomMode(twaver.network.TNetwork network, GeographyMap map)
          Creates an interaction mode which can handle zoom in, zoom out,and reset interaction.
static twaver.network.InteractionMode createZoomMode(twaver.network.TNetwork network, GeographyMap map, int mode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GisInputHandlerFactory

public GisInputHandlerFactory()
Method Detail

createZoomMode

public static twaver.network.InteractionMode createZoomMode(twaver.network.TNetwork network,
                                                            GeographyMap map)
Creates an interaction mode which can handle zoom in, zoom out,and reset interaction.

Parameters:
network - the specified network which have loaded a map and on which the zoom operation will occur.
map - the loaded map which should be zoomed in ,zoomed out or reset.
Returns:
an interaction mode used to deal with zoom interaction.

createZoomMode

public static twaver.network.InteractionMode createZoomMode(twaver.network.TNetwork network,
                                                            GeographyMap map,
                                                            int mode)

createDefaultMode

public static twaver.network.InteractionMode createDefaultMode(twaver.network.TNetwork network,
                                                               GeographyMap map)
Creates an interaction mode which can operate the elements on the TNetwork.

Parameters:
network - the specified network which have loaded a map and on which the zoom operation will occur.
map - the reference map
Returns:
a default InteractionMode which will be used by the specified network.

createResetMode

public static twaver.network.InteractionMode createResetMode(twaver.network.TNetwork network,
                                                             GeographyMap map)

createSelectMode

public static twaver.network.InteractionMode createSelectMode(twaver.network.TNetwork network,
                                                              GeographyMap map)
Creates an interaction mode which can handle selection interaction.

Parameters:
network - the specified network which have loaded a map and on which the selection operation will occur.
map - the loaded map.
Returns:
an interaction mode used to deal with selection interaction.

createPanMode

public static twaver.network.InteractionMode createPanMode(GeographyMap map)
Creates an interaction mode which can handle pan interaction.

Parameters:
map - the map on which pan operation will occur.
Returns:
an interaction mode used to deal with pan interaction.

createPanMode

public static twaver.network.InteractionMode createPanMode(twaver.network.TNetwork network,
                                                           GeographyMap map)

createDistanceMode

public static twaver.network.InteractionMode createDistanceMode(twaver.network.TNetwork network)
Creates an interaction mode which can handle measuring distance interaction.

Parameters:
network - the specified network which have loaded a map and on which the measuring interaction will occur.
Returns:
an interaction mode used to deal with measuring interaction.

createDistanceMode

public static twaver.network.InteractionMode createDistanceMode(twaver.network.TNetwork network,
                                                                GeographyMap map)