net.simplace.ui.formengine.geotools.FWMapLineChooserFormComponent

Version: 1.0

This class provides net.simplace.ui.formengine.FWAbstractFormComponentform component to successively select map points by several left button clicks, which are combined to a line string. A org.geotools.feature.FeatureCollection with the LineString as only feature is returned as form component getValue()value.


public class FWMapLineChooserFormComponent extends
FWMapPointsChooserFormComponent {
// Public Constructors
public FWMapLineChooserFormComponent(String aFormID, String aFieldID,
boolean aShowLabel, int aDetachable, Element aFormElement, FWObservable
aObservable);


// Public Instance Methods
public Object getValue(); // Overrides FWMapPointsChooserFormComponent

Returns a org.geotools.feature.FeatureCollection of the selected line.
returns {@code null} if no selection is made or the selection does not conform to {@link #iMinSelectionCount} and {@link #iMaxSelectionCount}.

// Protected Instance Methods
protected MapLineChooserPanel createMapChooserPanel(Element aFormElement,
FWObservable aObservable); // Overrides FWMapPointsChooserFormComponent

Creates an instance of net.simplace.ui.formengine.geotools.MapLineChooserPanel.


}



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) - net.simplace.ui.formengine.FWAbstractFormComponent (net.simplace.util.FWObserver) - FWAbstractMapChooserFormComponent (de.schmitzm.swing.CaptionsChangeable) - FWMapPointsChooserFormComponent - FWMapLineChooserFormComponent



Extended by: FWMapPolygonChooserFormComponent