agg.xt_basis
Class Node
java.lang.Object
agg.xt_basis.GraphObject
agg.xt_basis.Node
- All Implemented Interfaces:
- AttrObserver, XMLObject, java.io.Serializable
public class Node
- extends GraphObject
- implements XMLObject
- See Also:
- Serialized Form
Fields inherited from class agg.xt_basis.GraphObject |
critical, criticalKind, itsAttr, itsContext, itsContextUsage, itsIncomingArcs, itsOutgoingArcs, itsSource, itsTarget, itsType, selected, visible |
Methods inherited from class agg.xt_basis.GraphObject |
addIn, addOut, attributeToString, copyAttributes, createAttributeInstance, getAttribute, getContext, getContextUsage, getIncomingArcs, getIncomingArcsVec, getNumberOfArcs, getNumberOfAttributes, getNumberOfIncomingArcs, getNumberOfIncomingArcs, getNumberOfIncomingArcs, getNumberOfInOutArcs, getNumberOfOutgoingArcs, getNumberOfOutgoingArcs, getNumberOfOutgoingArcs, getOutgoingArcs, getOutgoingArcsVec, getType, getVariableNamesOfAttribute, hasIncomingArcFrom, hasOutgoingArcTo, isCritical, isPersistentFor, isVisible, removeIn, removeOut, setContextUsage, setCritical, setType, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Node
public Node(AttrInstance attr,
Type type,
Graph context)
- Parameters:
context
- The graph/subgraph context in which to consider incoming and
outgoing arcs.
Node
protected Node(Type type,
Graph context)
Node
protected Node(Node orig,
Graph context)
checkAndAddInOutArc
public void checkAndAddInOutArc(Arc arc)
convertToKey
public java.lang.String convertToKey()
- Description copied from class:
GraphObject
- Converts my type to a type key string that can be used for search
operations. For a node it is similar to
((Node) this).getType().convertToKey()
, for an edge to
((Arc) this).getSource().getType().convertToKey()
+ ((Arc) this).getType().convertToKey() + ((Arc) this).getTarget().getType().convertToKey()
- Overrides:
convertToKey
in class GraphObject
compareTo
public boolean compareTo(GraphObject o)
- Specified by:
compareTo
in class GraphObject
XwriteObject
public void XwriteObject(XMLHelper h)
- Specified by:
XwriteObject
in interface XMLObject
- Specified by:
XwriteObject
in class GraphObject
XreadObject
public void XreadObject(XMLHelper h)
- Specified by:
XreadObject
in interface XMLObject
- Specified by:
XreadObject
in class GraphObject
dispose
public void dispose()
- Overrides:
dispose
in class GraphObject
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
isArc
public final boolean isArc()
- Specified by:
isArc
in class GraphObject
isNode
public final boolean isNode()
- Specified by:
isNode
in class GraphObject
isIsolated
public final boolean isIsolated()
- Returns:
- true if don't exist any outgoing or incoming edges, otherwise false
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
attributeChanged
public void attributeChanged(AttrEvent ev)
- Implements the AttrObserver. Propagates the change
agg.util.Change.OBJECT_MODIFIED
and object Pair (this, ev)
to its Graph if the attributes are changed.
- Specified by:
attributeChanged
in interface AttrObserver
- Overrides:
attributeChanged
in class GraphObject
propagateAttrValueFromParentNode
public void propagateAttrValueFromParentNode()