Modifier and Type | Field and Description |
---|---|
LinkedList<Edge> |
children
The list of all children.
|
int |
height
The height of this node.
|
Class<?> |
theClass
The resource is an instance of this class.
|
int |
width
The width of this node.
|
int |
x
The x-coordinate of the top left corner of this node, or -1 if the
coordinates are not yet calculated.
|
int |
y
The y-coordinate of the top left corner of this node.
|
Modifier and Type | Method and Description |
---|---|
static Node |
copyFrom(Resource r)
Create the node structure from a resource.
|
Point |
drawNode(Graphics2D g,
int xoff,
int yoff)
Draw this node.
|
public Class<?> theClass
public LinkedList<Edge> children
public int x
public int y
public int width
public int height
public static Node copyFrom(Resource r)
r
- The source Resource.public Point drawNode(Graphics2D g, int xoff, int yoff)
g
- The Graphics object to draw to.xoff
- The offset in x-direction.yoff
- The offset in y-direction.Copyright © 2018 universAAL Consortium. All rights reserved.