Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

The Quadcurve class defines a quadratic Bézier parametric curve segment in (x,y) coordinate space. Drawing a curve that intersects both the specified coordinates (startX, startY) and (endX, enfY), using the specified point (controlX, controlY) as Bézier control point.

the code:

import javafx.scene.shape.*;

QuadCurve {
    startX: 0.0     startY: 50.0
    endX: 50.0      endY: 50.0
    controlX: 25.0  controlY: 0.0
}

produces:

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publiccontrolXNumber0.0

Defines the X coordinate of the control point of the quadratic curve segment.

publiccontrolYNumber0.0

Defines the Y coordinate of the control point of the quadratic curve segment.

publicendXNumber0.0

Defines the X coordinate of the end point of the quadratic curve segment.

publicendYNumber0.0

Defines the Y coordinate of the end point of the quadratic curve segment.

publicstartXNumber0.0

Defines the X coordinate of the start point of the quadratic curve segment.

publicstartYNumber0.0

Defines the Y coordinate of the start point of the quadratic curve segment.

Inherited Variables

javafx.scene.shape.Shape

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicfillPaint

Defines parameters to fill the interior of an Shape using the settings of the Paint context.

Defines parameters to fill the interior of an Shape using the settings of the Paint context. The default value is Color.BLACK for all shapes except Line, Polyline, and Path. The default value is null for those shapes.

Profile: common

 
publicsmoothBooleantrue

Defines whether antialiasing hints are used or not for this Shape.

Defines whether antialiasing hints are used or not for this Shape. If the value equals true the rendering hints are applied.

true

Profile: common

 
publicstrokePaint

Defines parameters of a stroke that is drawn around the outline of a Shape using the settings of the specified Paint.

Defines parameters of a stroke that is drawn around the outline of a Shape using the settings of the specified Paint. The default value is null for all shapes except Line, Polyline, and Path. The default value is Color.BLACK for those shapes.

Profile: common

 
publicstrokeDashArrayNumber[][1.0]

Defines the array representing the lengths of the dash segments.

Defines the array representing the lengths of the dash segments. Alternate entries in the array represent the user space lengths of the opaque and transparent segments of the dashes. As the pen moves along the outline of the Shape to be stroked, the user space distance that the pen travels is accumulated. The distance value is used to index into the dash array. The pen is opaque when its current cumulative distance maps to an even element of the dash array and transparent otherwise.

[1.0]

Profile: common

 
publicstrokeDashOffsetNumber0

Defines a distance specified in user coordinates that represents an offset into the dashing pattern.

Defines a distance specified in user coordinates that represents an offset into the dashing pattern. In other words, the dash phase defines the point in the dashing pattern that will correspond to the beginning of the stroke.

0

Profile: common

 
publicstrokeLineCapStrokeLineCapSQUARE

The end cap style of this Shape as one of the following values that define possible end cap styles: StrokeLineCap.BUTT, StrokeLineCap.ROUND, and StrokeLineCap.SQUARE.

publicstrokeLineJoinStrokeLineJoinMITER

Defines the decoration applied where path segments meet.

Defines the decoration applied where path segments meet. The value must have one of the following values: StrokeLineJoin.BEVEL, StrokeLineJoin.MITER, and StrokeLineJoin.ROUND.

MITER

Profile: common

 
publicstrokeMiterLimitNumber10

Defines the limit for the StrokeLineJoin.MITER line join style.

publicstrokeWidthNumber1.0

Defines a square pen line width.

Defines a square pen line width. A value of 0.0 specifies a hairline stroke.

1.0

Profile: common

 

javafx.scene.Node

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicblocksMouseBooleanfalse

If true, consumes mouse events in this Node and does not send them to other nodes further up the scene graph.

If true, consumes mouse events in this Node and does not send them to other nodes further up the scene graph. If a Node wants to block mouse events from going to nodes which are visually obscured by this Node, then set blocksMouse to true.

false

