edu.uci.ics.jung.visualization.control
Class EditingModalGraphMouse<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.control.PluggableGraphMouse
      extended by edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
          extended by edu.uci.ics.jung.visualization.control.EditingModalGraphMouse<V,E>
All Implemented Interfaces:
ModalGraphMouse, VisualizationViewer.GraphMouse, MouseListener, MouseMotionListener, MouseWheelListener, ItemSelectable, EventListener

public class EditingModalGraphMouse<V,E>
extends AbstractModalGraphMouse
implements ModalGraphMouse, ItemSelectable


Nested Class Summary
static class EditingModalGraphMouse.ModeKeyAdapter
           
 
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.control.ModalGraphMouse
ModalGraphMouse.Mode
 
Field Summary
protected  AnnotatingGraphMousePlugin<V,E> annotatingPlugin
           
protected  MultiLayerTransformer basicTransformer
           
protected  org.apache.commons.collections15.Factory<E> edgeFactory
           
protected  EditingGraphMousePlugin<V,E> editingPlugin
           
protected  LabelEditingGraphMousePlugin<V,E> labelEditingPlugin
           
protected  EditingPopupGraphMousePlugin<V,E> popupEditingPlugin
           
protected  RenderContext<V,E> rc
           
protected  org.apache.commons.collections15.Factory<V> vertexFactory
           
 
Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
animatedPickingPlugin, in, listenerList, mode, modeBox, modeKeyListener, modeListener, modeMenu, out, pickingPlugin, rotatingPlugin, scalingPlugin, shearingPlugin, translatingPlugin
 
Constructor Summary
EditingModalGraphMouse(RenderContext<V,E> rc, org.apache.commons.collections15.Factory<V> vertexFactory, org.apache.commons.collections15.Factory<E> edgeFactory)
          create an instance with default values
EditingModalGraphMouse(RenderContext<V,E> rc, org.apache.commons.collections15.Factory<V> vertexFactory, org.apache.commons.collections15.Factory<E> edgeFactory, float in, float out)
          create an instance with passed values
 
Method Summary
 AnnotatingGraphMousePlugin<V,E> getAnnotatingPlugin()
           
 EditingGraphMousePlugin<V,E> getEditingPlugin()
           
 LabelEditingGraphMousePlugin<V,E> getLabelEditingPlugin()
           
 JComboBox getModeComboBox()
           
 JMenu getModeMenu()
          create (if necessary) and return a menu that will change the mode
 EditingPopupGraphMousePlugin<V,E> getPopupEditingPlugin()
           
protected  void loadPlugins()
          create the plugins, and load the plugins for TRANSFORMING mode
protected  void setAnnotatingMode()
           
protected  void setEditingMode()
           
 void setMode(ModalGraphMouse.Mode mode)
          setter for the Mode.
protected  void setPickingMode()
           
protected  void setTransformingMode()
           
 
Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractModalGraphMouse
addItemListener, fireItemStateChanged, getItemListeners, getModeKeyListener, getModeListener, getSelectedObjects, removeItemListener, setModeKeyListener, 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 edu.uci.ics.jung.visualization.control.ModalGraphMouse
getModeListener
 
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
 
Methods inherited from interface java.awt.ItemSelectable
addItemListener, getSelectedObjects, removeItemListener
 

Field Detail

vertexFactory

protected org.apache.commons.collections15.Factory<V> vertexFactory

edgeFactory

protected org.apache.commons.collections15.Factory<E> edgeFactory

editingPlugin

protected EditingGraphMousePlugin<V,E> editingPlugin

labelEditingPlugin

protected LabelEditingGraphMousePlugin<V,E> labelEditingPlugin

popupEditingPlugin

protected EditingPopupGraphMousePlugin<V,E> popupEditingPlugin

annotatingPlugin

protected AnnotatingGraphMousePlugin<V,E> annotatingPlugin

basicTransformer

protected MultiLayerTransformer basicTransformer

rc

protected RenderContext<V,E> rc
Constructor Detail

EditingModalGraphMouse

public EditingModalGraphMouse(RenderContext<V,E> rc,
                              org.apache.commons.collections15.Factory<V> vertexFactory,
                              org.apache.commons.collections15.Factory<E> edgeFactory)
create an instance with default values


EditingModalGraphMouse

public EditingModalGraphMouse(RenderContext<V,E> rc,
                              org.apache.commons.collections15.Factory<V> vertexFactory,
                              org.apache.commons.collections15.Factory<E> edgeFactory,
                              float in,
                              float out)
create an instance with passed values

Parameters:
in - override value for scale in
out - override value for scale out
Method Detail

loadPlugins

protected void loadPlugins()
create the plugins, and load the plugins for TRANSFORMING mode

Specified by:
loadPlugins in class AbstractModalGraphMouse

setMode

public void setMode(ModalGraphMouse.Mode mode)
setter for the Mode.

Specified by:
setMode in interface ModalGraphMouse
Overrides:
setMode in class AbstractModalGraphMouse

setPickingMode

protected void setPickingMode()
Overrides:
setPickingMode in class AbstractModalGraphMouse

setTransformingMode

protected void setTransformingMode()
Overrides:
setTransformingMode in class AbstractModalGraphMouse

setEditingMode

protected void setEditingMode()

setAnnotatingMode

protected void setAnnotatingMode()

getModeComboBox

public JComboBox getModeComboBox()
Overrides:
getModeComboBox in class AbstractModalGraphMouse
Returns:
the modeBox.

getModeMenu

public JMenu getModeMenu()
create (if necessary) and return a menu that will change the mode

Overrides:
getModeMenu in class AbstractModalGraphMouse
Returns:
the menu

getAnnotatingPlugin

public AnnotatingGraphMousePlugin<V,E> getAnnotatingPlugin()
Returns:
the annotatingPlugin

getEditingPlugin

public EditingGraphMousePlugin<V,E> getEditingPlugin()
Returns:
the editingPlugin

getLabelEditingPlugin

public LabelEditingGraphMousePlugin<V,E> getLabelEditingPlugin()
Returns:
the labelEditingPlugin

getPopupEditingPlugin

public EditingPopupGraphMousePlugin<V,E> getPopupEditingPlugin()
Returns:
the popupEditingPlugin


Copyright © 2009. All Rights Reserved.