Class DefaultModalGraphMouse<V,​E>

  • All Implemented Interfaces:
    ModalGraphMouse, VisualizationViewer.GraphMouse, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.ItemSelectable, java.util.EventListener
    Direct Known Subclasses:
    ModalSatelliteGraphMouse

    public class DefaultModalGraphMouse<V,​E>
    extends AbstractModalGraphMouse
    implements ModalGraphMouse, java.awt.ItemSelectable
    DefaultModalGraphMouse is a PluggableGraphMouse class that pre-installs a large collection of plugins for picking and transforming the graph. Additionally, it carries the notion of a Mode: Picking or Translating. Switching between modes allows for a more natural choice of mouse modifiers to be used for the various plugins. The default modifiers are intended to mimick those of mainstream software applications in order to be intuitive to users. To change between modes, two different controls are offered, a combo box and a menu system. These controls are lazily created in their respective 'getter' methods so they don't impact code that does not intend to use them. The menu control can be placed in an unused corner of the GraphZoomScrollPane, which is a common location for mouse mode selection menus in mainstream applications.
    Author:
    Tom Nelson
    • Constructor Detail

      • DefaultModalGraphMouse

        public DefaultModalGraphMouse()
        create an instance with default values
      • DefaultModalGraphMouse

        public DefaultModalGraphMouse​(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