Profile: common conditional mouse

 
public-readboundsInLocalRectangle2D

The rectangular bounds of this Node in the Node's untransformed local coordinate space.

The rectangular bounds of this Node in the Node's untransformed local coordinate space. For nodes that extend javafx.scene.shape.Shape, the local bounds will also include space required for a non-zero stroke that may fall outside the shape's geometry that is defined by position and size attributes. The local bounds will also include any clipping set with clip as well as effects set with effect.

Note that this method does not take the node's visibility into account; the test is based on the geometry of this Node only.

This variable will always be a non-null value.

Note that boundsInLocal is automatically recomputed whenever the geometry of a node changes. For this reason, it is an error to bind any of these values in a node to an expression that depends upon this variable. For example, you should not bind the "x" or "y" variables of a shape to boundsInLocal for the purpose of positioning the node.

Profile: common

 
public-readboundsInParentRectangle2D

The rectangular bounds of this Node which include its transforms.

The rectangular bounds of this Node which include its transforms. boundsInParent is calculated by taking its local bounds (defined by boundsInLocal) and applying the transform created by setting the following additional variables:

  1. transforms[] sequence
  2. translateX, translateY
  3. scaleX, scaleY
  4. rotate

The resulting bounds will be conceptually in the coordinate space of the Node's parent, however the node need not have a parent to calculate these bounds.

Note that this method does not take the node's visibility into account; the test is based on the geometry of this Node only.

This variable will always be a non-null value.

Note that boundsInParent is automatically recomputed whenever the geometry of a node changes, or when any of the following change: the transforms sequence, the translateX, translateY, scaleX, scaleY, or rotate variable. For this reason, it is an error to bind any of these values in a node to an expression that depends upon this variable. For example, you should not bind the "x", "y", translateX, or translateY variables of a shape to boundsInParent for the purpose of positioning the node.

Profile: common

 
public-readboundsInSceneRectangle2D

The rectangular bounds of this Node in the coordinate space of the javafx.scene.Scene containing the Node.

The rectangular bounds of this Node in the coordinate space of the javafx.scene.Scene containing the Node. The bounds will include accummulated transforms of all ancestor nodes. If the Node is not currently contained in a scene, returns the bounds in the coordinate space of the topmost ancestor in the scene graph.

Note that this method does not take the node's visibility into account; the test is based on the geometry of this Node only.

This variable will always be a non-null value.

Note that boundsInScene is automatically recomputed whenever any transform in any ancestor group node changes, or when the geometry of a node changes, or when any of the following change: the transforms sequence, the translateX, translateY, scaleX, scaleY, or rotate variable. For this reason, it is an error to bind any of these values in a node to an expression that depends upon this variable. For example, you should not bind the "x", "y", translateX, or translateY variables of a shape to boundsInScene for the purpose of positioning the node.

Profile: common

 
publiccacheBooleanfalse

A performance hint to the system to indicate that this Node should be cached as a bitmap.

A performance hint to the system to indicate that this Node should be cached as a bitmap. Rendering a bitmap representation of a node will be faster than rendering primitives in many cases, especially in the case of primitives with effects applied (such as a blur). However, it also increases memory usage. This hint indicates whether that trade-off (increased memory usage for increased performance) is worthwhile. Also note that on some platforms such as GPU accelerated platforms there is little benefit to caching Nodes as bitmaps when blurs and other effects are used since they are very fast to render on the GPU.

false

Profile: common

 
publicclipNodenull

Specifies a Node to use to define the the clipping shape for this Node.

Specifies a Node to use to define the the clipping shape for this Node. This clipping Node is not a child of this Node in the scene graph sense. Rather, it is used to define the clip for this Node.

For example, you can use an javafx.scene.image.ImageView Node as a mask to represent the Clip. Or you could use one of the geometric shape Nodes such as javafx.scene.shape.Rectangle or javafx.scene.shape.Circle. Or you could use a javafx.scene.text.Text node to represent the Clip.

