All Packages  This Package  Class Hierarchy  Class Search  Index

Class graphomat.graph.SubGraph
java.lang.Object
   |
   +----java.util.Observable
           |
           +----graphomat.util.ObservSerializable
                   |
                   +----graphomat.graph.SubGraph

  Summary

public class  SubGraph
     extends graphomat.util.ObservSerializable
     implements java.util.Observer
{
          // Fields 2
     public static final Object ADDED;
     public static final Object DELETED;

          // Constructors 1
     public SubGraph(Graph);

          // Methods 15
     public void addNode(Node);
     public void deleteNode(Node);
     public Enumeration getEdgeEnum();
     public double getMaxX();
     public double getMaxY();
     public double getMinX();
     public double getMinY();
     public int getNodeCount();
     public Enumeration getNodeEnum();
     public boolean inGraph(Edge);
     public boolean inGraph(Node);
     public void notifyObservers(Object);
     public String toString();
     public void traversNodes(NodeTraverser);
     public void update(Observable, Object);
}


  Cross Reference

Returned By:
Graph.getSelection()





  Fields

· ADDED

Summary  |  Top
   public static final Object ADDED


· DELETED

Summary  |  Top
   public static final Object DELETED


  Constructors

· SubGraph

Summary  |  Top

   public SubGraph(Graph g) 

Creates a new empty sub-Graph.

Parameter Description
g Graph of which you want to make a sub-Graph.



  Methods

· addNode

Summary  |  Top
   public void addNode(Node n) 

Adds a new node into the sub-Graph.



· deleteNode

Summary  |  Top
   public void deleteNode(Node n) 

Deletes a node of the sub-Graph.



· inGraph

Summary  |  Top
   public boolean inGraph(Node n) 

Checks if the sub-Graphs owns the requested node.



· inGraph

Summary  |  Top
   public boolean inGraph(Edge e) 

Checks if the sub-Graphs owns both nodes of the requested edge.



· getNodeCount

Summary  |  Top
   public int getNodeCount() 

Counts the sub-Graphs nodes.



· getNodeEnum

Summary  |  Top
   public Enumeration getNodeEnum() 

Returns the Enumeration of the sub-Graph, containing all nodes.



· getEdgeEnum

Summary  |  Top
   public Enumeration getEdgeEnum() 


· traversNodes

Summary  |  Top
   public void traversNodes(NodeTraverser t) 

Traverses all nodes and processes it with the given NodeTraverser.

See Also: traversNodes



· update

Summary  |  Top
   public void update(Observable n, 
                      Object arg) 

Is called when a recalculation might be needed.

Implements:
update in interface Observer


· notifyObservers

Summary  |  Top
   public void notifyObservers(Object arg) 
Overrides:
notifyObservers in class Observable


· getMaxX

Summary  |  Top
   public double getMaxX() 

Returns the biggest x-value of the Graph.



· getMaxY

Summary  |  Top
   public double getMaxY() 

Returns the biggest y-value of the Graph.



· getMinX

Summary  |  Top
   public double getMinX() 

Returns the smallest x-value of the Graph.



· getMinY

Summary  |  Top
   public double getMinY() 

Returns the smallest y-value of the Graph.



· toString

Summary  |  Top
   public String toString() 

Returns a String containg all information about the sub-Graph.

Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7