Examples of drawFocus()


Examples of org.eclipse.swt.graphics.GC.drawFocus()

      textLayout.draw(gc, x, y);
    }

    if (drawFocus(event)) {
      Rectangle focusBounds = cell.getViewerRow().getBounds();
      gc.drawFocus(focusBounds.x, focusBounds.y, focusBounds.width + deltaOfLastMeasure,
          focusBounds.height);
    }
   
    if (applyColors) {
      gc.setForeground(oldForeground);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawFocus()

      fLayout.draw(gc, x, y);
    }
   
    if ((event.detail & SWT.FOCUSED) != 0) {
      Rectangle focusBounds=item.getBounds();
      gc.drawFocus(focusBounds.x, focusBounds.y, focusBounds.width, focusBounds.height);
    }
   
    if (!isSelected) {
      gc.setForeground(oldForeground);
      gc.setBackground(oldBackground);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawFocus()

      fLayout.draw(gc, x, y);
    }

    if ((event.detail & SWT.FOCUSED) != 0) {
      Rectangle focusBounds=item.getBounds();
      gc.drawFocus(focusBounds.x, focusBounds.y, focusBounds.width, focusBounds.height);
    }

    if (!isSelected) {
      gc.setForeground(oldForeground);
      gc.setBackground(oldBackground);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawFocus()

      return;
    paintHyperlink(gc);
    if (paintFocus && hasFocus) {
      Rectangle carea = getClientArea();
      gc.setForeground(getForeground());
      gc.drawFocus(0, 0, carea.width, carea.height);
    }
  }

  private void handleMouseDown(Event e) {
    if (e.button != 1)
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawFocus()

      p
          .paint(textGC, repaintRegion, resourceTable, selectedLink,
              selData);
    }
    if (hasFocus && !model.hasFocusSegments())
      textGC.drawFocus(x, y, width, height);
    textGC.dispose();
    gc.drawImage(textBuffer, x, y);
    textBuffer.dispose();
  }
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawFocus()

      return;
    paintHyperlink(gc);
    if (paintFocus && hasFocus) {
      Rectangle carea = getClientArea();
      gc.setForeground(getForeground());
      gc.drawFocus(0, 0, carea.width, carea.height);
    }
  }

  private void handleMouseDown(Event e) {
    if (e.button != 1)
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.