null

Profile: common conditional clip

 
publiccursorCursornull

Defines the mouse cursor for this Node and subnodes.

Defines the mouse cursor for this Node and subnodes. If null, then the cursor of the first parent node with a non-null cursor will be used. If no Node in the scene graph defines a cursor, then the cursor of the Scene will be used.

null

Profile: common conditional cursor

 
publicdisableBooleanfalse

Sets the individual disabled state of this Node.

Sets the individual disabled state of this Node. Setting disable to true will cause this Node and any subnodes to become disabled. This variable should be used only to set the disabled state of a Node. For querying the disabled state of a Node, the disabled variable should instead be used, since it is possible that a Node was disabled as a result of an ancestor being disabled even if the individual disable state on this Node is false.

false

Profile: common

 
public-readdisabledBooleanfalse

Indicates whether or not this Node is disabled.

Indicates whether or not this Node is disabled. A Node will become disabled if disable is set to true on either itself or one of its ancestors in the scene graph.

A disabled Node should not respond to input and ideally should render itself differently to indicate its disabled state to the user. Such disabled rendering is dependent on the implementation of the Node. The shape classes contained in javafx.scene.shape do not implement such rendering by default, therefore applications using shapes for handling input must implement appropriate disabled rendering themselves. The user-interface controls defined in javafx.scene.control will implement disabled-sensitive rendering, however.

false

Profile: common

 
publiceffectEffectnull

Specifies an effect to apply to this Node.

publicfocusableBooleantrue

Specifies whether this Node should accept input focus.

Specifies whether this Node should accept input focus. Even if this is true, it is possible that the Node will not receive focus. For example, a node may be focusable, but visible is false and thus it cannot receive focus. Focusable is simply a way for the application to indicate that a specific node may be allowed to be focused. Nodes that don't want input focus should set this variable to false.

true

Profile: common

 
public-read protectedfocusedBooleansubclasssubclassfalse

Indicates whether this Node is the current input focus owner.

Indicates whether this Node is the current input focus owner. Only one node at a time may be the current focus owner.

false

Profile: common

 
public-read protectedhoverBooleansubclasssubclassfalse

Whether or not this Node is being hovered over.

Whether or not this Node is being hovered over. Typically this is due to the mouse being over the node, though it could be due to a pen hovering on a graphics tablet or other form of input.

false

Profile: common

 
publicidStringempty string

The id of this Node.

The id of this Node. This simple string identifier is useful for finding a specific Node within the scene graph. While the id of a Node should be unique within the scene graph, this uniqueness is not enforced. This is much like the "id" attribute of an HTML element.

empty string

Profile: common

 
public-initlayoutBoundsRectangle2D

The rectangular bounds that should be used in calculations for both manual and automatic layout of this Node.

The rectangular bounds that should be used in calculations for both manual and automatic layout of this Node. By default, layoutBounds is calculated by taking the local bounds of Node (defined by boundsInLocal) and applying the transform created by setting the transforms[] sequence.

Note that the translateX and translateY variables are not included in the layoutBounds by default. This is important because layout code must first determine the current size and location of the Node (using layoutBounds) and then set translateX and translateY to adjust the translation of the Node so that it will have the desired layout position (if translateX and translateY were included in layoutBounds then they could not be used for such positioning since it would cause a circular definition -- every time translateX was changed it would cause layoutBounds to change, which would recompute translateX!)

Note that the default layoutBounds is automatically recomputed whenever the geometry of a node changes, or when the transforms sequence changes. For this reason, it is an error to bind any of these values in a node to an expression that depends upon this variable. For example, you should not bind the "x" or "y" variables of a shape to layoutBounds for the purpose of positioning the node.

Profile: common

 
publiconKeyPressedfunction(:KeyEvent):Void

Defines a function to be called when this Node has input focus and a key has been pressed.

publiconKeyReleasedfunction(:KeyEvent):Void

