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

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

Profile: desktop, common

Overview

Utility class, which provides basic functionality for object duplication (cloning). This class recognizes objects that are supported by the FXD format.

Profile: common

Inherited Variables

Script Function Summary

public duplicate(obj: java.lang.Object) : java.lang.Object

Duplicates the given object.

Duplicates the given object. Although the object is the argument and return value of this function, it currently recognizes only classes which are supported by the FXD format, such as classes extending javafx.scene.Node or javafx.scene.effect.Effect.

Parameters
obj
object to duplicate
Returns
Object
Object duplicated object.
 
public duplicate(node: Node) : Node

Duplicates the given Node.

Duplicates the given Node. Provides a deep copy of the node (as required by the scene graph). This function recognizes all classes supported by the FXD format.

Parameters
node
node
Returns
Node
Node
 

Inherited Functions