Examples of drawChars()


Examples of com.tinyline.tiny2d.Tiny2D.drawChars()

            if (cbox.xmax - cbox.xmin + ONE * 2 >= stoneSize)
                fontSize -= HALF;
            else
                break;
        }
        t2d.drawChars(font, fontSize, text, 0, text.length,
                daAnchorX + wH - (cbox.xmax - cbox.xmin) / 2,
                // same baseline for any text
                daAnchorY + hH + fontSize * (font.ascent + font.descent) / font.unitsPerEm / 2,
                Tiny2D.TEXT_ANCHOR_START);
    }
View Full Code Here

Examples of com.tinyline.tiny2d.Tiny2D.drawChars()

            System.out.println("\t" + moveStatus);
            //#endif
            int X = daWidth(tile) / 2;
            t2d.strokeColor = TinyColor.NONE;
            t2d.fillColor = fgColor;
            t2d.drawChars(font, commentFontSize, text, 0, text.length, X, Y + commentFontAscent, Tiny2D.TEXT_ANCHOR_MIDDLE);
            Y += commentFontSize;
            commentLines--;
        }

        if (commentLines > 0) {
View Full Code Here

Examples of com.tinyline.tiny2d.Tiny2D.drawChars()

                    if (drawChars){
                        // Draw the current line
                        //t2d.matrix = new TinyMatrix();
                        //if (breakOff <= off || len == text.length)
                        //breakOff = len;
                        t2d.drawChars(font, commentFontSize, text, off,
                                /*breakOff*/len, X, Y + commentFontAscent, Tiny2D.TEXT_ANCHOR_START);
                        // Advance one line
                        if (off == 0)
                            X = ONE;
                        //off = breakOff + 1;
View Full Code Here

Examples of java.awt.Graphics.drawChars()

            TextContext tctx = (TextContext)ctx;
            Graphics g = tctx.graphics;
            char[] chars = tctx.chars;
            g.setFont(tctx.font);
            do {
                g.drawChars(chars, 0, chars.length, 40, 40);
            } while (--numReps >= 0);
        }
    }

    public static class DrawBytes extends TextRenderTests {
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

    Graphics2D graphics2D = img.createGraphics();
    graphics2D.setBackground(paintData.getBackground());
    graphics2D.setColor(paintData.getDrawColor());
    graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
    graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
    graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
    graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
   
    ImageIO.write(img,"jpeg",out);
   
    }
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

    graphics2D.setBackground(paintData.getBackground());
    graphics2D.setColor(paintData.getDrawColor());
    graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
    graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
    graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
    graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
   
    ImageIO.write(img,"jpeg",out);
   
    }
  }
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

    Graphics2D graphics2D = img.createGraphics();
    graphics2D.setBackground(paintData.getBackground());
    graphics2D.setColor(paintData.getDrawColor());
    graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
    graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
    graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
    graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
   
    ImageIO.write(img,"jpeg",out);
   
    }
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

    graphics2D.setBackground(paintData.getBackground());
    graphics2D.setColor(paintData.getDrawColor());
    graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
    graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
    graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
    graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
   
    ImageIO.write(img,"jpeg",out);
   
    }
  }
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

      Graphics2D graphics2D = img.createGraphics();
      graphics2D.setBackground(paintData.getBackground());
      graphics2D.setColor(paintData.getDrawColor());
      graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
      graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
      graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
      graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);

      ImageIO.write(img,"jpeg",out);

    }
View Full Code Here

Examples of java.awt.Graphics2D.drawChars()

      graphics2D.setBackground(paintData.getBackground());
      graphics2D.setColor(paintData.getDrawColor());
      graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
      graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
      graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
      graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);

      ImageIO.write(img,"jpeg",out);

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