Codota Logo
BasicMarqueeHandler.mouseDragged
Code IndexAdd Codota to your IDE (free)

How to use
mouseDragged
method
in
org.jgraph.graph.BasicMarqueeHandler

Best Java code snippets using org.jgraph.graph.BasicMarqueeHandler.mouseDragged (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: uk.org.mygrid.taverna.scufl/scufl-ui

public void mouseDragged(MouseEvent e)
{
  if (startPort != null)
  {
    mouseMoved(e);
  }
  else
  {
    super.mouseDragged(e);
  }
}
origin: net.sf.ingenias/ingeniasjgraphmod

public void mouseDragged(MouseEvent e) {
  autoscroll(graph, e.getPoint());
  if (graph.isEnabled()) {
    if (handler != null && handler == marquee)
      marquee.mouseDragged(e);
    else if (handler == null && !isEditing(graph) && focus != null) {
      if (!graph.isCellSelected(focus.getCell())) {
        selectCellForEvent(focus.getCell(), e);
        cell = null;
      }
      if (handle != null)
        handle.mousePressed(e);
      handler = handle;
    }
    if (handle != null && handler == handle)
      handle.mouseDragged(e);
  }
}
origin: net.sf.ingenias/editor

/**
 *  Description of the Method
 *
 *@param  e  Description of Parameter
 */
public void mouseDragged(MouseEvent e) {
  // If remembered Start Point is Valid
  if (start != null && !e.isConsumed()) {
    // Fetch getGraph()ics from Graph
    Graphics g = getGraph().getGraphics();
    // Xor-Paint the old Connector (Hide old Connector)
    paintConnector(Color.black, getGraph().getBackground(), g);
    // Reset Remembered Port
    port = getTargetPortAt(e.getPoint());
    // If Port was found then Point to Port Location
    if (port != null) {
      current = convert(getGraph().toScreen(port.getLocation(null)));
    }
    // Else If no Port was found then Point to Mouse Location
    else {
      current = convert(getGraph().snap(e.getPoint()));
    }
    // Xor-Paint the new Connector
    paintConnector(getGraph().getBackground(), Color.black, g);
    // Consume Event
    e.consume();
  }
  // Call Superclass
  super.mouseDragged(e);
}
org.jgraph.graphBasicMarqueeHandlermouseDragged

Javadoc

Includes the specified startPoint in the marquee selection. Calls overlay.

Popular methods of BasicMarqueeHandler

  • mousePressed
    Start the marquee at the specified startPoint. This invokes expandMarqueeToPoint to initialize marqu
  • mouseReleased
    Stops the current marquee selection.
  • <init>
  • isForceMarqueeEvent
  • mouseMoved
    Empty.
  • overlay
    Draw the current state of the handler. This is called twice by the overlay method and also by the pa
  • handleMarqueeEvent
    Hook for subclassers. Current implementation checks if graph selection is enabled. This is called fr
  • isMarqueeTriggerEvent
    Hook for subclassers. Current implementation checks if graph selection is enabled. This is called fr
  • paint
    Called after the component was repainted (after autoscroll). This is used to indicate that the graph
  • processMouseDraggedEvent
    Called from mouse dragged to update the marquee state during a repaint.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • String (java.lang)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • JList (javax.swing)
  • JTable (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now