Klasse SimLabelMousePlugin

java.lang.Object
edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin<FWSimFieldContainer,SimFieldLink>
net.simplace.client.sim.graphpanel.event.SimLabelMousePlugin
Alle implementierten Schnittstellen:
edu.uci.ics.jung.visualization.control.GraphMousePlugin, MouseListener, EventListener

public class SimLabelMousePlugin extends edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin<FWSimFieldContainer,SimFieldLink> implements MouseListener
Autor:
Andreas Enders
  • Feldübersicht

    Von Klasse geerbte Felder edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin

    edge, vertex

    Von Klasse geerbte Felder edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin

    cursor, down, modifiers
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    create an instance with default settings
    SimLabelMousePlugin(int selectionModifiers)
    create an instance with overrides
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    For primary modifiers (default, MouseButton1): pick a single Vertex or Edge that is under the mouse pointer.
    void
     
    void
     
    void
    If the mouse is over a picked vertex, drag all picked vertices with the mouse.
    void
    If the mouse is dragging a rectangle, pick the Vertices contained in that rectangle clean up settings from mousePressed

    Von Klasse geerbte Methoden edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin

    checkModifiers, getCursor, getModifiers, setCursor, setModifiers

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • SimLabelMousePlugin

      public SimLabelMousePlugin()
      create an instance with default settings
    • SimLabelMousePlugin

      public SimLabelMousePlugin(int selectionModifiers)
      create an instance with overrides
      Parameter:
      selectionModifiers - for primary selection
  • Methodendetails

    • mouseClicked

      public void mouseClicked(MouseEvent e)
      For primary modifiers (default, MouseButton1): pick a single Vertex or Edge that is under the mouse pointer. If no Vertex or edge is under the pointer, unselect all picked Vertices and edges, and set up to draw a rectangle for multiple selection of contained Vertices. For additional selection (default Shift+MouseButton1): Add to the selection, a single Vertex or Edge that is under the mouse pointer. If a previously picked Vertex or Edge is under the pointer, it is un-picked. If no vertex or Edge is under the pointer, set up to draw a multiple selection rectangle (as above) but do not unpick previously picked elements.
      Angegeben von:
      mouseClicked in Schnittstelle MouseListener
      Setzt außer Kraft:
      mouseClicked in Klasse edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin<FWSimFieldContainer,SimFieldLink>
      Parameter:
      e - the event
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      If the mouse is dragging a rectangle, pick the Vertices contained in that rectangle clean up settings from mousePressed
      Angegeben von:
      mouseReleased in Schnittstelle MouseListener
      Setzt außer Kraft:
      mouseReleased in Klasse edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin<FWSimFieldContainer,SimFieldLink>
    • mousePressed

      public void mousePressed(MouseEvent e)
      If the mouse is over a picked vertex, drag all picked vertices with the mouse. If the mouse is not over a Vertex, draw the rectangle to select multiple Vertices
      Angegeben von:
      mousePressed in Schnittstelle MouseListener
      Setzt außer Kraft:
      mousePressed in Klasse edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin<FWSimFieldContainer,SimFieldLink>
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Angegeben von:
      mouseEntered in Schnittstelle MouseListener
      Setzt außer Kraft:
      mouseEntered in Klasse edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin<FWSimFieldContainer,SimFieldLink>
      Siehe auch:
    • mouseExited

      public void mouseExited(MouseEvent e)
      Angegeben von:
      mouseExited in Schnittstelle MouseListener
      Setzt außer Kraft:
      mouseExited in Klasse edu.uci.ics.jung.visualization.control.LabelEditingGraphMousePlugin<FWSimFieldContainer,SimFieldLink>
      Siehe auch: