Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Rectangle.intersects()


                        preActivatedControl.columnIndex = colIndex;
                        preActivatedControl.rowIndex = rowIndex;
                        preActivatedControl.dataView = dataGridViews.get(item.getData());
                        preActivatedControl.tableItem = item;
                    }
                    if (!visible && rect.intersects(clientArea)) {
                        visible = true;
                    }
                }
                if (!visible)
                    return;
View Full Code Here


      } else if (orientation == PlotOrientation.VERTICAL) {
        shape = new Rectangle((int) (shape.x + transX1),
            (int) (shape.y + transY1), shape.width, shape.height);
      }
      entityArea = shape;
      if (shape.intersects(dataArea)) {
        if (this.getItemShapeFilled(series, item)) {
          if (this.useFillPaint) {
            gr.setBackground(this.getItemFillPaint(series, item));
          } else {
            gr.setBackground(this.getItemPaint(series, item));
View Full Code Here

                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
                  }
                }
                if (!visible)
                  return;
View Full Code Here

                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
                  }
                }
                if (!visible)
                  return;
View Full Code Here

                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
                  }
                }
                if (!visible)
                  return;
View Full Code Here

                continue;
            }
           
            Rectangle nextBounds = DragUtil.getDisplayBounds(control);
           
            if (nextBounds.intersects(testRegion)) {
                return control;
            }
        }
       
        return controlThatCovers(parent, testRegion);
View Full Code Here

                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
                  }
                }
                if (!visible){
                  return;
View Full Code Here

    shellBounds.height = bigInt == null ? 0 : bigInt.intValue();
    if (!shellBounds.isEmpty()) {
      StartupThreading.runWithoutExceptions(new StartupRunnable() {

        public void runWithException() {
          if (!shellBounds.intersects(displayBounds[0])) {
            Rectangle clientArea = getShell().getDisplay().getClientArea();
            shellBounds.x = clientArea.x;
            shellBounds.y = clientArea.y;
          }
          getShell().setBounds(shellBounds);
View Full Code Here

                    text.setText(item.getText(i));
                    text.selectAll();
                    text.setFocus();
                    return;
                  }
                  if (!visible && rect.intersects(clientArea)) {
                    visible = true;
                  }
                }
                if (!visible)
                  return;
View Full Code Here

    final Rectangle clientArea = table.getClientArea();
    Point point = new Point(e.x, e.y);
    for(int i = table.getTopIndex(); i < table.getItemCount(); i++) {
      TableItem item = table.getItem(i);
      Rectangle rect = item.getBounds(1);
      if(!rect.intersects(clientArea)) {
        return;
      }
      if(rect.contains(point)) {
        if(handleRemoveElement(tableViewer.getElementAt(i))) {
          reloadInput();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.