edu.bonn.xulu.plugin.vis
Class GTEditorTool

java.lang.Object
  extended by edu.bonn.xulu.plugin.vis.GTVisualisationTool
      extended by edu.bonn.xulu.plugin.vis.GTEditorTool
All Implemented Interfaces:
AbstractManager.ContentType, VisualisationTool

public class GTEditorTool
extends GTVisualisationTool

Diese Klasse stellt einen Editor fuer geografische Vektor-Daten dar. Neben Vektor-Daten koennen auch Raster angezeigt werden. Gesteuert wird der Editor durch eine Button-Leiste.

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.bonn.xulu.plugin.vis.GTVisualisationTool
GTVisualisationTool.UpdateListener, GTVisualisationTool.UpdateListenerProxy
 
Field Summary
protected  XuluModellingPlatform appl
          Xulu-Instanz fuer die der Editor erstellt wurde.
 
Fields inherited from class edu.bonn.xulu.plugin.vis.GTVisualisationTool
instanceCount, layeredMapPane, mapFrame, updateListener
 
Constructor Summary
GTEditorTool()
          Erstellt ein neues Tool.
 
Method Summary
protected  void createNewXuluObjectInDatapool(JEditorPane editor)
          Erstellt eine SingleFeatureCollection fuer eine FeatureCollection und fuegt es in den Xulu-Datenpool ein.
 void initialize(XuluModellingPlatform appl)
          Speichert die Xulu-Instanz, um in den Datenpool die neu erstellten Objekte einzufuegen.
 void performMapPaneEvent(JMapPaneEvent e)
          Lauscht auf das JEditorPane, um nach Beendigung eines Layers, dieses in den Xulu-Datenpool einzufuegen.
 
Methods inherited from class edu.bonn.xulu.plugin.vis.GTVisualisationTool
add, addLayer, close, determineStyleFromObject, extractRealObject, getLayeredMapFrame, getTitle, isVisible, isVisualisable, isVisualisable, remove, setTitle, setVisible, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appl

protected XuluModellingPlatform appl
Xulu-Instanz fuer die der Editor erstellt wurde.

Constructor Detail

GTEditorTool

public GTEditorTool()
Erstellt ein neues Tool. Erweitert das Fenster um eine Button-Leiste zur Steuerung des Editors.

Method Detail

initialize

public void initialize(XuluModellingPlatform appl)
Speichert die Xulu-Instanz, um in den Datenpool die neu erstellten Objekte einzufuegen.

Specified by:
initialize in interface VisualisationTool
Overrides:
initialize in class GTVisualisationTool
Parameters:
appl - Xulu-Instanz

performMapPaneEvent

public void performMapPaneEvent(JMapPaneEvent e)
Lauscht auf das JEditorPane, um nach Beendigung eines Layers, dieses in den Xulu-Datenpool einzufuegen.


createNewXuluObjectInDatapool

protected void createNewXuluObjectInDatapool(JEditorPane editor)
                                      throws Exception
Erstellt eine SingleFeatureCollection fuer eine FeatureCollection und fuegt es in den Xulu-Datenpool ein.

Parameters:
name - Bezeichnung fuer das neue Objekt im Datenpool
fc - neue FeatureCollection
Throws:
Exception