Uses of Class
javafx.geometry.Point2D
Package
Description
Provides the set of 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides the core set of base
classes for the JavaFX Scene Graph API.
The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
Provides the set of classes for mouse and keyboard input event handling.
Provides API for simulating user interaction such as typing keys on the keyboard and using the mouse.
Provides the set of classes for fonts and renderable Text Node.
Provides the set of convenient classes to perform rotating, scaling,
shearing, and translation transformations for
Affine
objects.-
Uses of Point2D in javafx.geometry
Modifier and TypeClassDescriptionclass
A 2D geometric point that usually represents the x, y coordinates.Modifier and TypeFieldDescriptionstatic final Point2D
Point2D.ZERO
Point or vector with both coordinates set to 0.Modifier and TypeMethodDescriptionPoint2D.add
(double x, double y) Returns a point with the specified coordinates added to the coordinates of this point.Returns a point with the coordinates of the specified point added to the coordinates of this point.Point2D.interpolate
(Point2D endValue, double t) Returns an intermediate value between the value of thisInterpolatable
and the specifiedendValue
using the linear interpolation factort
, ranging from 0 (inclusive) to 1 (inclusive).Point2D.midpoint
(double x, double y) Returns a point which lies in the middle between this point and the specified coordinates.Returns a point which lies in the middle between this point and the specified point.Point2D.multiply
(double factor) Returns a point with the coordinates of this point multiplied by the specified factorPoint2D.normalize()
Normalizes the relative magnitude vector represented by this instance.Point2D.subtract
(double x, double y) Returns a point with the specified coordinates subtracted from the coordinates of this point.Returns a point with the coordinates of the specified point subtracted from the coordinates of this point.Modifier and TypeMethodDescriptionReturns a point with the coordinates of the specified point added to the coordinates of this point.double
Computes the angle (in degrees) between the vector represented by this point and the vector represented by the specified point.double
Computes the angle (in degrees) between the three points with this point as a vertex.boolean
Tests if the specified point is inside the boundary ofBounds
.abstract boolean
Tests if the specified point is inside the boundary ofBounds
.boolean
Tests if the specified point is inside the boundary ofRectangle2D
.Point2D.crossProduct
(Point2D vector) Computes cross product of the vector represented by this instance and the specified vector.double
Computes the distance between this point and the specifiedpoint
.double
Point2D.dotProduct
(Point2D vector) Computes dot (scalar) product of the vector represented by this instance and the specified vector.Point2D.interpolate
(Point2D endValue, double t) Returns an intermediate value between the value of thisInterpolatable
and the specifiedendValue
using the linear interpolation factort
, ranging from 0 (inclusive) to 1 (inclusive).Returns a point which lies in the middle between this point and the specified point.Returns a point with the coordinates of the specified point subtracted from the coordinates of this point. -
Uses of Point2D in javafx.scene
Modifier and TypeMethodDescriptionNode.localToParent
(double localX, double localY) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its parent.Node.localToParent
(Point2D localPoint) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its parent.Node.localToScene
(double localX, double localY) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its scene.Node.localToScene
(double x, double y, boolean rootScene) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its scene.Node.localToScene
(Point2D localPoint) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its scene.Node.localToScene
(Point2D localPoint, boolean rootScene) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its scene.Node.localToScreen
(double localX, double localY) Transforms a point from the local coordinate space of thisNode
into the coordinate space of itsScreen
.Node.localToScreen
(double localX, double localY, double localZ) Transforms a point from the local coordinate space of thisNode
into the coordinate space of itsScreen
.Node.localToScreen
(Point2D localPoint) Transforms a point from the local coordinate space of thisNode
into the coordinate space of itsScreen
.Node.localToScreen
(Point3D localPoint) Transforms a point from the local coordinate space of thisNode
into the coordinate space of itsScreen
.Node.parentToLocal
(double parentX, double parentY) Transforms a point from the coordinate space of the parent into the local coordinate space of thisNode
.Node.parentToLocal
(Point2D parentPoint) Transforms a point from the coordinate space of the parent into the local coordinate space of thisNode
.Node.sceneToLocal
(double sceneX, double sceneY) Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode
.Node.sceneToLocal
(double x, double y, boolean rootScene) Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode
.Node.sceneToLocal
(Point2D scenePoint) Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode
.Node.sceneToLocal
(Point2D point, boolean rootScene) Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode
.Node.screenToLocal
(double screenX, double screenY) Transforms a point from the coordinate space of theScreen
into the local coordinate space of thisNode
.Node.screenToLocal
(Point2D screenPoint) Transforms a point from the coordinate space of theScreen
into the local coordinate space of thisNode
.Modifier and TypeMethodDescriptionboolean
Returnstrue
if the given point (specified in the local coordinate space of thisNode
) is contained within the shape of thisNode
.Node.localToParent
(Point2D localPoint) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its parent.Node.localToScene
(Point2D localPoint) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its scene.Node.localToScene
(Point2D localPoint, boolean rootScene) Transforms a point from the local coordinate space of thisNode
into the coordinate space of its scene.Node.localToScreen
(Point2D localPoint) Transforms a point from the local coordinate space of thisNode
into the coordinate space of itsScreen
.Node.parentToLocal
(Point2D parentPoint) Transforms a point from the coordinate space of the parent into the local coordinate space of thisNode
.Node.sceneToLocal
(Point2D scenePoint) Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode
.Node.sceneToLocal
(Point2D point, boolean rootScene) Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode
.Node.screenToLocal
(Point2D screenPoint) Transforms a point from the coordinate space of theScreen
into the local coordinate space of thisNode
. -
Uses of Point2D in javafx.scene.control.skin
Modifier and TypeMethodDescriptionTextInputControlSkin.getMenuPosition()
Returns the position to be used for a context menu, based on the location of the caret handle or selection handles. -
Uses of Point2D in javafx.scene.input
Modifier and TypeMethodDescriptionfinal Point2D
PickResult.getIntersectedTexCoord()
Return the intersected texture coordinates of the picked 3d shape.InputMethodRequests.getTextLocation
(int offset) Gets the location of a specified offset in the current composed text, or of the selection in committed text.ModifierConstructorDescriptionPickResult
(Node node, Point3D point, double distance, int face, Point2D texCoord) Creates a new instance of PickResult.PickResult
(Node node, Point3D point, double distance, int face, Point3D normal, Point2D texCoord) Creates a new instance of PickResult. -
Uses of Point2D in javafx.scene.robot
Modifier and TypeMethodDescriptionRobot.getMousePosition()
Returns the current mouse (x,y) screen coordinates as aPoint2D
.Modifier and TypeMethodDescriptionRobot.getPixelColor
(Point2D location) Returns theColor
of the pixel at the screen coordinates relative to the primary screen specified bylocation
.final void
Moves the mouse to the (x,y) screen coordinates, relative to the primary screen, specified by the givenlocation
. -
Uses of Point2D in javafx.scene.text
-
Uses of Point2D in javafx.scene.transform
Modifier and TypeMethodDescriptionTransform.deltaTransform
(double x, double y) Transforms the relative magnitude vector by this transform.Transform.deltaTransform
(Point2D point) Transforms the relative magnitude vector represented by the specifiedPoint2D
instance by this transform.Rotate.inverseDeltaTransform
(double x, double y) Transform.inverseDeltaTransform
(double x, double y) Transforms the relative magnitude vector by the inverse of this transform.Transform.inverseDeltaTransform
(Point2D point) Transforms the relative magnitude vector represented by the specifiedPoint2D
instance by the inverse of this transform.Translate.inverseDeltaTransform
(double x, double y) Translate.inverseDeltaTransform
(Point2D point) Rotate.inverseTransform
(double x, double y) Transform.inverseTransform
(double x, double y) Transforms the specified point by the inverse of this transform.Transform.inverseTransform
(Point2D point) Transforms the specified point by the inverse of this transform.Translate.inverseTransform
(double x, double y) Transform.transform
(double x, double y) Transforms the specified point by this transform.Transforms the specified point by this transform.Modifier and TypeMethodDescriptionvoid
Affine.appendRotation
(double angle, Point2D pivot) Appends the 2D rotation with pivot to this instance.void
Affine.appendScale
(double sx, double sy, Point2D pivot) Appends the 2D scale with pivot to this instance.void
Affine.appendShear
(double shx, double shy, Point2D pivot) Appends the shear with pivot to this instance.Transform.deltaTransform
(Point2D point) Transforms the relative magnitude vector represented by the specifiedPoint2D
instance by this transform.Transform.inverseDeltaTransform
(Point2D point) Transforms the relative magnitude vector represented by the specifiedPoint2D
instance by the inverse of this transform.Translate.inverseDeltaTransform
(Point2D point) Transform.inverseTransform
(Point2D point) Transforms the specified point by the inverse of this transform.void
Affine.prependRotation
(double angle, Point2D pivot) Prepends the 2D rotation with pivot to this instance.void
Affine.prependScale
(double sx, double sy, Point2D pivot) Prepends the 2D scale with pivot to this instance.void
Affine.prependShear
(double shx, double shy, Point2D pivot) Prepends the shear with pivot to this instance.Transforms the specified point by this transform.