|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.gis.GisNetworkAdapter
This class helps wrap a TNetowrk object(network) with a geographical map. After installAdapter()
is invoked,
all the TWaver elements stored in network's databox can be located by their geographical coordinate automatically.
Constructor Summary | |
GisNetworkAdapter(twaver.network.TNetwork network)
Constructs a GisNetworkAdapter instance, which will be used to wrap a TNetwork object. |
Method Summary | |
void |
enableVoronoiGraphVisible(boolean isVisible)
|
GeographyMap |
getMap()
Gets the map used as the background of the network. |
VoronoiDiagram |
getVoronoiDiagram()
|
void |
installAdapter()
Wraps the network by setting a map as the background of the network and setting the mechanism used to synchronize the topological data and the geographical data. |
boolean |
isVoronoiGraphVisible()
|
boolean |
isZoomInByDoubleClick()
|
void |
reLocateElements()
|
void |
setLocateWithFilter(boolean v)
|
void |
setVoronoiDiagram(VoronoiDiagram diagram)
Assigns the VoronoiDiagram object to the adapter. |
void |
setVoronoiElementFilter(VoronoiElementFilter filter)
Assigns a new VoronoiElementFilter object to the adapter. |
void |
setVoronoiGraphBoundsShapeGenerator(twaver.Generator gengerator)
Assigns a new Generator object which is used to create the bounds shape of the voronoi diagram to the adapter. |
void |
setZoomInByDoubleClick(boolean zoomInByDoubleClick)
|
void |
unInstallAdapter()
UnWraps the network. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GisNetworkAdapter(twaver.network.TNetwork network)
network
- the target TNetwork object.Method Detail |
public void enableVoronoiGraphVisible(boolean isVisible)
public GeographyMap getMap()
public VoronoiDiagram getVoronoiDiagram()
public void installAdapter()
public boolean isVoronoiGraphVisible()
public boolean isZoomInByDoubleClick()
public void reLocateElements()
public void setLocateWithFilter(boolean v)
public void setVoronoiDiagram(VoronoiDiagram diagram)
VoronoiDiagram
object to the adapter.
diagram
- the specified VoronoiDiagram
object.public void setVoronoiElementFilter(VoronoiElementFilter filter)
VoronoiElementFilter
object to the adapter.
filter
- the specified VoronoiElementFilter
.public void setVoronoiGraphBoundsShapeGenerator(twaver.Generator gengerator)
gengerator
- a new Generator} object.public void setZoomInByDoubleClick(boolean zoomInByDoubleClick)
public void unInstallAdapter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |