Examples of drawString()


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

      gc.drawString(boxContent[boxNum-1],t.x(maxBoxOffsetX-5),t.y(maxBoxOffsetY*boxNum),true);
     
      boxNum++;
      gc.setForeground(Colors.blue);
      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);
     
      boxNum++;
      gc.setForeground(Colors.black);
      gc.setBackground(Colors.black);
      gc.drawRectangle(t.x(maxBoxOffsetX),t.y(maxBoxOffsetY*boxNum),maxBoxWidth,charHeight);
 
View Full Code Here

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

      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);
     
      if(isMe)
      {
        boxNum++;
        gc.setForeground(Colors.black);
 
View Full Code Here

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

      {
        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);
   
    } finally
View Full Code Here

Examples of org.freehep.graphics2d.VectorGraphics.drawString()

    g.fillRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
    g.setColor(Color.BLACK);
    g.drawRect(0, 0, UpperRightGraph.x + RIGHT_SPACE, UpperLeftGraph.y - 10);
    Font fn = new Font("Arial", Font.ITALIC, 16);
    g.setFont(fn);
    g.drawString("Single left click and drag to zoom, single right click to choose scatter options", 50, 20);
    // Bordi neri del grafico
    g.setColor(Color.BLACK);
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, UpperRightGraph.x, UpperRightGraph.y - 1); //UP
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, LowerLeftGraph.x - 1, LowerLeftGraph.y); //LEFT
    g.drawLine(LowerLeftGraph.x, LowerLeftGraph.y, LowerRightGraph.x, LowerRightGraph.y); //BOTTOM
View Full Code Here

Examples of org.jbox2d.callbacks.DebugDraw.drawString()

    final DebugDraw debugDraw = model.getDebugDraw();
    m_textLine = 20;

    if (title != null) {
      debugDraw.drawString(camera.getTransform().getExtents().x, 15, title, Color3f.WHITE);
      m_textLine += TEXT_LINE_SPACE;
    }

    if (settings.pause) {
      if (settings.singleStep) {
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.ViewportGraphics.drawString()

      this.extent = new Rectangle((int) (point.getX() - halfsize), (int) (point.getY() - halfsize), EXTENT_SIZE,
            EXTENT_SIZE);

      graphics.fillOval(extent.x, extent.y, extent.width, extent.height);
      Rectangle2D stringBounds = graphics.getStringBounds(String.valueOf(getMarkModel().getID()));
      graphics.drawString(String.valueOf(getMarkModel().getID()), (int) point.getX(),
            (int) (point.getY() + stringBounds.getHeight()), ViewportGraphics.ALIGN_MIDDLE,
            ViewportGraphics.ALIGN_BOTTOM);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.Font.drawString()

    if (this.state == HOVERED) {
      // The progressbar is hovered. If there is a title, it is shown in
      // place of the percentage
      if (this.title != null) {
        g.setColor(this.filledColor);
        font.drawString(this.ox + 2, this.oy + 2, this.title);
        return;
      }
    }
    int percentage;
    if (this.maxValue.equals(BigDecimal.ZERO)) {
View Full Code Here

Examples of org.newdawn.slick.UnicodeFont.drawString()

   */
 
    public static void drawString(int size, int x, int y, String str, Color col, int rule)
    {
      UnicodeFont f = extractFont(size, rule);
      f.drawString(x, y, str, col);   
    }
   
    public static void drawString(int size, int x, int y, String str, int rule)
    {
      drawString(size, x, y, str, Color.black, rule)
View Full Code Here

Examples of org.open2jam.render.lwjgl.TrueTypeFont.drawString()

        TrueTypeFont trueTypeFont = new TrueTypeFont(font, false);

        int code;
        do{
            Display.update();
            trueTypeFont.drawString(10, 18, "Press a KEY for " + place, 1, -1);
            trueTypeFont.drawString(10, 34, "Last assign was " + Keyboard.getKeyName(lastkey), 1, -1);
            trueTypeFont.drawString(10, 50, "Press ESC or close to cancel", 1, -1);
            Keyboard.next();
            if(Display.isCloseRequested() || Keyboard.getEventKey() == Keyboard.KEY_ESCAPE)
                code = lastkey;
View Full Code Here

Examples of org.pdfbox.pdmodel.edit.PDPageContentStream.drawString()

                    {
                        throw new IOException( "Error:Expected non-null content stream." );
                    }
                    contentStream.moveTextPositionByAmount( 0, -height);
                    y -= height;
                    contentStream.drawString( nextLineToDraw.toString() );
                }
               
               
            } 
            if( contentStream != null )
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.