gishur.graph.gui
Class Visualization

java.lang.Object
  |
  +--gishur.graph.gui.Visualization
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EdgeVisualization, NodeVisualization

public class Visualization
extends java.lang.Object
implements java.io.Serializable

Class for Visualization-objects which store visualization information for a special DisplayObject, e.g. a DisplayNode or a DisplayEdge.

Version:
2.0
Author:
Thomas Wolf & Christoph Sachse
See Also:
Serialized Form

Constructor Summary
protected Visualization()
          Constructor.
 
Method Summary
 boolean empty()
           
 DisplayGraphElement getRegistered(java.lang.String displayid)
           
 void register(DisplayGraphElement drw)
          Registers a DisplayGraphElement for that visualization.
 java.lang.String toString()
          Returns a string representation of the object.
protected  java.lang.String toStringMembers()
          Returns the registered DisplayGraphElements as Strings.
 void unregister(DisplayGraphElement drw)
          Removes a registered DisplayGraphElement and unregisters it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Visualization

protected Visualization()
Constructor.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

toStringMembers

protected java.lang.String toStringMembers()
Returns the registered DisplayGraphElements as Strings.
Returns:
the registered DisplayGraphElements as Strings.

register

public void register(DisplayGraphElement drw)
Registers a DisplayGraphElement for that visualization.
Parameters:
drw - the DisplayGraphElement to register

unregister

public void unregister(DisplayGraphElement drw)
Removes a registered DisplayGraphElement and unregisters it.
Parameters:
drw - the DisplayGraphElement to unregister

getRegistered

public DisplayGraphElement getRegistered(java.lang.String displayid)

empty

public boolean empty()