net.simplace.ui.formengine.geotools.MapPointsChooserPanel

Version: 1.0

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

Informations about map control:


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

// Constants
public static final Class SELECTION_GEOMETRY_TYPE;
protected final XMapPaneAction MAPPOINTCHOOSE_ACTION;
protected final XMapPaneTool MAPPOINTCHOOSE_TOOL;

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

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

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


Creates a com.vividsolutions.jts.geom.Geometry from an com.vividsolutions.jts.geom.Coordinate. If aCoord 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.Point.
protected void performSelectionEvent(int x, int y);

Performs a point selection on the map. Adds the point to position 0 of the net.simplace.ui.formengine.geotools.MapPointsChooserPanel.iSelectionObjectspoint list, transforms it to a org.opengis.feature.Featurepoint feature and stores it in the net.simplace.ui.formengine.geotools.MapPointsChooserPanel.iSelectionFeatureCollectionFeatureCollection, as well as in the net.simplace.ui.formengine.geotools.MapPointsChooserPanel.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 - MapPointsChooserPanel



Extended by: MapLineChooserPanel



Returned by: FWMapPointsChooserFormComponent.createMapChooserPanel()