Defines a function to be called when this Node has input focus and a key has been released.

publiconKeyTypedfunction(:KeyEvent):Void

Defines a function to be called when this Node has input focus and a key has been typed.

Defines a function to be called when this Node has input focus and a key has been typed. *

Profile: common conditional keyboard

 
publiconMouseClickedfunction(:MouseEvent):Void

Defines a function to be called when a mouse button has been clicked (pressed and released) on this Node.

publiconMouseDraggedfunction(:MouseEvent):Void

Defines a function to be called when a mouse button is pressed on this Node and then dragged.

publiconMouseEnteredfunction(:MouseEvent):Void

Defines a function to be called when the mouse enters this Node.

publiconMouseExitedfunction(:MouseEvent):Void

Defines a function to be called when the mouse exits this Node.

publiconMouseMovedfunction(:MouseEvent):Void

Defines a function to be called when mouse cursor moves within this Node but no buttons have been pushed.

publiconMousePressedfunction(:MouseEvent):Void

Defines a function to be called when a mouse button has been pressed on this Node.

publiconMouseReleasedfunction(:MouseEvent):Void

Defines a function to be called when a mouse button has been released on this Node.

publiconMouseWheelMovedfunction(:MouseEvent):Void

Defines a function to be called when the mouse scroll wheel has moved.

publicopacityNumber1.0

Specifies how opaque (that is, solid) the Node appears.

Specifies how opaque (that is, solid) the Node appears. A Node with 0% opacity is fully translucent. That is, while it is still visible and rendered, you generally won't be able to see it. The exception to this rule is when the ZNode is combined with a blending mode and blend effect in which case a translucent Node may still have an impact in rendering. An opacity of 50% will render the node as being 50% transparent.

A visible node with any opacity setting still receives mouse events and can receive keyboard focus. For example, if you want to have a large invisible rectangle overlay all Nodes in the scene graph in order to intercept mouse events but not be visible to the user, you could create a large Rectangle that had an opacity of 0%.

Opacity is specified as a value between 0 and 1. Values less than 0 or greater than one are clipped to 0 and 1 respectively.

On some platforms ImageView might not support opacity variable.

1.0

Profile: common

 
public-read packageparentNodenull

The parent of this Node.

The parent of this Node. If this Node has not been added to a scene graph, then parent will be null. If null, then boundsInParent and boundsInScene will both return the same value (the transformed bounds of the node).

null

Profile: common

 
public-read protectedpressedBooleansubclasssubclassfalse

Whether or not the Node is pressed.

Whether or not the Node is pressed. Typically this is true when the primary mouse button is down, though subclasses may define other mouse button state or key state to cause the node to be "pressed".

false

Profile: common

 
publicrotateNumber0.0

Defines the angle of rotation about the Node's center, measured in degrees.

Defines the angle of rotation about the Node's center, measured in degrees. This is used to rotate the Node.

This rotation factor is not included in layoutBounds by default, which makes it ideal for rotating the entire node after all effects and transforms have been taken into account.

The pivot point about which the rotation occurs is the center of the rectangular bounds formed by taking boundsInLocal and applying all the transforms in the transforms[] sequence.

Note that the center of this Node is defined as the center of the transformed bounding box as described above. Because the bounding box is used to compute the pivot point, any change to the Node's bounds will cause the pivot point to change, which can move the object. For a leaf node, applying a clip or otherwise changing the visible geometry will cause the bounds to be reevaluated. For a group node, a similar change to any of its children, including a change in a child's position, orientation, or scale, will cause the bounds to change. If this movement of the pivot point is not desired, applications should instead use the Node's transforms[] sequence, and add a javafx.scene.transform.Rotate transform, which has a user-specifiable pivot point.

0.0

Profile: common

 
publicscaleXNumber1.0

Defines the factor by which coordinates are scaled about the center of the object along the X axis of this Node.

