Examples of drawRectangle()


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

      gc.drawString(boxContent[boxNum-1],t.x(maxBoxOffsetX-5),t.y(maxBoxOffsetY*boxNum),true);
     
      boxNum++;
      gc.setForeground(Colors.black);
      gc.setBackground(Colors.black);
      gc.drawRectangle(t.x(maxBoxOffsetX),t.y(maxBoxOffsetY*boxNum),maxBoxWidth,charHeight);
      gc.fillRectangle(t.x(maxBoxOffsetX),t.y(maxBoxOffsetY*boxNum),maxBoxWidth/2,charHeight);
      gc.setForeground(Colors.grey);
      gc.setBackground(Colors.background);
      gc.drawString(boxContent[boxNum-1],t.x(maxBoxOffsetX-5),t.y(maxBoxOffsetY*boxNum),true);
     
 
View Full Code Here

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

      if(isMe)
      {
        boxNum++;
        gc.setForeground(Colors.black);
        gc.setLineStyle(SWT.LINE_DASH);
        gc.drawRectangle(t.x(maxBoxOffsetX),t.y(maxBoxOffsetY*boxNum),maxBoxWidth,charHeight);
        gc.drawString(boxContent[boxNum-1],t.x(maxBoxOffsetX-5),t.y(maxBoxOffsetY*boxNum),true);       
      }
     
      gc.setLineStyle(SWT.LINE_SOLID);
   
 
View Full Code Here

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

        }
      } else
        gcImage.setForeground(Colors.grey);
     
      if (manager != null)
        gcImage.drawRectangle(0, 0, newWidth - 1, newHeight - 1);
      gcImage.dispose();
     
      last_draw_time = now;
     
      if (cell instanceof TableCellSWT)
View Full Code Here

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

    Image image = new Image(SWTThread.getInstance().getDisplay(), newWidth,
        newHeight);
    Color color;
    GC gcImage = new GC(image);
    gcImage.setForeground(Colors.grey);
    gcImage.drawRectangle(0, 0, x1 + 1, y1 + 1);
    int blocksPerPixel = 0;
    int iPixelsPerBlock = 0;
    int pxRes = 0;
    long pxBlockStep = 0;
    int factor = 4;
View Full Code Here

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

        gcBuffer.drawLine(1,i+1,bounds.width-1,i+1);
      }      
      gcBuffer.setForeground(Colors.black);
      gcBuffer.drawLine(bounds.width-70,0,bounds.width-70,bounds.height-1);   
     
      gcBuffer.drawRectangle(0,0,bounds.width-1,bounds.height-1);
      gcBuffer.dispose();
    }
  }
 
  public void dispose() {
View Full Code Here

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

            PAD_TOP + usable_height - ( draw_y + draw_z ));
      }
       
      image.setForeground( Colors.black );
     
      image.drawRectangle( bounds.x, bounds.y, bounds.width-1, bounds.height-1 );
     
      int  font_height = image.getFontMetrics().getHeight();
      int char_width  = image.getFontMetrics().getAverageCharWidth();
     
        // x axis
View Full Code Here

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

      // draw border
      gcImage = new GC(image);
      gcImage.setForeground(Colors.grey);
      if (borderHorizontalSize > 0) {
        if (borderVerticalSize > 0) {
          gcImage.drawRectangle(0, 0, newWidth - 1, newHeight - 1);
        } else {
          gcImage.drawLine(0, 0, newWidth - 1, 0);
          gcImage.drawLine(0, newHeight - 1, newWidth - 1, newHeight - 1);
        }
      } else if (borderVerticalSize > 0) {
View Full Code Here

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

      gc.setBackground(color);
      gc.fillRectangle(0, 0, 32, 10);

      gc.setForeground(getShell().getDisplay().getSystemColor(SWT.COLOR_BLACK));
      gc.drawRectangle(0, 0, 31, 9);

      gc.dispose();

      fColorItem.setImage(fColorImage);
    }
View Full Code Here

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

    gc.setBackground(color);
    gc.fillRectangle(0, 0, 12, 12);

    gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK));
    gc.drawRectangle(0, 0, 11, 11);

    gc.dispose();
    color.dispose();

    return image;
View Full Code Here

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

   
    Display display= fButton.getDisplay();
   
    GC gc= new GC(fImage);
    gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK));
    gc.drawRectangle(0, 2, fExtent.x - 1, fExtent.y - 4);
   
    if (fColor != null)
      fColor.dispose();
     
    fColor= new Color(display, fColorValue);
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.