public class RNodeImpl<T extends javafx.scene.Node> extends Object implements RNode<T>
| Constructor and Description |
|---|
RNodeImpl(T node,
RController controller) |
| Modifier and Type | Method and Description |
|---|---|
javafx.geometry.Point2D |
center() |
RNode<T> |
click()
Click the
MouseButton.PRIMARY at the center of the context |
RNode<T> |
click(double x,
double y)
Click the
MouseButton.PRIMARY at the x/y coordinates relative the
left-upper corner of the context |
RNode<T> |
click(javafx.scene.input.MouseButton button)
Click the
MouseButton at the center of the node |
RNode<T> |
click(javafx.scene.input.MouseButton button,
double x,
double y)
Click the
MouseButton at the x/y coordinates relative the left-upper
corner of the context |
RNode<T> |
doubleClick()
Double click the
MouseButton.PRIMARY at the center of the context |
RNode<T> |
doubleClick(double x,
double y)
Double click the
MouseButton.PRIMARY at the x/y coordinates relative
the left-upper corner of the context |
RNode<T> |
doubleClick(javafx.scene.input.MouseButton button)
Double click the
MouseButton at the center of the context |
RNode<T> |
doubleClick(javafx.scene.input.MouseButton button,
double x,
double y)
Double click the
MouseButton at the x/y coordinates relative the
left-upper corner of the context |
RNode<T> |
dragBy(double dx,
double dy)
Drag from the center to the provided position
|
RNode<T> |
dragBy(Duration d,
double dx,
double dy)
Drag from the center to the provided position
|
RNode<T> |
dragTo(double x,
double y)
Drag from the center to the provided position
|
RNode<T> |
dragTo(Duration d,
double x,
double y)
Drag from the center to the provided position
|
RNode<T> |
focus() |
javafx.geometry.Point2D |
location(javafx.geometry.Pos position)
Compute the location of the provided
Pos in screen coordinates |
RNode<T> |
moveTo(double x,
double y)
Move to a location relative to the upper left corner
|
RNode<T> |
moveTo(Duration d,
double x,
double y)
Move to a location relative to the upper left corner in the provided duration
|
RNode<T> |
moveTo(Duration d,
javafx.geometry.Pos referencePoint,
double _x,
double _y)
Move to a location relative to the reference position provided in the
provided duration
|
RNode<T> |
moveTo(javafx.geometry.Pos referencePoint,
double _x,
double _y)
Move to a location relative to the reference position provided
|
RNode<T> |
moveToCenter()
Move to the center of the owner
|
RNode<T> |
moveToCenter(Duration d)
Move to the center of the owner in the provided duration
|
T |
node() |
RNode<T> |
typeText(String text)
Type the provided text
|
public RNodeImpl(T node, RController controller)
public T node()
public RNode<T> click()
Click.ClickableMouseButton.PRIMARY at the center of the contextclick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>public RNode<T> click(javafx.scene.input.MouseButton button)
Click.ClickableMouseButton at the center of the nodeclick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>button - the buttonpublic RNode<T> click(double x, double y)
Click.ClickableMouseButton.PRIMARY at the x/y coordinates relative the
left-upper corner of the contextclick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>x - the x difference to the left upper corner in the contexty - the y difference to the left upper corner in the contextpublic RNode<T> click(javafx.scene.input.MouseButton button, double x, double y)
Click.ClickableMouseButton at the x/y coordinates relative the left-upper
corner of the contextclick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>button - the button typex - the x difference to the left upper corner in the contexty - the y difference to the left upper corner in the contextpublic RNode<T> doubleClick()
Click.ClickableMouseButton.PRIMARY at the center of the contextdoubleClick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>public RNode<T> doubleClick(javafx.scene.input.MouseButton button)
Click.ClickableMouseButton at the center of the contextdoubleClick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>button - the button typepublic RNode<T> doubleClick(double x, double y)
Click.ClickableMouseButton.PRIMARY at the x/y coordinates relative
the left-upper corner of the contextdoubleClick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>x - the x difference to the left upper corner in the contexty - the y difference to the left upper corner in the contextpublic RNode<T> doubleClick(javafx.scene.input.MouseButton button, double x, double y)
Click.ClickableMouseButton at the x/y coordinates relative the
left-upper corner of the contextdoubleClick in interface Click.Clickable<RNode<T extends javafx.scene.Node>>button - the buttonx - the x difference to the left upper corner in the contexty - the y difference to the left upper corner in the contextpublic RNode<T> moveToCenter()
Move.MoveablemoveToCenter in interface Move.Moveable<RNode<T extends javafx.scene.Node>>public RNode<T> moveTo(double x, double y)
Move.MoveablemoveTo in interface Move.Moveable<RNode<T extends javafx.scene.Node>>x - the x relative to upper left cornery - the y relative to upper left cornerpublic RNode<T> moveToCenter(Duration d)
Move.MoveablemoveToCenter in interface Move.Moveable<RNode<T extends javafx.scene.Node>>d - the duraionpublic RNode<T> moveTo(Duration d, double x, double y)
Move.MoveablemoveTo in interface Move.Moveable<RNode<T extends javafx.scene.Node>>d - the durationx - the x relative to upper left cornery - the y relative to upper left cornerpublic RNode<T> moveTo(Duration d, javafx.geometry.Pos referencePoint, double _x, double _y)
Move.MoveablemoveTo in interface Move.Moveable<RNode<T extends javafx.scene.Node>>d - the durationreferencePoint - the reference point_x - the x relative to the position provided_y - the y relative to the position providedpublic RNode<T> moveTo(javafx.geometry.Pos referencePoint, double _x, double _y)
Move.MoveablemoveTo in interface Move.Moveable<RNode<T extends javafx.scene.Node>>referencePoint - the duration_x - the x relative to the position provided_y - the y relative to the position providedpublic RNode<T> dragTo(double x, double y)
Drag.DragabledragTo in interface Drag.Dragable<RNode<T extends javafx.scene.Node>>x - the x coordinate on screeny - the y coordinate on screenpublic RNode<T> dragTo(Duration d, double x, double y)
Drag.DragabledragTo in interface Drag.Dragable<RNode<T extends javafx.scene.Node>>d - durationx - the x coordinate on screeny - the y coordinate on screenpublic RNode<T> dragBy(double dx, double dy)
Drag.DragabledragBy in interface Drag.Dragable<RNode<T extends javafx.scene.Node>>dx - the x delta from the center of the ownerdy - the y delta from the center of the ownerpublic RNode<T> dragBy(Duration d, double dx, double dy)
Drag.DragabledragBy in interface Drag.Dragable<RNode<T extends javafx.scene.Node>>d - durationdx - the x delta from the center of the ownerdy - the y delta from the center of the ownerpublic RNode<T> typeText(String text)
Type.TypabletypeText in interface Type.Typable<RNode<T extends javafx.scene.Node>>text - the textpublic javafx.geometry.Point2D center()
public javafx.geometry.Point2D location(javafx.geometry.Pos position)
RNodePos in screen coordinatesCopyright © 2017. All rights reserved.