Defines the factor by which coordinates are scaled about the center of the object along the X axis of this Node. This is used to stretch or animate the node either manually or by using an animation.

This scale factor is not included in layoutBounds by default, which makes it ideal for scaling the entire node after all effects and transforms have been taken into account.

The pivot point about which the scale occurs is the center of the rectangular bounds formed by taking boundsInLocal and applying all the transforms in the transforms[] sequence.

1.0

Profile: common

 
publicscaleYNumber1.0

Defines the factor by which coordinates are scaled about the center of the object along the Y axis of this Node.

Defines the factor by which coordinates are scaled about the center of the object along the Y axis of this Node. This is used to stretch or animate the node either manually or by using an animation.

This scale factor is not included in layoutBounds by default, which makes it ideal for scaling the entire node after all effects and transforms have been taken into account.

The pivot point about which the scale occurs is the center of the rectangular bounds formed by taking boundsInLocal and applying all the transforms in the transforms[] sequence.

1.0

Profile: common

 
public-read packagesceneScenenull

The Scene that this Node is part of.

The Scene that this Node is part of. If the Node is not part of a scene, then this variable will be null.

null

Profile: common

 
publicstyleStringempty string

A string representation of the CSS style associated with this specific Node.

A string representation of the CSS style associated with this specific Node. This is exactly analogous to the "style" attribute on an HTML element, but uses the syntax defined in JavaFX CSS.

empty string

Profile: desktop

 
publicstyleClassStringempty string

A String identifier which can be used to logically group Nodes, specifically for an external style engine.

A String identifier which can be used to logically group Nodes, specifically for an external style engine. This variable is exactly analogous to the styleClass attribute on an HTML element.

empty string

Profile: common

 
publictransformsTransform[]empty

Defines the sequence of javafx.scene.transform.Transform objects to be applied to this Node.

Defines the sequence of javafx.scene.transform.Transform objects to be applied to this Node. This sequence of transforms is applied before translateX, translateY, scaleX, and scaleY, rotate transforms.

By default, layoutBounds is defined as the local bounds with all the transforms in this sequence applied.

empty

Profile: common

 
publictranslateXNumber0

Defines the X coordinate of the translation that is added to the transformed coordinates of this Node.

Defines the X coordinate of the translation that is added to the transformed coordinates of this Node. This variable should be used to position the Node by setting it to a value that adjusts its x position relative to layoutBounds.minX.

For example, if mynode should have a final location of finalX:

     mynode.translateX = finalX - mynode.layoutBounds.minX;
 
This variable can also be used to animate the position of the node.

This translation factor is not included in layoutBounds by default, which makes it ideal for moving the entire node around after all effects and transforms are taken into account.

0

Profile: common

 
publictranslateYNumber0

Defines the Y coordinate of the translation that is added to the transformed coordinates of this Node.

Defines the Y coordinate of the translation that is added to the transformed coordinates of this Node. This variable should be used to position the Node by setting it to a value that adjusts its y position relative to layoutBounds.minY.

For example, if mynode should have a final location of finalY:

     mynode.translateY = finalY - mynode.layoutBounds.minY;
 
This variable can also be used to animate the position of the node.

This translation factor is not included in layoutBounds by default, which makes it ideal for moving the entire node around after all effects and transforms are taken into account.

0

Profile: common

 
publicvisibleBooleantrue

Specifies whether this Node and any subnodes should be rendered as part of the scene graph.

Specifies whether this Node and any subnodes should be rendered as part of the scene graph. A node may be visible and yet not be shown in the rendered scene if, for instance, it is off the screen or obscured by another Node. Invisible nodes never receive mouse events or keyboard focus, and never maintain keyboard focus when they become invisible.

true

Profile: common

 

Function Summary

protected impl_createSGNode() : com.sun.scenario.scenegraph.SGNode
Returns
SGNode
 

Inherited Functions

javafx.scene.shape.Shape

