org.globus.cog.gui.grapheditor
Class AbstractRenderer

java.lang.Object
  extended by org.globus.cog.gui.grapheditor.AbstractRenderer
All Implemented Interfaces:
ActionListener, PropertyChangeListener, EventListener, ComponentRenderer, GraphComponentListener
Direct Known Subclasses:
AbstractGenericNodeRenderer, AbstractSwingRenderer, EdgeRenderer, GenericRemoteNodeRenderer

public abstract class AbstractRenderer
extends Object
implements ComponentRenderer, GraphComponentListener


Constructor Summary
AbstractRenderer()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void dispose()
          For cleanup purposes.
 GraphComponent getComponent()
          Returns the component that this renderer represents
protected  NodeComponent getRootNode()
           
 void propertyChange(PropertyChangeEvent evt)
           
 void setComponent(GraphComponent component)
          Sets the component that this renderer is supposed to represent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRenderer

public AbstractRenderer()
Method Detail

getComponent

public GraphComponent getComponent()
Description copied from interface: ComponentRenderer
Returns the component that this renderer represents

Specified by:
getComponent in interface ComponentRenderer
Returns:

setComponent

public void setComponent(GraphComponent component)
Description copied from interface: ComponentRenderer
Sets the component that this renderer is supposed to represent

Specified by:
setComponent in interface ComponentRenderer

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

dispose

public void dispose()
Description copied from interface: ComponentRenderer
For cleanup purposes. Removes external references to the renderer so that it can be garbage collected.

Specified by:
dispose in interface ComponentRenderer

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getRootNode

protected NodeComponent getRootNode()