Class DragRegion
java.lang.Object
net.yetihafen.javafx.customcaption.DragRegion
- All Implemented Interfaces:
ShowInitializable
- Direct Known Subclasses:
MenuBarDragRegion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExcludeBounds
(javafx.scene.Node node) adds a node to exclude its areaboolean
contains
(double x, double y) check if any given point is in the specified area (excluded areas are considered)boolean
contains
(javafx.geometry.Point2D p) check if any given point is in the specified area (excluded areas are considered)javafx.scene.Node
getBase()
void
showInit()
this function is designed to be called afterStage.show()
has been called to configure customizations should only be called once per stage
-
Constructor Details
-
DragRegion
public DragRegion(javafx.scene.Node base)
-
-
Method Details
-
contains
public boolean contains(javafx.geometry.Point2D p) check if any given point is in the specified area (excluded areas are considered)- Parameters:
p
- thePoint2D
(screen coordinates)- Returns:
- true if the point is inside the specified area
-
contains
public boolean contains(double x, double y) check if any given point is in the specified area (excluded areas are considered)- Parameters:
x
- the x coordinate (in screen coordinates)y
- the y coordinate (in screen coordinates)- Returns:
- true if the point is inside the specified area
-
addExcludeBounds
adds a node to exclude its area- Parameters:
node
- the node to exclude
-
getBase
public javafx.scene.Node getBase() -
showInit
public void showInit()Description copied from interface:ShowInitializable
this function is designed to be called afterStage.show()
has been called to configure customizations should only be called once per stage- Specified by:
showInit
in interfaceShowInitializable
-