Examples of drawText()


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

        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

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

                gc.setLineWidth(1);
                gc.drawLine(0, 30, mainPanel.getClientArea().width, 30);
                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

                if (screenMessageLabel.getText().equals("")) {
          gc.drawText(messageDefault, 10, 10, SWT.DRAW_TRANSPARENT);
                } else {
                    gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null, "img/exclamation.png"), 9, 9);
                }
                gc.dispose();
View Full Code Here

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

                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

                if (screenMessageLabel.getText().equals("")) {
          gc.drawText(messageDefault, 10, 10, SWT.DRAW_TRANSPARENT);
                } else {
                    gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null, "img/exclamation.png"), 9, 9);
                }
                gc.dispose();
            }
        });
View Full Code Here

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

                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

                String balanceValueFormated = new Money(balanceValue).getFormatedValue();
               
                Point endBalance = gc.textExtent("Balan�o final: R$ " + balanceValueFormated);
                gc.drawText("Balan�o final: R$ " + balanceValueFormated, footer.getClientArea().width - 10 - endBalance.x, 10, SWT.DRAW_TRANSPARENT);
                gc.dispose();
            }
        });

        FormData data = new FormData();
View Full Code Here

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

                gc.setLineWidth(1);
                gc.drawLine(0, 30, mainPanel.getClientArea().width, 30);
                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

                if (screenMessageLabel.getText().equals("")) {
                    gc.drawText(DEFAULT_MESSAGE, 30, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null,"img/exclamation.png"),9,9);
                } else {
                    gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null,"img/exclamation.png"),9,9);
                }
View Full Code Here

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

                if (screenMessageLabel.getText().equals("")) {
                    gc.drawText(DEFAULT_MESSAGE, 30, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null,"img/exclamation.png"),9,9);
                } else {
                    gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null,"img/exclamation.png"),9,9);
                }
                gc.dispose();
            }
        });
View Full Code Here

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

                gc.setLineWidth(1);
                gc.drawLine(0, 30, mainPanel.getClientArea().width, 30);
                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

                if (screenMessageLabel.getText().equals("")) {
                    gc.drawText("", 10, 10, SWT.DRAW_TRANSPARENT);
                } else {
                    gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null,"img/exclamation.png"),9,9);
                }
                gc.dispose();
View Full Code Here

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

                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

                if (screenMessageLabel.getText().equals("")) {
                    gc.drawText("", 10, 10, SWT.DRAW_TRANSPARENT);
                } else {
                    gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
                    gc.drawImage(new Image(null,"img/exclamation.png"),9,9);
                }
                gc.dispose();
            }
        });
View Full Code Here

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

        gc.setLineWidth(1);
        gc.drawLine(0, 30, mainPanel.getClientArea().width, 30);
        gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

        if (screenMessageLabel.getText().equals("")) {
          gc.drawText("Preencha os campos abaixo para efetuar o cadastro.", 10, 10, SWT.DRAW_TRANSPARENT);
        } else {
          gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
          gc.drawImage(new Image(null, "img/exclamation.png"), 9, 9);
        }
        gc.dispose();
View Full Code Here

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

        gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));

        if (screenMessageLabel.getText().equals("")) {
          gc.drawText("Preencha os campos abaixo para efetuar o cadastro.", 10, 10, SWT.DRAW_TRANSPARENT);
        } else {
          gc.drawText(screenMessageLabel.getText(), 32, 10, SWT.DRAW_TRANSPARENT);
          gc.drawImage(new Image(null, "img/exclamation.png"), 9, 9);
        }
        gc.dispose();
      }
    });
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.