ptolemy.vergil.actor
Class LinkController

java.lang.Object
  extended by diva.graph.BasicEdgeController
      extended by ptolemy.vergil.actor.LinkController
All Implemented Interfaces:
EdgeController
Direct Known Subclasses:
MatchResultViewer.MatchResultLinkController, TransformationEditor.TransformationLinkController

public class LinkController
extends BasicEdgeController

This class provides interaction techniques for edges that are to be connected between ports and relations. Standard interaction techniques for an undirected edge are allowed.

Since:
Ptolemy II 2.0
Version:
$Id: LinkController.java 59167 2010-09-21 17:08:02Z cxh $
Author:
Steve Neuendorffer, Contributor: Edward A. Lee, Bert Rodiers
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
protected  class LinkController.LinkDropper
          An inner class that handles interactive changes to connectivity.
static class LinkController.LinkRenderer
          Render a visual representation of a link.
static class LinkController.LinkTarget
          A connector target that returns sites on a link.
 
Nested classes/interfaces inherited from class diva.graph.BasicEdgeController
BasicEdgeController.EdgeDropper
 
Field Summary
protected  Configuration _configuration
          The configuration.
protected static ConfigureAction _configureAction
          The configure action, which handles edit parameters requests.
protected  MenuActionFactory _configureMenuFactory
          The submenu for configure actions.
protected  MenuCreator _menuCreator
          The menu creator.
protected  PtolemyMenuFactory _menuFactory
          The factory belonging to the menu creator.
private static ContextMenuFactoryCreator cmfCreator
          a configurable object that allows a different MenuFactory to be specified instead of the default ptII one.
 
Constructor Summary
LinkController(GraphController controller)
          Create a link controller associated with the specified graph controller.
 
Method Summary
 void setConfiguration(Configuration configuration)
          Set the configuration.
 
Methods inherited from class diva.graph.BasicEdgeController
addEdge, addEdge, clearEdge, drawEdge, getConnectorTarget, getController, getEdgeInteractor, getEdgeRenderer, removeEdge, render, setConnectorTarget, setEdgeInteractor, setEdgeRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_configuration

protected Configuration _configuration
The configuration.


_configureAction

protected static ConfigureAction _configureAction
The configure action, which handles edit parameters requests.


_configureMenuFactory

protected MenuActionFactory _configureMenuFactory
The submenu for configure actions.


_menuCreator

protected MenuCreator _menuCreator
The menu creator.


_menuFactory

protected PtolemyMenuFactory _menuFactory
The factory belonging to the menu creator.


cmfCreator

private static ContextMenuFactoryCreator cmfCreator
a configurable object that allows a different MenuFactory to be specified instead of the default ptII one. The MenuFactory constructs the right-click context menus

Constructor Detail

LinkController

public LinkController(GraphController controller)
Create a link controller associated with the specified graph controller.

Parameters:
controller - The associated graph controller.
Method Detail

setConfiguration

public void setConfiguration(Configuration configuration)
Set the configuration. This is may be used by derived controllers to open files or URLs.

Parameters:
configuration - The configuration.