Loading [MathJax]/extensions/tex2jax.js
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:
- Zoom-in: mouse wheel
- Zoom-out: right click or mouse wheel
- Move map: right drag
- Envelope selection: left drag
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 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.
- aSelectionObject the object of one selection
protected Style
getSelectionStyle(Color aSelectionColor);
// Defines AbstractMapChooserPanel
Returns the style used to visualize a selection com.vividsolutions.jts.geom.Envelope.
- aSelectionColor the color the style is created with
}
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()