public class FXMarqueeOnDragPolicy extends AbstractFXOnDragPolicy
FXMarqueeOnDragPolicy is an AbstractFXOnDragPolicy that
performs marquee selection when the mouse is dragged. The start and end
position of the mouse span a marquee area. Everything within that area will
be selected.| Constructor and Description |
|---|
FXMarqueeOnDragPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFeedback()
Adds a feedback rectangle to the root part of the
host
. |
void |
drag(javafx.scene.input.MouseEvent e,
Dimension delta)
This callback method is invoked when the mouse is moved while a button is
pressed.
|
static java.util.List<javafx.scene.Node> |
findContainedNodes(javafx.scene.Node root,
double x0,
double y0,
double x1,
double y1)
Returns a
List of all Nodes that are descendants of the
given root Node and fully contained within the bounds specified
by [x0, y0, x1, y1]. |
protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
getParts(java.util.List<javafx.scene.Node> nodes)
|
void |
press(javafx.scene.input.MouseEvent e)
This callback method is invoked when a mouse button is pressed on the
host. |
void |
release(javafx.scene.input.MouseEvent e,
Dimension delta)
This callback method is invoked when the previously pressed mouse button
is released.
|
protected void |
removeFeedback()
Removes the feedback rectangle.
|
protected void |
updateFeedback()
Updates the feedback rectangle.
|
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptablepublic static java.util.List<javafx.scene.Node> findContainedNodes(javafx.scene.Node root,
double x0,
double y0,
double x1,
double y1)
List of all Nodes that are descendants of the
given root Node and fully contained within the bounds specified
by [x0, y0, x1, y1].root - The root Node.x0 - The minimum x-coordinate.y0 - The minimum y-coordinate.x1 - The maximum x-coordinate.y1 - The maximum y-coordinate.List containing all Nodes that are descendants
of the given root Node and fully contained within the
specified bounds.protected void addFeedback()
host
. The rectangle will show the marquee area.public void drag(javafx.scene.input.MouseEvent e,
Dimension delta)
AbstractFXOnDragPolicydrag in class AbstractFXOnDragPolicye - The original MouseEvent.delta - The mouse offset since AbstractFXOnDragPolicy.press(MouseEvent) (in pixel).protected java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> getParts(java.util.List<javafx.scene.Node> nodes)
nodes - The List of Nodes for which the corresponding
IContentParts are returned.List containing all IContentParts that are
corresponding to the given Nodes.public void press(javafx.scene.input.MouseEvent e)
AbstractFXOnDragPolicyhost.press in class AbstractFXOnDragPolicye - The original MouseEventpublic void release(javafx.scene.input.MouseEvent e,
Dimension delta)
AbstractFXOnDragPolicyrelease in class AbstractFXOnDragPolicye - The original MouseEvent.delta - The mouse offset since AbstractFXOnDragPolicy.press(MouseEvent) (in pixel).protected void removeFeedback()
protected void updateFeedback()
Copyright (c) 2014 itemis AG and others. All rights reserved.