public class FXRotateSelectedOnRotatePolicy extends AbstractFXInteractionPolicy implements IFXOnRotatePolicy
FXRotateSelectedOnRotatePolicy
is an IFXOnRotatePolicy
that rotates the whole selection
when its
host
experiences a touch rotate gesture.adaptable
adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
FXRotateSelectedOnRotatePolicy() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
determineTargetParts()
Returns a
List containing all IContentPart s that should
be rotated by this policy. |
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
getTargetParts()
Returns the target parts of this policy.
|
protected FXTransformPolicy |
getTransformPolicy(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> part)
Returns the
FXTransformPolicy that is installed on the given
IVisualPart . |
protected boolean |
isRotate(javafx.scene.input.RotateEvent event)
Returns
true if the given RotateEvent should trigger
rotation. |
void |
rotate(javafx.scene.input.RotateEvent e)
Continuous reaction to rotation gestures.
|
void |
rotationAborted()
Reaction to the unexpected finish of a rotate gesture.
|
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.
|
isRegistered, isRegisteredForHost
commit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
adaptableProperty, getAdaptable, getHost, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> determineTargetParts()
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.protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> getTargetParts()
protected FXTransformPolicy getTransformPolicy(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> part)
FXTransformPolicy
that is installed on the given
IVisualPart
.part
- The IVisualPart
of which the FXTransformPolicy
is returned.FXTransformPolicy
that is installed on the given
IVisualPart
.protected boolean isRotate(javafx.scene.input.RotateEvent event)
true
if the given RotateEvent
should trigger
rotation. Otherwise returns false
. Per default always
returns true
.event
- The RotateEvent
in question.true
to indicate that the given RotateEvent
should trigger rotation, otherwise false
.public void rotate(javafx.scene.input.RotateEvent e)
IFXOnRotatePolicy
rotate
in interface IFXOnRotatePolicy
e
- The original RotateEvent
.public void rotationAborted()
IFXOnRotatePolicy
rotationAborted
in interface IFXOnRotatePolicy
public void rotationFinished(javafx.scene.input.RotateEvent e)
IFXOnRotatePolicy
rotationFinished
in interface IFXOnRotatePolicy
e
- The original RotateEvent
.public void rotationStarted(javafx.scene.input.RotateEvent e)
IFXOnRotatePolicy
rotationStarted
in interface IFXOnRotatePolicy
e
- The original RotateEvent
.Copyright (c) 2014 itemis AG and others. All rights reserved.