net.simplace.ui.formengine.geotools.MapAreaChooserPanel

Version: 1.0

This class provides de.schmitzm.swing.JPanel which shows several map layers and let the user choose some envelopes. After each selection the envelope is marked in a special top layer. The current selection can be accessed by getSelection() and getSelectionAsRectangle2D() and maintained by clearSelection() and undoSelection().

Informations about map control:


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

// Constants
public static final Class SELECTION_GEOMETRY_TYPE;
protected final XMapPaneAction MAPAREACHOOSE_ACTION;
protected final XMapPaneTool MAPAREACHOOSE_TOOL;

// Public Instance Methods
public ArrayList getSelectionAsRectangle2D();

Returns (a copy of) the list of the selected envelopes.
returns the rectangle2d selection

// Protected Instance Methods
protected void performSelectTool(); // Overrides GeoObjectChooserPanel

Sets the map action tool to net.simplace.ui.formengine.geotools.MapAreaChooserPanel.MAPAREACHOOSE_TOOL.
protected Class getGeometryType(); // Defines AbstractMapChooserPanel

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


Creates a com.vividsolutions.jts.geom.Geometry from an com.vividsolutions.jts.geom.Envelope. If aEnv is null, a default (dummy) geometry is generated.
protected Style getSelectionStyle(Color aSelectionColor);
// Defines AbstractMapChooserPanel


Returns the style used to visualize a selection com.vividsolutions.jts.geom.Envelope.
protected void performSelectionEvent(int ox, int oy, int px, int py);

Performes a envelope selection on the map. Adds the envelope to position 0 of the net.simplace.ui.formengine.geotools.MapAreaChooserPanelenvelope list, transforms it to a Feature polygon featurepolygon feature and stores it in the net.simplace.ui.formengine.geotools.MapAreaChooserPanel.iSelectionFeatureCollectionFeatureCollection, as well as in the net.simplace.ui.formengine.geotools.MapAreaChooserPanel.iSelectionFeaturesmapping.


}



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 - MapAreaChooserPanel



Returned by: FWMapEnvelopeChooserFormComponent.createMapChooserPanel(), FWMapAreaChooserFormComponent.createMapChooserPanel()