public class FeatureRotateAction extends Object implements CustomAction
| Constructor and Description |
|---|
FeatureRotateAction(MappingComponent mc,
Collection<Feature> arr,
Point2D pivot,
double rot)
Erzeugt eine neue FeatureRotateAction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAction()
Dreht die in der ArrayList enthaltenen PFeatures.
|
boolean |
featureConcerned(Feature feature)
Checks, if the given feature is concerned from this action.
|
FeatureRotateAction |
getInverse()
Liefert als Gegenteil die FeatureRotateAktion in die umgekehrte Richtung.
|
String |
info()
Liefert eine Beschreibung der Aktion als String.
|
public FeatureRotateAction(MappingComponent mc, Collection<Feature> arr, Point2D pivot, double rot)
mc - die Mappingcomponentarr - pfArr ArrayList mit zu drehenden PFeaturespivot - Kopie des Angelpunkts der Drehungrot - Drehwinkel im Bogenmaßpublic void doAction()
doAction in interface CustomActionpublic String info()
info in interface CustomActionpublic FeatureRotateAction 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.