Package org.eclipse.swt.graphics

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


      int y_axis_top_x   = PAD_LEFT;
      int y_axis_top_y   = PAD_TOP;

      gc.drawLine( y_axis_bottom_x, y_axis_bottom_y, y_axis_top_x, y_axis_top_y );

      gc.drawLine( y_axis_top_x-4, y_axis_top_y+PAD_TOP,  y_axis_top_x, y_axis_top_y );
      gc.drawLine( y_axis_top_x+4, y_axis_top_y+PAD_TOP,  y_axis_top_x, y_axis_top_y );

      for (int i=1;i<10;i++){
       
        int  y = y_axis_bottom_y + ( y_axis_top_y - y_axis_bottom_y )*i/10;
 
View Full Code Here


      int y_axis_top_y   = PAD_TOP;

      gc.drawLine( y_axis_bottom_x, y_axis_bottom_y, y_axis_top_x, y_axis_top_y );

      gc.drawLine( y_axis_top_x-4, y_axis_top_y+PAD_TOP,  y_axis_top_x, y_axis_top_y );
      gc.drawLine( y_axis_top_x+4, y_axis_top_y+PAD_TOP,  y_axis_top_x, y_axis_top_y );

      for (int i=1;i<10;i++){
       
        int  y = y_axis_bottom_y + ( y_axis_top_y - y_axis_bottom_y )*i/10;
       
View Full Code Here

      for (int i=1;i<10;i++){
       
        int  y = y_axis_bottom_y + ( y_axis_top_y - y_axis_bottom_y )*i/10;
       
        gc.drawLine( y_axis_bottom_x, y, y_axis_bottom_x-4, y );
      }
     
      le = mapper.getEstimatedDownloadLimit( false );
     
      if ( le != null ){
View Full Code Here

            int[]  seg = segs[i];
           
            int  next_x  = (int)((seg[0])*metric_ratio) + 1;
            int  next_y   = (int)((seg[1] + (seg[2]-seg[1])/2)*pos_ratio) + 1;
           
            gc.drawLine(
              y_axis_bottom_x + prev_x,
              y_axis_bottom_y - prev_y,
              y_axis_bottom_x + next_x,
              y_axis_bottom_y - next_y );
                           
View Full Code Here

         
          int speed = bad_down[i].getBytesPerSec();
         
          int  y = max_y==0?0:( speed * usable_height / max_y );
       
          gc.drawLine(
                y_axis_bottom_x + 0,
                y_axis_bottom_y - y,
              y_axis_bottom_x + 10,
              y_axis_bottom_y - y );
        }
View Full Code Here

    gc.setBackground(fGradientBgColor);
    gc.fillGradientRectangle(0, rect.y, area.width, rect.height, true);

    /* Bottom Line */
    gc.setForeground(fGradientEndColor);
    gc.drawLine(0, rect.y + rect.height - 1, area.width, rect.y + rect.height - 1);

    gc.setForeground(oldForeground);
    gc.setBackground(oldBackground);

    /* Mark as Background being handled */
 
View Full Code Here

    gc.setBackground(bg);
    gc.fillGradientRectangle(0, rect.y, area.width, rect.height, true);

    /* Bottom Line */
    gc.setForeground(end);
    gc.drawLine(0, rect.y + rect.height - 1, area.width, rect.y + rect.height - 1);

    gc.setForeground(oldForeground);
    gc.setBackground(oldBackground);

    /* Mark as Background being handled */
 
View Full Code Here

    gc.setBackground(fGradientBgColor);
    gc.fillGradientRectangle(0, rect.y, area.width, rect.height, true);

    /* Bottom Line */
    gc.setForeground(fGradientEndColor);
    gc.drawLine(0, rect.y + rect.height - 1, area.width, rect.y + rect.height - 1);

    gc.setForeground(oldForeground);
    gc.setBackground(oldBackground);

    /* Mark as Background being handled */
 
View Full Code Here

      gc.setBackground(fGradientBgColor);
      gc.fillGradientRectangle(0, rect.y, area.width, rect.height, true);

      /* Bottom Line */
      gc.setForeground(fGradientEndColor);
      gc.drawLine(0, rect.y + rect.height - 1, area.width, rect.y + rect.height - 1);

      gc.setForeground(oldForeground);
      gc.setBackground(oldBackground);

      /* Mark as Background being handled */
 
View Full Code Here

    conditionsContainer.addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent e) {
        GC gc = e.gc;
        Rectangle clArea = conditionsContainer.getClientArea();
        gc.setForeground(conditionsContainer.getDisplay().getSystemColor(SWT.COLOR_GRAY));
        gc.drawLine(clArea.x, clArea.y, clArea.x + clArea.width, clArea.y);
      }
    });

    /* Search Conditions List */
    fSearchConditionList = new SearchConditionList(conditionsContainer, SWT.None, getDefaultConditions());
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.