D - the node data type.public abstract class StructureData<D extends NodeData<?>> extends Object
| Constructor and Description |
|---|
StructureData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(Object node,
D data)
Adds a node to the node-to-node-data map.
|
List<BasicFieldData> |
getFieldsData()
Gets the fields data.
|
List<D> |
getFieldTargets()
Gets the field edge targets.
|
abstract Iterator<D> |
getNodeIterator()
Gets an iterator over all of the nodes.
|
D |
nodeToNodeData(Object node)
Gets the node data corresponding to a node.
|
Object |
rowDimension()
Gives an indication of row "sizes" in the row direction.
|
void |
setFieldsData(List<BasicFieldData> fieldsDataIn,
List<D> targetsIn)
Sets the fields data.
|
boolean |
sizeLimitExceeded()
Determines if the node size limit has been exceeded (so that the viewer
is not displaying all nodes).
|
public void addNode(Object node, D data)
node - the node.data - the node data.public List<BasicFieldData> getFieldsData()
public List<D> getFieldTargets()
fieldsData, the node in
the diagram with the same value as the field, or null if there is no such
node. The returned list must not be modified.public abstract Iterator<D> getNodeIterator()
public D nodeToNodeData(Object node)
node - the native node value.node, or null if none
exists.public Object rowDimension()
public void setFieldsData(List<BasicFieldData> fieldsDataIn, List<D> targetsIn)
fieldsDataIn - the new fields data. This list must not be modified
by the caller.targetsIn - for each element of fieldsDataIn, the node
that the field value points to, or null if there is no such node. This
list must not be modified by the caller.public boolean sizeLimitExceeded()