org.globus.cog.gui.grapheditor.targets.swing
Interface SwingComponentRenderer

All Superinterfaces:
ComponentRenderer
All Known Implementing Classes:
AbstractSwingRenderer, AntRenderer, EdgeWithLabelRenderer, IconRenderer, LoopEdgeRenderer, SimpleArrowRenderer, SwingEdgeRenderer, SwingNodeRenderer, TargetNodeRenderer

public interface SwingComponentRenderer
extends ComponentRenderer


Method Summary
 void addAction(ComponentAction a)
          Adds an action to this component.
 ComponentAction getAction(String name)
          Returns an action with the name specified by the name parameter
 List getActions()
          Returns a list of actions that were added to this component.
 Component getVisualComponent()
           
 void removeAction(ComponentAction action)
          Removes an action
 void setVisualComponent(Component component)
           
 
Methods inherited from interface org.globus.cog.gui.grapheditor.ComponentRenderer
dispose, getComponent, setComponent
 

Method Detail

getVisualComponent

Component getVisualComponent()

setVisualComponent

void setVisualComponent(Component component)

addAction

void addAction(ComponentAction a)
Adds an action to this component. An action represents something that can be performed on this component. In the swing target actions are rendered in a pop-up menu.


getActions

List getActions()
Returns a list of actions that were added to this component.


getAction

ComponentAction getAction(String name)
Returns an action with the name specified by the name parameter


removeAction

void removeAction(ComponentAction action)
Removes an action