Package mgui.morph.sections
Class NodeMap2D
java.lang.Object
mgui.morph.sections.NodeMap2D
- All Implemented Interfaces:
java.lang.Cloneable
public class NodeMap2D
extends java.lang.Object
implements java.lang.Cloneable
Provides a mapping from a node to a set of other nodes. Can be used as an element
in a link list to provide a mapping of any number of nodes.
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description AttributeList
attributes
java.util.ArrayList<AttributeNode2D>
nodes
double
sortValue
AttributeNode2D
thisNode
-
Constructor Summary
Constructors Constructor Description NodeMap2D()
NodeMap2D(AttributeNode2D node)
-
Method Summary
Modifier and Type Method Description void
addNode(AttributeNode2D newNode)
java.lang.Object
clone()
void
setNodeSortAttribute(java.lang.String thisAttr)
void
setSortAttribute(java.lang.String attrStr)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
thisNode
-
nodes
-
attributes
-
sortValue
public double sortValue
-
-
Constructor Details
-
NodeMap2D
public NodeMap2D() -
NodeMap2D
-
-
Method Details
-
addNode
-
setSortAttribute
public void setSortAttribute(java.lang.String attrStr) -
setNodeSortAttribute
public void setNodeSortAttribute(java.lang.String thisAttr) -
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-