public class SelectionListener extends CreateGeometryListener
| Modifier and Type | Field and Description |
|---|---|
static String |
DOUBLECLICK_POINT_NOTIFICATION |
static String |
PROPERTY_LAST_FEATURE |
static String |
PROPERTY_MODE |
static String |
SELECTION_CHANGED_NOTIFICATION |
DEFAULT_NUMOF_ELLIPSE_EDGES, finishingEvent, GEOMETRY_CREATED_NOTIFICATION, mappingComponent, mode, points, snappedCoordinatesELLIPSE, LINESTRING, POINT, POLYGON, RECTANGLE, RECTANGLE_FROM_LINE, TEXT| Constructor and Description |
|---|
SelectionListener()
Creates a new SelectionListener object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
DOCUMENT ME!
|
void |
addSelectedFeature(PFeature pf)
Adds the given feature to the selected features.
|
protected void |
cleanup(SelectFeature feature)
DOCUMENT ME!
|
protected void |
finishGeometry(AbstractNewFeature feature)
DOCUMENT ME!
|
PFeature |
getAffectedPFeature()
DOCUMENT ME!
|
List<PFeature> |
getAllSelectedPFeatures()
DOCUMENT ME!
|
int |
getClickCount()
DOCUMENT ME!
|
com.vividsolutions.jts.geom.Point |
getDoubleclickPoint()
DOCUMENT ME!
|
protected Color |
getFillingColor()
DOCUMENT ME!
|
SelectFeature |
getLastSelectFeature()
DOCUMENT ME!
|
List<Feature> |
getLastUnselectedFeatures()
DOCUMENT ME!
|
MappingComponent |
getMappingComponent()
DOCUMENT ME!
|
Color |
getSelectColor()
DOCUMENT ME!
|
SelectFeature |
getSelectFeature()
DOCUMENT ME!
|
float |
getSelectTransparency()
DOCUMENT ME!
|
boolean |
isFeatureAdded()
DOCUMENT ME!
|
boolean |
isHoldingGeometries()
DOCUMENT ME!
|
boolean |
isSelectionInProgress()
DOCUMENT ME!
|
boolean |
isSelectMultipleFeatures()
DOCUMENT ME!
|
boolean |
isShowHandleNeighbourDistance()
DOCUMENT ME!
|
void |
mouseClicked(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
Selektiere einen PNode.
|
void |
mouseDragged(edu.umd.cs.piccolo.event.PInputEvent e) |
void |
mouseMoved(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
void |
mousePressed(edu.umd.cs.piccolo.event.PInputEvent pInputEvent) |
void |
mouseReleased(edu.umd.cs.piccolo.event.PInputEvent event)
Wird gefeuert, wenn die Maustaste nach dem Ziehen des Markiervierecks losgelassen wird.
|
protected boolean |
performSelect(SelectFeature selectFeature)
DOCUMENT ME!
|
void |
redoLastSelect()
DOCUMENT ME!
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
DOCUMENT ME!
|
void |
removeSelectedFeature(PFeature pf)
Removes the given feature from the selected features.
|
void |
select(SelectFeature selectFeature)
DOCUMENT ME!
|
void |
setFeatureAdded(boolean featureAdded)
DOCUMENT ME!
|
void |
setFeaturesFromServicesSelectable(boolean featuresFromServicesSelectable)
DOCUMENT ME!
|
void |
setHoldGeometries(boolean newValue)
DOCUMENT ME!
|
protected void |
setLastFeature(SelectFeature newValue)
DOCUMENT ME!
|
void |
setMode(String newValue)
DOCUMENT ME!
|
protected void |
setSelectFeature(SelectFeature selectFeature)
DOCUMENT ME!
|
void |
setSelectionInProgress(boolean selectionInProgress)
DOCUMENT ME!
|
void |
setSelectMultipleFeatures(boolean selectMultipleFeatures)
If this is false, a simgle click on a feature selects only the first feature.
|
void |
setShowHandleNeighbourDistance(boolean showHandleNeighbourDistance)
DOCUMENT ME!
|
protected void |
showFeature(SelectFeature feature)
DOCUMENT ME!
|
void |
showLastFeature()
DOCUMENT ME!
|
createCurrentNewFeature, createNewTempFeature, getCurrentNewFeature, getGeometryFeatureClass, getMode, getNumOfEllipseEdges, getPoints, isInMode, isInProgress, isShowCurrentLength, keyPressed, modeEquals, reset, setGeometryFeatureClass, setMappingComponent, setNumOfEllipseEdges, setShowCurrentLength, updatePolygonpublic static final String SELECTION_CHANGED_NOTIFICATION
public static final String DOUBLECLICK_POINT_NOTIFICATION
public static final String PROPERTY_LAST_FEATURE
public static final String PROPERTY_MODE
public SelectionListener()
public boolean isShowHandleNeighbourDistance()
public void setShowHandleNeighbourDistance(boolean showHandleNeighbourDistance)
showHandleNeighbourDistance - DOCUMENT ME!public void mouseMoved(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseMoved in class CreateGeometryListenerpublic void mousePressed(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mousePressed in class CreateGeometryListenerpublic void mouseClicked(edu.umd.cs.piccolo.event.PInputEvent pInputEvent)
mouseClicked in class edu.umd.cs.piccolo.event.PBasicInputEventHandlerpInputEvent - DOCUMENT ME!public MappingComponent getMappingComponent()
CreateGeometryListenergetMappingComponent in class CreateGeometryListenerpublic void addSelectedFeature(PFeature pf)
pf - the feature to addpublic void removeSelectedFeature(PFeature pf)
pf - the feature to removepublic void setFeaturesFromServicesSelectable(boolean featuresFromServicesSelectable)
featuresFromServicesSelectable - DOCUMENT ME!public void mouseDragged(edu.umd.cs.piccolo.event.PInputEvent e)
mouseDragged in class CreateGeometryListenerpublic void mouseReleased(edu.umd.cs.piccolo.event.PInputEvent event)
mouseReleased in class CreateGeometryListenerevent - das Mouseevent (als PInputEvent)public void addPropertyChangeListener(PropertyChangeListener listener)
listener - DOCUMENT ME!public void removePropertyChangeListener(PropertyChangeListener listener)
listener - DOCUMENT ME!public Color getSelectColor()
public float getSelectTransparency()
protected Color getFillingColor()
CreateGeometryListenergetFillingColor in class CreateGeometryListenerpublic void redoLastSelect()
public void showLastFeature()
protected void showFeature(SelectFeature feature)
feature - DOCUMENT ME!protected void setLastFeature(SelectFeature newValue)
newValue - DOCUMENT ME!public SelectFeature getLastSelectFeature()
public void select(SelectFeature selectFeature)
selectFeature - DOCUMENT ME!protected void cleanup(SelectFeature feature)
feature - DOCUMENT ME!public void setMode(String newValue) throws IllegalArgumentException
CreateGeometryListenersetMode in interface CreateGeometryListenerInterfacesetMode in class CreateGeometryListenernewValue - DOCUMENT ME!IllegalArgumentException - DOCUMENT ME!protected boolean performSelect(SelectFeature selectFeature)
selectFeature - DOCUMENT ME!public boolean isHoldingGeometries()
public void setHoldGeometries(boolean newValue)
newValue - DOCUMENT ME!public SelectFeature getSelectFeature()
protected void setSelectFeature(SelectFeature selectFeature)
selectFeature - DOCUMENT ME!protected void finishGeometry(AbstractNewFeature feature)
CreateGeometryListenerfinishGeometry in class CreateGeometryListenerfeature - DOCUMENT ME!public List<PFeature> getAllSelectedPFeatures()
public PFeature getAffectedPFeature()
public int getClickCount()
public com.vividsolutions.jts.geom.Point getDoubleclickPoint()
public boolean isSelectionInProgress()
public void setSelectionInProgress(boolean selectionInProgress)
selectionInProgress - the selectionInProgress to setpublic boolean isSelectMultipleFeatures()
public void setSelectMultipleFeatures(boolean selectMultipleFeatures)
selectMultipleFeatures - the selectMultipleFeatures to setpublic boolean isFeatureAdded()
public void setFeatureAdded(boolean featureAdded)
featureAdded - the featureAdded to setCopyright © 2012–2025 cismet GmbH. All rights reserved.