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.input |
Provides the set of classes for mouse and keyboard input event handling.
|
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. |
Modifier and Type | Field and Description |
---|---|
static Point2D |
Point2D.ZERO
Point or vector with both coordinates set to 0.
|
Modifier and Type | Method and Description |
---|---|
Point2D |
Point2D.add(double x,
double y)
Returns a point with the specified coordinates added to the coordinates
of this point.
|
Point2D |
Point2D.add(Point2D point)
Returns a point with the coordinates of the specified point added to the
coordinates of this point.
|
Point2D |
Point2D.midpoint(double x,
double y)
Returns a point which lies in the middle between this point and the
specified coordinates.
|
Point2D |
Point2D.midpoint(Point2D point)
Returns a point which lies in the middle between this point and the
specified point.
|
Point2D |
Point2D.multiply(double factor)
Returns a point with the coordinates of this point multiplied
by the specified factor
|
Point2D |
Point2D.normalize()
Normalizes the relative magnitude vector represented by this instance.
|
Point2D |
Point2D.subtract(double x,
double y)
Returns a point with the specified coordinates subtracted from
the coordinates of this point.
|
Point2D |
Point2D.subtract(Point2D point)
Returns a point with the coordinates of the specified point subtracted
from the coordinates of this point.
|
Modifier and Type | Method and Description |
---|---|
Point2D |
Point2D.add(Point2D point)
Returns a point with the coordinates of the specified point added to the
coordinates of this point.
|
double |
Point2D.angle(Point2D point)
Computes the angle (in degrees) between the vector represented
by this point and the vector represented by the specified point.
|
double |
Point2D.angle(Point2D p1,
Point2D p2)
Computes the angle (in degrees) between the three points with this point
as a vertex.
|
boolean |
BoundingBox.contains(Point2D p)
Tests if the specified point is inside the boundary of
Bounds . |
abstract boolean |
Bounds.contains(Point2D p)
Tests if the specified point is inside the boundary of
Bounds . |
boolean |
Rectangle2D.contains(Point2D p)
Tests if the specified point is inside the boundary of
Rectangle2D . |
Point3D |
Point2D.crossProduct(Point2D vector)
Computes cross product of the vector represented by this instance
and the specified vector.
|
double |
Point2D.distance(Point2D point)
Computes the distance between this point and the specified
point . |
double |
Point2D.dotProduct(Point2D vector)
Computes dot (scalar) product of the vector represented by this instance
and the specified vector.
|
Point2D |
Point2D.midpoint(Point2D point)
Returns a point which lies in the middle between this point and the
specified point.
|
Point2D |
Point2D.subtract(Point2D point)
Returns a point with the coordinates of the specified point subtracted
from the coordinates of this point.
|
Modifier and Type | Method and Description |
---|---|
Point2D |
Node.localToParent(double localX,
double localY)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its parent. |
Point2D |
Node.localToParent(Point2D localPoint)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its parent. |
Point2D |
Node.localToScene(double localX,
double localY)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its scene. |
Point2D |
Node.localToScene(double x,
double y,
boolean rootScene)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its scene. |
Point2D |
Node.localToScene(Point2D localPoint)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its scene. |
Point2D |
Node.localToScene(Point2D localPoint,
boolean rootScene)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its scene. |
Point2D |
Node.localToScreen(double localX,
double localY)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its Screen . |
Point2D |
Node.localToScreen(double localX,
double localY,
double localZ)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its Screen . |
Point2D |
Node.localToScreen(Point2D localPoint)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its Screen . |
Point2D |
Node.localToScreen(Point3D localPoint)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its Screen . |
Point2D |
Node.parentToLocal(double parentX,
double parentY)
Transforms a point from the coordinate space of the parent into the
local coordinate space of this
Node . |
Point2D |
Node.parentToLocal(Point2D parentPoint)
Transforms a point from the coordinate space of the parent into the
local coordinate space of this
Node . |
Point2D |
Node.sceneToLocal(double sceneX,
double sceneY)
Transforms a point from the coordinate space of the scene
into the local coordinate space of this
Node . |
Point2D |
Node.sceneToLocal(double x,
double y,
boolean rootScene)
Transforms a point from the coordinate space of the scene
into the local coordinate space of this
Node . |
Point2D |
Node.sceneToLocal(Point2D scenePoint)
Transforms a point from the coordinate space of the scene
into the local coordinate space of this
Node . |
Point2D |
Node.sceneToLocal(Point2D point,
boolean rootScene)
Transforms a point from the coordinate space of the scene
into the local coordinate space of this
Node . |
Point2D |
Node.screenToLocal(double screenX,
double screenY)
Transforms a point from the coordinate space of the
Screen
into the local coordinate space of this Node . |
Point2D |
Node.screenToLocal(Point2D screenPoint)
Transforms a point from the coordinate space of the
Screen
into the local coordinate space of this Node . |
Modifier and Type | Method and Description |
---|---|
boolean |
Node.contains(Point2D localPoint)
Returns
true if the given point (specified in the local
coordinate space of this Node ) is contained within the shape of
this Node . |
Point2D |
Node.localToParent(Point2D localPoint)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its parent. |
Point2D |
Node.localToScene(Point2D localPoint)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its scene. |
Point2D |
Node.localToScene(Point2D localPoint,
boolean rootScene)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its scene. |
Point2D |
Node.localToScreen(Point2D localPoint)
Transforms a point from the local coordinate space of this
Node
into the coordinate space of its Screen . |
Point2D |
Node.parentToLocal(Point2D parentPoint)
Transforms a point from the coordinate space of the parent into the
local coordinate space of this
Node . |
Point2D |
Node.sceneToLocal(Point2D scenePoint)
Transforms a point from the coordinate space of the scene
into the local coordinate space of this
Node . |
Point2D |
Node.sceneToLocal(Point2D point,
boolean rootScene)
Transforms a point from the coordinate space of the scene
into the local coordinate space of this
Node . |
Point2D |
Node.screenToLocal(Point2D screenPoint)
Transforms a point from the coordinate space of the
Screen
into the local coordinate space of this Node . |
Modifier and Type | Method and Description |
---|---|
Point2D |
PickResult.getIntersectedTexCoord()
Return the intersected texture coordinates of the picked 3d shape.
|
Point2D |
InputMethodRequests.getTextLocation(int offset)
Gets the location of a specified offset in the current composed text,
or of the selection in committed text.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
com.sun.javafx.scene.text.HitInfo |
Text.impl_hitTestChar(Point2D point)
Deprecated.
This is an internal API that is not intended
for use and will be removed in the next version
|
Modifier and Type | Method and Description |
---|---|
Point2D |
Affine.deltaTransform(double x,
double y) |
Point2D |
Rotate.deltaTransform(double x,
double y) |
Point2D |
Scale.deltaTransform(double x,
double y) |
Point2D |
Shear.deltaTransform(double x,
double y) |
Point2D |
Transform.deltaTransform(double x,
double y)
Transforms the relative magnitude vector by this transform.
|
Point2D |
Translate.deltaTransform(double x,
double y) |
Point2D |
Transform.deltaTransform(Point2D point)
Transforms the relative magnitude vector represented by the specified
Point2D instance by this transform. |
Point2D |
Translate.deltaTransform(Point2D point) |
Point2D |
Affine.inverseDeltaTransform(double x,
double y) |
Point2D |
Rotate.inverseDeltaTransform(double x,
double y) |
Point2D |
Scale.inverseDeltaTransform(double x,
double y) |
Point2D |
Shear.inverseDeltaTransform(double x,
double y) |
Point2D |
Transform.inverseDeltaTransform(double x,
double y)
Transforms the relative magnitude vector by the inverse of this transform.
|
Point2D |
Translate.inverseDeltaTransform(double x,
double y) |
Point2D |
Transform.inverseDeltaTransform(Point2D point)
Transforms the relative magnitude vector represented by the specified
Point2D instance by the inverse of this transform. |
Point2D |
Translate.inverseDeltaTransform(Point2D point) |
Point2D |
Affine.inverseTransform(double x,
double y) |
Point2D |
Rotate.inverseTransform(double x,
double y) |
Point2D |
Scale.inverseTransform(double x,
double y) |
Point2D |
Shear.inverseTransform(double x,
double y) |
Point2D |
Transform.inverseTransform(double x,
double y)
Transforms the specified point by the inverse of this transform.
|
Point2D |
Translate.inverseTransform(double x,
double y) |
Point2D |
Transform.inverseTransform(Point2D point)
Transforms the specified point by the inverse of this transform.
|
Point2D |
Affine.transform(double x,
double y) |
Point2D |
Rotate.transform(double x,
double y) |
Point2D |
Scale.transform(double x,
double y) |
Point2D |
Shear.transform(double x,
double y) |
Point2D |
Transform.transform(double x,
double y)
Transforms the specified point by this transform.
|
Point2D |
Translate.transform(double x,
double y) |
Point2D |
Transform.transform(Point2D point)
Transforms the specified point by this transform.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Point2D |
Transform.deltaTransform(Point2D point)
Transforms the relative magnitude vector represented by the specified
Point2D instance by this transform. |
Point2D |
Translate.deltaTransform(Point2D point) |
Point2D |
Transform.inverseDeltaTransform(Point2D point)
Transforms the relative magnitude vector represented by the specified
Point2D instance by the inverse of this transform. |
Point2D |
Translate.inverseDeltaTransform(Point2D point) |
Point2D |
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.
|
Point2D |
Transform.transform(Point2D point)
Transforms the specified point by this transform.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.