Codota Logo
Composite.setCapture
Code IndexAdd Codota to your IDE (free)

How to use
setCapture
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.setCapture (Showing top 8 results out of 315)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt

@Override
public void mouseUp(MouseEvent e) {
  host.setCapture(false);
  draggingSashes = false;
}
origin: org.eclipse.e4.ui.workbench.renderers/swt

public void mouseUp(MouseEvent e) {
  host.setCapture(false);
  draggingSashes = false;
}
origin: org.eclipse.e4.ui.workbench.renderers/swt

public void mouseDown(MouseEvent e) {
  if (e.button != 1)
    return;
  sashesToDrag = getSashRects(e.x, e.y);
  if (sashesToDrag.size() > 0) {
    draggingSashes = true;
    host.setCapture(true);
  }
}
origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt

  @Override
  public void mouseDown(MouseEvent e) {
    if (e.button != 1) {
      return;
    }
    sashesToDrag = getSashRects(e.x, e.y);
    if (sashesToDrag.size() > 0) {
      draggingSashes = true;
      host.setCapture(true);
    }
  }
});
origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.addons.swt

@Override
public void mouseUp(MouseEvent e) {
  composite.setCapture(false);
  // Persist the current size
  Point size = composite.getSize();
  toolControl.getPersistedState()
      .put(TrimStack.STATE_XSIZE, Integer.toString(size.x));
  toolControl.getPersistedState()
      .put(TrimStack.STATE_YSIZE, Integer.toString(size.y));
  trackState = NOT_SIZING;
}
origin: org.eclipse.e4.ui.workbench.addons/swt

public void mouseUp(MouseEvent e) {
  composite.setCapture(false);
  // Persist the current size
  Point size = composite.getSize();
  toolControl.getPersistedState()
      .put(TrimStack.STATE_XSIZE, Integer.toString(size.x));
  toolControl.getPersistedState()
      .put(TrimStack.STATE_YSIZE, Integer.toString(size.y));
  trackState = NOT_SIZING;
}
origin: org.eclipse.e4.ui.workbench.addons/swt

public void mouseDown(MouseEvent e) {
  Point p = new Point(e.x, e.y);
  if (hSizingRect.contains(p)) {
    curPos = e.display.getCursorLocation();
    trackState = HORIZONTAL_SIZING;
    composite.setCapture(true);
  } else if (vSizingRect.contains(p)) {
    curPos = e.display.getCursorLocation();
    trackState = VERTICAL_SIZING;
    composite.setCapture(true);
  } else if (cornerRect.contains(p)) {
    curPos = e.display.getCursorLocation();
    trackState = CORNER_SIZING;
    composite.setCapture(true);
  }
}
origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.addons.swt

  @Override
  public void mouseDown(MouseEvent e) {
    Point p = new Point(e.x, e.y);
    if (hSizingRect.contains(p)) {
      curPos = e.display.getCursorLocation();
      trackState = HORIZONTAL_SIZING;
      composite.setCapture(true);
    } else if (vSizingRect.contains(p)) {
      curPos = e.display.getCursorLocation();
      trackState = VERTICAL_SIZING;
      composite.setCapture(true);
    } else if (cornerRect.contains(p)) {
      curPos = e.display.getCursorLocation();
      trackState = CORNER_SIZING;
      composite.setCapture(true);
    }
  }
});
org.eclipse.swt.widgetsCompositesetCapture

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JTextField (javax.swing)
  • Option (scala)
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