public static interface TriMesh.NodeListener
extends java.util.EventListener
Classes that maintain references to nodes in a tri mesh should implement this interface. Those references are almost certainly invalid (and may prevent garbage collection) after nodes are removed from the mesh.
Modifier and Type | Method and Description |
---|---|
void |
nodeAdded(TriMesh mesh,
TriMesh.Node node)
Called after the specified node has been added to the mesh.
|
void |
nodeRemoved(TriMesh mesh,
TriMesh.Node node)
Called after the specified node has been removed from the mesh.
|
void |
nodeWillBeAdded(TriMesh mesh,
TriMesh.Node node)
Called when the specified node will be added to the mesh.
|
void |
nodeWillBeRemoved(TriMesh mesh,
TriMesh.Node node)
Called when the specified node will be removed from the mesh.
|
void nodeWillBeAdded(TriMesh mesh, TriMesh.Node node)
mesh
- this mesh.node
- the node that will be added.void nodeAdded(TriMesh mesh, TriMesh.Node node)
mesh
- this mesh.node
- the node added.void nodeWillBeRemoved(TriMesh mesh, TriMesh.Node node)
mesh
- this mesh.node
- the node that will be removed.void nodeRemoved(TriMesh mesh, TriMesh.Node node)
mesh
- this mesh.node
- the node removed.