com.alveole.studio.web.designer
Class EditionPlugin

java.lang.Object
  extended by edu.uci.ics.jung.visualization.control.PluggableGraphMouse
      extended by edu.uci.ics.jung.visualization.control.EditingModalGraphMouse
          extended by com.alveole.studio.web.designer.EditionPlugin
All Implemented Interfaces:
edu.uci.ics.jung.visualization.control.ModalGraphMouse, edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.ItemSelectable, java.util.EventListener

public class EditionPlugin
extends edu.uci.ics.jung.visualization.control.EditingModalGraphMouse

A custom edition plugin that fulfills our requirements for the graph. It contains a specific LinkEditor that calls bacl a GuiActionsManager when user performs a link.

Author:
sylvain

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse
edu.uci.ics.jung.visualization.control.ModalGraphMouse.Mode
 
Field Summary
 
Fields inherited from class edu.uci.ics.jung.visualization.control.EditingModalGraphMouse
animatedPickingPlugin, editingPlugin, in, listenerList, mode, modeBox, modeListener, modeMenu, out, pickingPlugin, rotatingPlugin, scalingPlugin, shearingPlugin, translatingPlugin
 
Constructor Summary
EditionPlugin(GuiActionsManager manager)
          Constructor.
 
Method Summary
 LinkEditor getEditingPlugin()
          Gets the current LinkEditor.
 void setEditingPlugin(LinkEditor editingPlugin)
          Sets the editingPlugin.
 
Methods inherited from class edu.uci.ics.jung.visualization.control.EditingModalGraphMouse
addItemListener, fireItemStateChanged, getItemListeners, getModeComboBox, getModeListener, getModeMenu, getSelectedObjects, loadPlugins, removeItemListener, setEditingMode, setMode, setPickingMode, setTransformingMode, setVertexLocations, setZoomAtMouse
 
Methods inherited from class edu.uci.ics.jung.visualization.control.PluggableGraphMouse
add, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 
Methods inherited from interface java.awt.event.MouseWheelListener
mouseWheelMoved
 

Constructor Detail

EditionPlugin

public EditionPlugin(GuiActionsManager manager)
Constructor.

Parameters:
manager - The manager that is called back on linking.
Method Detail

getEditingPlugin

public LinkEditor getEditingPlugin()
Gets the current LinkEditor.

Returns:
The link editor.

setEditingPlugin

public void setEditingPlugin(LinkEditor editingPlugin)
Sets the editingPlugin.

Parameters:
editingPlugin - The editing plugin.