net.simplace.ui.formengine.geotools.MapObjectChooserPanel

Version: 1.0

This class provides a javax.swing.JPanel which shows several map layers and let the user choose a feature. The current selection can be accessed by getSelection().

Informations about map control:


public class MapObjectChooserPanel extends AbstractMapChooserPanel {
// Public Constructors
public MapObjectChooserPanel(Element aFormElement, FWObservable aObservable);

// Protected Instance Variables
protected Class iSelectionGeometryType;

// Protected Instance Methods
protected SimpleFeatureType createSelectionFeatureType();
// Defines AbstractMapChooserPanel


Does not create a org.opengis.feature.type.FeatureType (as the overridden method does), but instead returns simply the org.opengis.feature.type.FeatureType of the selection laye.
protected Class getGeometryType(); // Defines AbstractMapChooserPanel

Returns the geometry typ used to visualize an selection com.vividsolutions.jts.geom.Envelope.
protected Geometry transformSelectionObjectToGeometry(SimpleFeature aFeature);
// Defines AbstractMapChooserPanel


Returns the com.vividsolutions.jts.geom.Geometry of a Feature. If aFeature is null, a default geometry is generated.
protected Geometry transformSelectionObjectToGeometry(Envelope aEnv);

Creates a com.vividsolutions.jts.geom.Geometry from an com.vividsolutions.jts.geom.Envelope. If aEnv is null, a default (dummy) geometry is generated.
returns the transformed geometry
protected SimpleFeature transformSelectionObjectToFeature(SimpleFeature
aSelectionObject); // Defines AbstractMapChooserPanel

Simply returns aSelectionObject.
protected Style getSelectionStyle(Color aSelectionColor);
// Defines AbstractMapChooserPanel


Returns the style used to visualize a selection object.
protected void performSelectTool(); // Overrides GeoObjectChooserPanel

Calls the super-method and sets the mouse actions for click and window to de.schmitzm.geotools.gui.SelectableXMapPane.SELECT_ALL.
protected void performSelection(); // Overrides GeoObjectChooserPanel

Called when a Feature was selected on the map. If more than one object was selected, all selected Features are added to the selection.


}



Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JPanel (javax.accessibility.Accessible) - de.schmitzm.swing.JPanel (de.schmitzm.swing.Disposable) - GeoObjectChooserPanel (de.schmitzm.geotools.map.event.JMapPaneListener) - AbstractMapChooserPanel - MapObjectChooserPanel



Returned by: FWMapObjectChooserFormComponent.createMapChooserPanel()