utilities
Class ContainerGraphNode
java.lang.Object
|
+--utilities.GraphNode
|
+--utilities.ContainerGraphNode
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable, ConfiguredObject, java.io.Serializable
- public class ContainerGraphNode
- extends GraphNode
- implements java.io.Serializable, java.lang.Cloneable
This is a subclass of GraphNode, for the purpose of nodes that have
an actual real world physical shape.
Example: a room, that exists as a node in a graph, but needs to
also have a physical size and location, etc.
- See Also:
- Serialized Form
Methods inherited from class utilities.GraphNode |
addEdge, addEdge, compareTo, equals, excise, getAttribute, getAttributes, getInEdges, getLabel, getOutEdges, getUndirEdges, hasAttribute, hasInEdges, hasOutEdges, hasUndirEdges, matches, numInEdges, numOutEdges, numUndirEdges, removeEdge, removeEdge, saveCfg, setAttribute, setLabel, toString, updateCfg |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContainerGraphNode
public ContainerGraphNode(java.lang.String l)
- Default constructor.
- Parameters:
l
- the label of the node
ContainerGraphNode
public ContainerGraphNode()
- Blank constructor.
Blank label, blank soul
getContained
public java.util.Enumeration getContained()
getPanels
public java.util.Enumeration getPanels()
addContained
public void addContained(javax.swing.JPanel panel,
GraphNode n,
javax.swing.JPanel p)
addContained
public void addContained(javax.swing.JPanel panel,
GraphNode n)
removeContained
public void removeContained(javax.swing.JPanel panel,
GraphNode n)
matches
public boolean matches(GraphNode n)
clone
public java.lang.Object clone()
- Overrides:
clone
in class GraphNode
getDefaultPanel
public javax.swing.JPanel getDefaultPanel()
- Drawing *
- Overrides:
getDefaultPanel
in class GraphNode