public static interface TetMesh.NodeListener
extends java.util.EventListener
Classes that maintain references to nodes in a tet 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(TetMesh mesh,
TetMesh.Node node)
Called after the specified node has been added to the mesh.
|
void |
nodeRemoved(TetMesh mesh,
TetMesh.Node node)
Called after the specified node has been removed from the mesh.
|
void |
nodeWillBeAdded(TetMesh mesh,
TetMesh.Node node)
Called when the specified node will be added to the mesh.
|
void |
nodeWillBeRemoved(TetMesh mesh,
TetMesh.Node node)
Called when the specified node will be removed from the mesh.
|
void nodeWillBeAdded(TetMesh mesh, TetMesh.Node node)
mesh
- this mesh.node
- the node that will be added.void nodeAdded(TetMesh mesh, TetMesh.Node node)
mesh
- this mesh.node
- the node added.void nodeWillBeRemoved(TetMesh mesh, TetMesh.Node node)
mesh
- this mesh.node
- the node that will be removed.void nodeRemoved(TetMesh mesh, TetMesh.Node node)
mesh
- this mesh.node
- the node removed.