Package org.eclipse.swt.graphics

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


    VivaldiPosition ownPosition = (VivaldiPosition)_ownPosition;
    float ownErrorEstimate = ownPosition.getErrorEstimate();
    HeightCoordinatesImpl ownCoords =
      (HeightCoordinatesImpl) ownPosition.getCoordinates();
   
    gc.drawText("Our error: " + ownErrorEstimate,10,10);
   
    Color black = ColorCache.getColor(display, 0, 0, 0);
    gc.setBackground(black); // Color of the squares

    // Draw all known positions of other contacts
View Full Code Here


        gc.drawImage(image, rect.width - image.getImageData().width - 10, 5);
       
        gc.setForeground(new Color(SWTThread.getDisplay(),0,0,0));
        Font font = new Font(display,"Arial",14,SWT.NONE );
        gc.setFont(font);
        gc.drawText(JMConstants.JMULE_NAME, 20, TOP_GRADIENT_HEIGHT / 2 - 15,true);
       
        gc.setForeground(new Color(SWTThread.getDisplay(),0,0,0));
        font = new Font(display,"Arial",10,SWT.NONE );
        gc.setFont(font);
        gc.drawText("Version : " + JMConstants.JMULE_VERSION, 17, TOP_GRADIENT_HEIGHT / 2 + 5,true);
View Full Code Here

        gc.drawText(JMConstants.JMULE_NAME, 20, TOP_GRADIENT_HEIGHT / 2 - 15,true);
       
        gc.setForeground(new Color(SWTThread.getDisplay(),0,0,0));
        font = new Font(display,"Arial",10,SWT.NONE );
        gc.setFont(font);
        gc.drawText("Version : " + JMConstants.JMULE_VERSION, 17, TOP_GRADIENT_HEIGHT / 2 + 5,true);
      }
    });
   
    Composite window_content = new Composite(shell,SWT.NONE);
    window_content.setLayoutData(new GridData(GridData.FILL_BOTH));
View Full Code Here

          if (align == SWT.RIGHT) {
            int lineWidth = gc.textExtent(lines[i], DRAW_FLAGS).x;
            lineX = Math.max(x, rect.x + rect.width - hIndent - lineWidth);
          }
        }
        gc.drawText(lines[i], lineX, lineY, DRAW_FLAGS);
        lineY += lineHeight;
      }
    }
  }
View Full Code Here

          if (align == SWT.RIGHT) {
            int lineWidth = gc.textExtent(lines[i], DRAW_FLAGS).x;
            lineX = Math.max(x, rect.x + rect.width - hIndent - lineWidth);
          }
        }
        gc.drawText(lines[i], lineX, lineY, DRAW_FLAGS);
        lineY += lineHeight;
      }
    }
  }
View Full Code Here

          if (align == SWT.RIGHT) {
            int lineWidth = gc.textExtent(lines[i], DRAW_FLAGS).x;
            lineX = Math.max(x, rect.x + rect.width - hIndent - lineWidth);
          }
        }
        gc.drawText(lines[i], lineX, lineY, DRAW_FLAGS);
        lineY += lineHeight;
      }
    }
  }
View Full Code Here

    final Display display = new Display();
    final Image image = new Image(display, logoFileName);
   
    GC gc = new GC(image);
    gc.setFont(new Font(display, new FontData("Times", 16, 0)));
    gc.drawText(appName, 100, 290, true);
    gc.dispose();
   
    final Shell splash = new Shell(SWT.ON_TOP);
    Label label = new Label(splash, SWT.NONE);
    label.setImage(image);
View Full Code Here

        if (align == SWT.RIGHT) {
          int lineWidth = gc.textExtent(lines[i], DRAW_FLAGS).x;
          lineX = Math.max(x, rect.x + rect.width - hIndent - lineWidth);
        }
      }
      gc.drawText(lines[i], lineX + rect.width / 15, lineY, DRAW_FLAGS);
      lineY += lineHeight;
    }
   
    if(getMenu() == null) return;
    int px = rect.width - 25;
View Full Code Here

        Color colorFg2 = new Color(null, 38, 52, 97);
        gc.setForeground(colorFg2);
        Font font = new Font(null, "Arial", 10, SWT.BOLD);
        gc.setFont(font);
        gc.drawText("Ol�, " + system.getLogged().getName(),           
            componentsAreaComposite.getBounds().width - 130
            - gc.textExtent("Ol�, "
                + system.getLogged().getName()).x, 10,
                SWT.DRAW_TRANSPARENT);
View Full Code Here

        Color colorFg2 = new Color(null, 255, 255, 255);
        gc.setForeground(colorFg2);
        Font font = new Font(null, "Arial", 10, SWT.BOLD);
        gc.setFont(font);
        gc.drawText("Escolha uma Categoria", 25, 32,SWT.DRAW_TRANSPARENT);

//        Font fontPhotoLegend = new Font(null, "Arial", 12, SWT.BOLD);
//        gc.setFont(fontPhotoLegend);
//        gc.drawText("Seja",  categoryButtonsComposite.getBounds().width - 90,categoryButtonsComposite.getBounds().height - 80,SWT.DRAW_TRANSPARENT);
//        gc.drawText("bem-vindo",categoryButtonsComposite.getBounds().width - 90,categoryButtonsComposite.getBounds().height - 60,SWT.DRAW_TRANSPARENT);
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.