public impl_getSGAbstractShape() : com.sun.scenario.scenegraph.SGAbstractShape
Returns
SGAbstractShape
 
public intersects(localX: Number, localY: Number, localWidth: Number, localHeight: Number) : Boolean
Parameters
localX
localY
localWidth
localHeight
Returns
Boolean
 
public intersects(localRect: Rectangle2D) : Boolean
Parameters
localRect
Returns
Boolean
 
public ofTheWay(endVal: java.lang.Object, t: Number) : java.lang.Object
Parameters
endVal
t
Returns
Object
 

javafx.scene.Node

public contains(localX: Number, localY: Number) : Boolean

Returns true if the given point (specified in the local coordinate space of this Node) is contained within the shape of this Node.

Returns true if the given point (specified in the local coordinate space of this Node) is contained within the shape of this Node. Note that this method does not take visibility into account; the test is based on the geometry of this Node only. The default behavior of this function is simply to check if the given coordinates are contained in the local bounds.

Parameters
localX
localY
Returns
Boolean

Profile: common

 
public contains(localPoint: Point2D) : Boolean

Returns true if the given point (specified in the local coordinate space of this Node) is contained within the shape of this Node.

Returns true if the given point (specified in the local coordinate space of this Node) is contained within the shape of this Node. Note that this method does not take visibility into account; the test is based on the geometry of this Node only. The default behavior of this function is simply to check if the given coordinates are contained in the local bounds.

Parameters
localPoint
Returns
Boolean

Profile: common

 
protected abstract impl_createSGNode() : com.sun.scenario.scenegraph.SGNode

Creates the Scenario SGNode which backs this Node.

Creates the Scenario SGNode which backs this Node. This function will be invoked before the Node class has finished initialization, and thus need to be written wuch that it doesn't reference state that has not yet been set.

Returns
SGNode
 
public impl_getFXNode() : com.sun.scenario.scenegraph.fx.FXNode

JSGPanelSceneImpl references this function, otherwise it would be protected.

JSGPanelSceneImpl references this function, otherwise it would be protected.

Returns
FXNode
 
public impl_getPivotX() : Number
Returns
Number
 
public impl_getPivotY() : Number
Returns
Number
 
protected impl_getSGNode() : com.sun.scenario.scenegraph.SGNode
Returns
SGNode
 
protected impl_requestLayout() : Void

Set the impl_needsLayout variable of every ancestor of this Node.

Set the impl_needsLayout variable of every ancestor of this Node. If this Node is a Group/CustomNode then set its impl_needsLayout variable as well. We short-circuit when we find a node who's impl_needsLayout bit is already set.

 
public impl_updateFXNodeTransform() : Void
 
public intersects(localX: Number, localY: Number, localWidth: Number, localHeight: Number) : Boolean

Returns true if the given rectangle (specified in the local coordinate space of this Node) intersects the shape of this Node.

Returns true if the given rectangle (specified in the local coordinate space of this Node) intersects the shape of this Node. Note that this method does not take visibility into account; the test is based on the geometry of this Node only. The default behavior of this function is simply to check if the given coordinates intersect with the local bounds.

Parameters
localX
localY
localWidth
localHeight
Returns
Boolean

Profile: common

 
public intersects(localRect: Rectangle2D) : Boolean

Returns true if the given rectangle (specified in the local coordinate space of this Node) intersects the shape of this Node.

Returns true if the given rectangle (specified in the local coordinate space of this Node) intersects the shape of this Node. Note that this method does not take visibility into account; the test is based on the geometry of this Node only. The default behavior of this function is simply to check if the given coordinates intersect with the local bounds.

Parameters
localRect
Returns
Boolean

Profile: common

 
public localToParent(localX: Number, localY: Number) : Point2D

Transforms a point from the local coordinate space of this Node into the coordinate space of its parent.

Transforms a point from the local coordinate space of this Node into the coordinate space of its parent.

Parameters
localX
localY
Returns
Point2D

