|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
agg.util.ExtObservable
agg.xt_basis.Graph
agg.xt_basis.SubGraph
public class SubGraph
Field Summary |
---|
Fields inherited from class agg.xt_basis.Graph |
---|
attributed, changed, comment, completeGraph, info, itsArcs, itsAttrContext, itsAttrManager, itsName, itsNodes, itsTypeObjectsMap, itsTypes, itsUsingMorphs, kind, observer |
Fields inherited from interface com.objectspace.jgl.UnaryFunction |
---|
serialVersionUID |
Constructor Summary | |
---|---|
SubGraph(Graph supergraph)
Deprecated. |
Method Summary | |
---|---|
void |
addObject(GraphObject obj)
Deprecated. Take over a graphobject of my supergraph. |
void |
dispose()
Deprecated. Prepares this graph for garbage collection, so cut all connections to other objects and dispose all graph object contained. |
java.util.Enumeration<Arc> |
getArcs()
Deprecated. Iterate through my Arcs. |
java.util.Enumeration<GraphObject> |
getElements()
Deprecated. Iterate through my nodes and arcs. |
java.util.Enumeration<Node> |
getNodes()
Deprecated. |
Graph |
getSuperGraph()
Deprecated. Return the graph I am a subgraph of. |
boolean |
isElement(GraphObject obj)
Deprecated. Return true iff I contain the specified graphobject. |
boolean |
removeObject(GraphObject obj)
Deprecated. Remove an object from the subgraph. |
Methods inherited from class agg.util.ExtObservable |
---|
setChanged |
Methods inherited from class java.util.Observable |
---|
clearChanged, countObservers, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubGraph(Graph supergraph)
Method Detail |
---|
public final void dispose()
Graph
dispose
in interface Disposable
dispose
in class Graph
Change_ObservableGone
public final Graph getSuperGraph()
public boolean isElement(GraphObject obj)
true
iff I contain the specified graphobject.
isElement
in class Graph
public java.util.Enumeration<Node> getNodes()
getNodes
in class Graph
public java.util.Enumeration<Arc> getArcs()
Graph
getArcs
in class Graph
*
public java.util.Enumeration<GraphObject> getElements()
Graph
getElements
in class Graph
GraphObject
public final void addObject(GraphObject obj)
obj
is an
arc, its source and target objects are added as well if necessary.
Pre: getSuperGraph().isElement(obj)
.
public final boolean removeObject(GraphObject obj)
obj
's incoming and outgoing arcs are
removed as well.
false
iff obj
was not an element of
this subgraph.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |