public class FXRotateSelectedOnRotatePolicy extends AbstractFXOnRotatePolicy
FXRotateSelectedOnRotatePolicy
is an
AbstractFXOnRotatePolicy
that rotates the whole selection
when its host
experiences a touch rotate
gesture.Constructor and Description |
---|
FXRotateSelectedOnRotatePolicy() |
Modifier and Type | Method and Description |
---|---|
protected FXRotatePolicy |
getRotatePolicy(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> part)
Returns the
FXRotatePolicy that is installed on the given
IVisualPart . |
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
getTargetParts()
Returns a
List containing all IContentPart s that should
be rotated by this policy. |
void |
rotate(javafx.scene.input.RotateEvent e)
Continuous reaction to rotation gestures.
|
void |
rotationFinished(javafx.scene.input.RotateEvent e)
Reaction to the finish of rotate gestures.
|
void |
rotationStarted(javafx.scene.input.RotateEvent e)
Reaction to the detection of rotate gestures.
|
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptable
protected FXRotatePolicy getRotatePolicy(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> part)
FXRotatePolicy
that is installed on the given
IVisualPart
.part
- The IVisualPart
of which the FXRotatePolicy
is
returned.FXRotatePolicy
that is installed on the given
IVisualPart
.protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> getTargetParts()
List
containing all IContentPart
s that should
be rotated by this policy. Per default, the whole selection
is returned.List
containing all IContentPart
s that should
be rotated by this policy.public void rotate(javafx.scene.input.RotateEvent e)
AbstractFXOnRotatePolicy
rotate
in class AbstractFXOnRotatePolicy
e
- The original RotateEvent
.public void rotationFinished(javafx.scene.input.RotateEvent e)
AbstractFXOnRotatePolicy
rotationFinished
in class AbstractFXOnRotatePolicy
e
- The original RotateEvent
.public void rotationStarted(javafx.scene.input.RotateEvent e)
AbstractFXOnRotatePolicy
rotationStarted
in class AbstractFXOnRotatePolicy
e
- The original RotateEvent
.Copyright (c) 2014 itemis AG and others. All rights reserved.