public class FXCameraAttachment extends CameraAttachment
Implementation of CameraAttachment for JavaFX.
Constructor and Description |
---|
FXCameraAttachment(javafx.scene.Camera cam)
Creates a JavaFX camera attachment.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(INode owner)
Adds this instance to the supplied node.
|
void |
detach(INode owner)
Removes this instance from the supplied node.
|
javafx.scene.Camera |
getFxCamera()
Returns the JavaFX camera for this attachment.
|
java.lang.Class<?> |
getType()
Returns the class type of the attachment.
|
getName, isSingleton, setName
getOwner
public FXCameraAttachment(javafx.scene.Camera cam)
Creates a JavaFX camera attachment.
cam
- public void attach(INode owner)
IAttachment
Adds this instance to the supplied node. The attachment's functionality will be applied to the new owner node.
If the attachment is a singleton, this will replace any existing attachment of the same type.
attach
in interface IAttachment
attach
in class Attachment
owner
- the node to attach toIAttachment.attach(INode)
public void detach(INode owner)
IAttachment
Removes this instance from the supplied node. Any functionality provided by this attachment will be removed from the owner node.
If the supplied node is not attached, this is a no-op.
detach
in interface IAttachment
detach
in class Attachment
owner
- the node to detach fromIAttachment.detach(INode)
public javafx.scene.Camera getFxCamera()
Returns the JavaFX camera for this attachment.
public java.lang.Class<?> getType()
IAttachment
Returns the class type of the attachment. Note that this may not be the same as the concrete type.
IAttachment.getType()