Uses of Class
javafx.geometry.Point2D
| Package | Description |
|---|---|
| javafx.geometry |
Provides the set of 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
|
| javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
| javafx.scene.control.skin |
The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
|
| javafx.scene.input |
Provides the set of classes for mouse and keyboard input event handling.
|
| javafx.scene.robot |
Provides API for simulating user interaction such as typing keys on the keyboard and using the mouse.
|
| javafx.scene.text |
Provides the set of classes for fonts and renderable Text Node.
|
| javafx.scene.transform |
Provides the set of convenient classes to perform rotating, scaling,
shearing, and translation transformations for
Affine objects. |
-
Uses of Point2D in javafx.geometry
Fields in javafx.geometry declared as Point2D Modifier and Type Field Description static Point2DPoint2D. ZEROPoint or vector with both coordinates set to 0.Methods in javafx.geometry that return Point2D Modifier and Type Method Description Point2DPoint2D. add(double x, double y)Returns a point with the specified coordinates added to the coordinates of this point.Point2DPoint2D. add(Point2D point)Returns a point with the coordinates of the specified point added to the coordinates of this point.Point2DPoint2D. interpolate(Point2D endValue, double t)The function calculates an interpolated value along the fractiontbetween0.0and1.0.Point2DPoint2D. midpoint(double x, double y)Returns a point which lies in the middle between this point and the specified coordinates.Point2DPoint2D. midpoint(Point2D point)Returns a point which lies in the middle between this point and the specified point.Point2DPoint2D. multiply(double factor)Returns a point with the coordinates of this point multiplied by the specified factorPoint2DPoint2D. normalize()Normalizes the relative magnitude vector represented by this instance.Point2DPoint2D. subtract(double x, double y)Returns a point with the specified coordinates subtracted from the coordinates of this point.Point2DPoint2D. subtract(Point2D point)Returns a point with the coordinates of the specified point subtracted from the coordinates of this point.Methods in javafx.geometry with parameters of type Point2D Modifier and Type Method Description Point2DPoint2D. add(Point2D point)Returns a point with the coordinates of the specified point added to the coordinates of this point.doublePoint2D. angle(Point2D point)Computes the angle (in degrees) between the vector represented by this point and the vector represented by the specified point.doublePoint2D. angle(Point2D p1, Point2D p2)Computes the angle (in degrees) between the three points with this point as a vertex.booleanBoundingBox. contains(Point2D p)Tests if the specified point is inside the boundary ofBounds.abstract booleanBounds. contains(Point2D p)Tests if the specified point is inside the boundary ofBounds.booleanRectangle2D. contains(Point2D p)Tests if the specified point is inside the boundary ofRectangle2D.Point3DPoint2D. crossProduct(Point2D vector)Computes cross product of the vector represented by this instance and the specified vector.doublePoint2D. distance(Point2D point)Computes the distance between this point and the specifiedpoint.doublePoint2D. dotProduct(Point2D vector)Computes dot (scalar) product of the vector represented by this instance and the specified vector.Point2DPoint2D. interpolate(Point2D endValue, double t)The function calculates an interpolated value along the fractiontbetween0.0and1.0.Point2DPoint2D. midpoint(Point2D point)Returns a point which lies in the middle between this point and the specified point.Point2DPoint2D. subtract(Point2D point)Returns a point with the coordinates of the specified point subtracted from the coordinates of this point. -
Uses of Point2D in javafx.scene
Methods in javafx.scene that return Point2D Modifier and Type Method Description Point2DNode. localToParent(double localX, double localY)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its parent.Point2DNode. localToParent(Point2D localPoint)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its parent.Point2DNode. localToScene(double localX, double localY)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its scene.Point2DNode. localToScene(double x, double y, boolean rootScene)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its scene.Point2DNode. localToScene(Point2D localPoint)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its scene.Point2DNode. localToScene(Point2D localPoint, boolean rootScene)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its scene.Point2DNode. localToScreen(double localX, double localY)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of itsScreen.Point2DNode. localToScreen(double localX, double localY, double localZ)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of itsScreen.Point2DNode. localToScreen(Point2D localPoint)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of itsScreen.Point2DNode. localToScreen(Point3D localPoint)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of itsScreen.Point2DNode. parentToLocal(double parentX, double parentY)Transforms a point from the coordinate space of the parent into the local coordinate space of thisNode.Point2DNode. parentToLocal(Point2D parentPoint)Transforms a point from the coordinate space of the parent into the local coordinate space of thisNode.Point2DNode. sceneToLocal(double sceneX, double sceneY)Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode.Point2DNode. sceneToLocal(double x, double y, boolean rootScene)Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode.Point2DNode. sceneToLocal(Point2D scenePoint)Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode.Point2DNode. sceneToLocal(Point2D point, boolean rootScene)Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode.Point2DNode. screenToLocal(double screenX, double screenY)Transforms a point from the coordinate space of theScreeninto the local coordinate space of thisNode.Point2DNode. screenToLocal(Point2D screenPoint)Transforms a point from the coordinate space of theScreeninto the local coordinate space of thisNode.Methods in javafx.scene with parameters of type Point2D Modifier and Type Method Description booleanNode. contains(Point2D localPoint)Returnstrueif the given point (specified in the local coordinate space of thisNode) is contained within the shape of thisNode.Point2DNode. localToParent(Point2D localPoint)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its parent.Point2DNode. localToScene(Point2D localPoint)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its scene.Point2DNode. localToScene(Point2D localPoint, boolean rootScene)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of its scene.Point2DNode. localToScreen(Point2D localPoint)Transforms a point from the local coordinate space of thisNodeinto the coordinate space of itsScreen.Point2DNode. parentToLocal(Point2D parentPoint)Transforms a point from the coordinate space of the parent into the local coordinate space of thisNode.Point2DNode. sceneToLocal(Point2D scenePoint)Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode.Point2DNode. sceneToLocal(Point2D point, boolean rootScene)Transforms a point from the coordinate space of the scene into the local coordinate space of thisNode.Point2DNode. screenToLocal(Point2D screenPoint)Transforms a point from the coordinate space of theScreeninto the local coordinate space of thisNode. -
Uses of Point2D in javafx.scene.control.skin
Methods in javafx.scene.control.skin that return Point2D Modifier and Type Method Description Point2DTextAreaSkin. getMenuPosition()Returns the position to be used for a context menu, based on the location of the caret handle or selection handles.Point2DTextFieldSkin. getMenuPosition()Returns the position to be used for a context menu, based on the location of the caret handle or selection handles.Point2DTextInputControlSkin. 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
Methods in javafx.scene.input that return Point2D Modifier and Type Method Description Point2DPickResult. getIntersectedTexCoord()Return the intersected texture coordinates of the picked 3d shape.Point2DInputMethodRequests. getTextLocation(int offset)Gets the location of a specified offset in the current composed text, or of the selection in committed text.Constructors in javafx.scene.input with parameters of type Point2D Constructor Description PickResult(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
Methods in javafx.scene.robot that return Point2D Modifier and Type Method Description Point2DRobot. getMousePosition()Returns the current mouse (x,y) screen coordinates as aPoint2D.Methods in javafx.scene.robot with parameters of type Point2D Modifier and Type Method Description ColorRobot. getPixelColor(Point2D location)Returns theColorof the pixel at the screen coordinates relative to the primary screen specified bylocation.voidRobot. mouseMove(Point2D location)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
Methods in javafx.scene.transform that return Point2D Modifier and Type Method Description Point2DAffine. deltaTransform(double x, double y)Point2DRotate. deltaTransform(double x, double y)Point2DScale. deltaTransform(double x, double y)Point2DShear. deltaTransform(double x, double y)Point2DTransform. deltaTransform(double x, double y)Transforms the relative magnitude vector by this transform.Point2DTransform. deltaTransform(Point2D point)Transforms the relative magnitude vector represented by the specifiedPoint2Dinstance by this transform.Point2DTranslate. deltaTransform(double x, double y)Point2DTranslate. deltaTransform(Point2D point)Point2DAffine. inverseDeltaTransform(double x, double y)Point2DRotate. inverseDeltaTransform(double x, double y)Point2DScale. inverseDeltaTransform(double x, double y)Point2DShear. inverseDeltaTransform(double x, double y)Point2DTransform. inverseDeltaTransform(double x, double y)Transforms the relative magnitude vector by the inverse of this transform.Point2DTransform. inverseDeltaTransform(Point2D point)Transforms the relative magnitude vector represented by the specifiedPoint2Dinstance by the inverse of this transform.Point2DTranslate. inverseDeltaTransform(double x, double y)Point2DTranslate. inverseDeltaTransform(Point2D point)Point2DAffine. inverseTransform(double x, double y)Point2DRotate. inverseTransform(double x, double y)Point2DScale. inverseTransform(double x, double y)Point2DShear. inverseTransform(double x, double y)Point2DTransform. inverseTransform(double x, double y)Transforms the specified point by the inverse of this transform.Point2DTransform. inverseTransform(Point2D point)Transforms the specified point by the inverse of this transform.Point2DTranslate. inverseTransform(double x, double y)Point2DAffine. transform(double x, double y)Point2DRotate. transform(double x, double y)Point2DScale. transform(double x, double y)Point2DShear. transform(double x, double y)Point2DTransform. transform(double x, double y)Transforms the specified point by this transform.Point2DTransform. transform(Point2D point)Transforms the specified point by this transform.Point2DTranslate. transform(double x, double y)Methods in javafx.scene.transform with parameters of type Point2D Modifier and Type Method Description voidAffine. appendRotation(double angle, Point2D pivot)Appends the 2D rotation with pivot to this instance.voidAffine. appendScale(double sx, double sy, Point2D pivot)Appends the 2D scale with pivot to this instance.voidAffine. appendShear(double shx, double shy, Point2D pivot)Appends the shear with pivot to this instance.Point2DTransform. deltaTransform(Point2D point)Transforms the relative magnitude vector represented by the specifiedPoint2Dinstance by this transform.Point2DTranslate. deltaTransform(Point2D point)Point2DTransform. inverseDeltaTransform(Point2D point)Transforms the relative magnitude vector represented by the specifiedPoint2Dinstance by the inverse of this transform.Point2DTranslate. inverseDeltaTransform(Point2D point)Point2DTransform. inverseTransform(Point2D point)Transforms the specified point by the inverse of this transform.voidAffine. prependRotation(double angle, Point2D pivot)Prepends the 2D rotation with pivot to this instance.voidAffine. prependScale(double sx, double sy, Point2D pivot)Prepends the 2D scale with pivot to this instance.voidAffine. prependShear(double shx, double shy, Point2D pivot)Prepends the shear with pivot to this instance.Point2DTransform. transform(Point2D point)Transforms the specified point by this transform.