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:
- Zoom-in: mouse wheel or left drag
- Zoom-out: right click or mouse wheel
- Move map: right drag
- Point selection: left click
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 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.
- aCoord the {@link Coordinate} of one selection
protected Style
getSelectionStyle(Color aSelectionColor);
// Defines AbstractMapChooserPanel
Returns the style used to visualize a selection com.vividsolutions.jts.geom.Point.
- aSelectionColor the color the style is created with (not used at the time!)
}
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()