Examples of drawText()


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

     
      String  y_text = labels[1] + " - " + formatters[1].format( max_y+1 );

      gc.drawText( y_text, y_axis_top_x+4, y_axis_top_y + 2, SWT.DRAW_TRANSPARENT );

      gc.drawText( title, ( bounds.width - title.length()*char_width )/2, 1, SWT.DRAW_TRANSPARENT );
     
      gc.dispose();

      return( image );
    }
View Full Code Here

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

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

        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

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

        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

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

          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

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

          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

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

          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

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

    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

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

        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

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

        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
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.