public class Node extends Object
Modifier and Type | Field and Description |
---|---|
Property<Bounds,Node> |
boundsInLocal
Deprecated.
The local bounds of the node (without any of the transforms applied to it).
|
Property<Double,Node> |
layoutX
Deprecated.
|
Property<Double,Node> |
layoutY
Deprecated.
|
Property<Double,Node> |
layoutZ
Deprecated.
|
Property<Double,Node> |
localCanvasZ
Deprecated.
|
Property<Double,Node> |
opacity
Deprecated.
|
Property<Rectangle,Node> |
paintingRect
Deprecated.
The painting rectangle, into which the renderer should be painted inside the
node's local bounds.
|
Property<Double,Node> |
rotate
Deprecated.
|
Property<Point3D,Node> |
rotationAxis
Deprecated.
The rotation axis around which rotations should be performed.
|
Property<Double,Node> |
scaleX
Deprecated.
|
Property<Double,Node> |
scaleY
Deprecated.
|
Property<Double,Node> |
scaleZ
Deprecated.
|
Property<Double,Node> |
translateX
Deprecated.
|
Property<Double,Node> |
translateY
Deprecated.
|
Property<Double,Node> |
translateZ
Deprecated.
|
Property<Boolean,Node> |
visible
Deprecated.
Flag to indicate whether the node should be visible or not.
|
Constructor and Description |
---|
Node()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Node child)
Deprecated.
Adds a child node.
|
void |
addTags(String... tags)
Deprecated.
Adds tags to this node.
|
boolean |
contains(int x,
int y)
Deprecated.
This can be used to hit test pointer events against this node.
|
Collection<Node> |
findNodesWithTag(String tag)
Deprecated.
|
Rectangle2D |
getBoundsInScene(Rectangle2D out)
Deprecated.
|
Node |
getChildAt(int index)
Deprecated.
Gets child node at index.
|
int |
getChildCount()
Deprecated.
Gets number of children in this node.
|
Iterable<Node> |
getChildNodes()
Deprecated.
Gets the child nodes of this node.
|
Transform |
getLocalToParentTransform()
Deprecated.
Gets the transform to use to transform the Node into its parent node's space.
|
Transform |
getLocalToSceneTransform()
Deprecated.
Gets the transform to use to go from the local coordinates to scene coordinates.
|
Transform |
getLocalToScreenTransform()
Deprecated.
|
NodePainter |
getRenderer()
Deprecated.
Gets the renderer component for this node.
|
Scene |
getScene()
Deprecated.
Gets the scene that this node is attached to.
|
Style |
getStyle()
Deprecated.
|
boolean |
hasChildren()
Deprecated.
Checks if node has children.
|
boolean |
hasTag(String tag)
Deprecated.
Check if this node has a tag.
|
boolean |
isNeedsLayout()
Deprecated.
Returns true if this node needs to have its children re-laid out before rendering
|
protected void |
layoutChildren()
Deprecated.
Can be overridden by subclasses to layout children.
|
void |
remove(Node child)
Deprecated.
Removes a child node.
|
void |
removeAll()
Deprecated.
Removes all child nodes.
|
void |
removeTags(String... tags)
Deprecated.
Removes tags from this node.
|
void |
render(Graphics g)
Deprecated.
Renders the node onto a graphics context.
|
void |
renderChildren(Graphics g)
Deprecated.
Renders the node's children.
|
void |
setNeedsLayout(boolean needsLayout)
Deprecated.
|
void |
setRenderAsImage(boolean t)
Deprecated.
Sets the render as image flag.
|
void |
setRenderer(NodePainter comp)
Deprecated.
Sets the component that should be used to render the node's contents.
|
void |
setStyle(Style style)
Deprecated.
|
public final Property<Point3D,Node> rotationAxis
public final Property<Bounds,Node> boundsInLocal
public final Property<Boolean,Node> visible
public void setRenderAsImage(boolean t)
t
- public void addTags(String... tags)
tags
- public Rectangle2D getBoundsInScene(Rectangle2D out)
public void removeTags(String... tags)
tags
- public boolean hasTag(String tag)
tag
- public Transform getLocalToParentTransform()
public Transform getLocalToSceneTransform()
public Scene getScene()
public boolean isNeedsLayout()
public void setNeedsLayout(boolean needsLayout)
needsLayout
- the needsLayout to setpublic Style getStyle()
public void setStyle(Style style)
style
- the style to setpublic void setRenderer(NodePainter comp)
comp
- public boolean contains(int x, int y)
x
- y
- public Collection<Node> findNodesWithTag(String tag)
public Transform getLocalToScreenTransform()
public void render(Graphics g)
g
- public void renderChildren(Graphics g)
g
- public NodePainter getRenderer()
public void add(Node child)
child
- public void remove(Node child)
child
- protected void layoutChildren()
public Iterable<Node> getChildNodes()
public int getChildCount()
public Node getChildAt(int index)
index
- public boolean hasChildren()
public void removeAll()