Profile: common

 
public localToParent(localPoint: Point2D) : Point2D

Transforms a point from the local coordinate space of this Node into the coordinate space of its parent.

Transforms a point from the local coordinate space of this Node into the coordinate space of its parent.

Parameters
localPoint
Returns
Point2D

Profile: common

 
public localToScene(localX: Number, localY: Number) : Point2D

Transforms a point from the local coordinate space of this Node into the coordinate space of its javafx.scene.Scene.

Transforms a point from the local coordinate space of this Node into the coordinate space of its javafx.scene.Scene.

Parameters
localX
localY
Returns
Point2D

Profile: common

 
public localToScene(localPoint: Point2D) : Point2D

Transforms a point from the local coordinate space of this Node into the coordinate space of its javafx.scene.Scene.

Transforms a point from the local coordinate space of this Node into the coordinate space of its javafx.scene.Scene.

Parameters
localPoint
Returns
Point2D

Profile: common

 
public lookup(id: java.lang.String) : Node

Finds this Node, or the first subnode, with the given id.

Finds this Node, or the first subnode, with the given id. If multiple subnodes have the same id, this function returns one of them. Which node it returns in that case is unspecified.

Parameters
id
The id of the node to find
Returns
Node
The first node, starting from this Node , which has an id of id .

Profile: common

 
public parentToLocal(parentX: Number, parentY: Number) : Point2D

Transforms a point from the coordinate space of the parent into the local coordinate space of this Node.

Transforms a point from the coordinate space of the parent into the local coordinate space of this Node.

Parameters
parentX
parentY
Returns
Point2D

Profile: common

 
public parentToLocal(parentPoint: Point2D) : Point2D

Transforms a point from the coordinate space of the parent into the local coordinate space of this Node.

Transforms a point from the coordinate space of the parent into the local coordinate space of this Node.

Parameters
parentPoint
Returns
Point2D

Profile: common

 
public requestFocus() : Void

Requests that this Node get the input focus, and that this Node's top-level ancestor become the focused Window.

Requests that this Node get the input focus, and that this Node's top-level ancestor become the focused Window. If this node is not part of a scene graph rooted in a stage that is visible and can accept input focus, then calls to request focus will not cause this Node to become focused.

Profile: common

 
public sceneToLocal(sceneX: Number, sceneY: Number) : Point2D

Transforms a point from the coordinate space of the Scene into the local coordinate space of this Node.

Transforms a point from the coordinate space of the Scene into the local coordinate space of this Node.

Parameters
sceneX
sceneY
Returns
Point2D

Profile: common

 
public sceneToLocal(scenePoint: Point2D) : Point2D

Transforms a point from the coordinate space of the javafx.scene.Scene into the local coordinate space of this Node.

Transforms a point from the coordinate space of the javafx.scene.Scene into the local coordinate space of this Node.

Parameters
scenePoint
Returns
Point2D

Profile: common

 
public toBack() : Void

Moves this Node to the back of its sibling nodes in terms of z-order.

Moves this Node to the back of its sibling nodes in terms of z-order. This is accomplished by moving this Node to the first position in its parent's content sequence. This function has no effect if this Node is not part of a group.

Profile: common

 
public toFront() : Void

Moves this Node to the front of its sibling nodes in terms of z-order.

Moves this Node to the front of its sibling nodes in terms of z-order. This is accomplished by moving this Node to the last position in its parent's content sequence. This function has no effect if this Node is not part of a group.

Profile: common

 
public toString() : java.lang.String
Returns
String
 

javafx.animation.Interpolatable

public abstract ofTheWay(endVal: java.lang.Object, t: Number) : java.lang.Object

The function calcuates an interpolated value along the t between 0.0 and 1.0.

The function calcuates an interpolated value along the t between 0.0 and 1.0. When t = 1.0, endVal is returned.

Parameters
endVal
target value
t

fraction between 0.0 and 1.0

Returns
Object
interpolated value

Profile: common