public class FeatureAddHoleAction extends Object implements CustomAction
| Constructor and Description |
|---|
FeatureAddHoleAction(MappingComponent mc,
Feature f,
int position,
com.vividsolutions.jts.geom.LineString hole)
Creates a new FeatureAddHoleAction instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAction()
Adds the hole to the feature.
|
boolean |
featureConcerned(Feature feature)
Checks, if the given feature is concerned from this action.
|
CustomAction |
getInverse()
Delivers the inverse action.
|
String |
info()
delivers the description of the action as string.
|
public FeatureAddHoleAction(MappingComponent mc, Feature f, int position, com.vividsolutions.jts.geom.LineString hole)
mc - the MappingComponent, the parent polygon is contained inf - the feature, the hole should be added toposition - the postion of the hole in the polygonhole - the new holepublic void doAction()
doAction in interface CustomActionpublic String info()
info in interface CustomActionpublic CustomAction getInverse()
getInverse in interface CustomActionpublic boolean featureConcerned(Feature feature)
CustomActionfeatureConcerned in interface CustomActionfeature - the feature that should be checkedCopyright © 2012–2026 cismet GmbH. All rights reserved.