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 AttributeListattributesjava.util.ArrayList<AttributeNode2D>nodesdoublesortValueAttributeNode2DthisNode -
Constructor Summary
Constructors Constructor Description NodeMap2D()NodeMap2D(AttributeNode2D node) -
Method Summary
Modifier and Type Method Description voidaddNode(AttributeNode2D newNode)java.lang.Objectclone()voidsetNodeSortAttribute(java.lang.String thisAttr)voidsetSortAttribute(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:
clonein classjava.lang.Object
-