Examples of drawChars()


Examples of java.awt.Graphics2D.drawChars()

    for (int i = 0; i < msgChars.length; i++) {
      g.setColor(randomColor());
      int xPermute = random.nextInt(5);
      int yPermute = random.nextInt(5);
      // XXX pick a rotation transform
      g.drawChars(msgChars, i, 1, (x += 20) + xPermute, y + yPermute);
    }

    // Write the output
    ImageOutputStream ios = ImageIO.createImageOutputStream(os);
View Full Code Here

Examples of org.albite.font.AlbiteFont.drawChars()

            final char[] chapterBuffer) {

        AlbiteFont font =
                TextPage.chooseFont(fontPlain, fontItalic, style);

        font.drawChars(g, cp.colors[color], chapterBuffer,
                x, y, position, length);
    }

    public void drawSelected(
            final Graphics g,
View Full Code Here

Examples of org.albite.font.AlbiteFont.drawChars()

        AlbiteFont font =
                TextPage.chooseFont(fontPlain, fontItalic, style);

        g.setColor(cp.colors[color]);
        g.fillRect(x, y, width, height);
        font.drawChars(g, cp.colors[ColorScheme.COLOR_BACKGROUND], chapterBuffer,
                x, y, position, length);
    }

    public final String getText(final char[] chapterBuffer) {
    //#if !(TinyMode || TinyModeExport || LightMode || LightModeExport)
View Full Code Here

Examples of org.albite.font.AlbiteFont.drawChars()

        if (text != null) {
            if (bookCanvas != null) {
                final AlbiteFont font = bookCanvas.getFontItalic();
               
                font.drawChars(
                        g,
                        textColor,
                        text,
                        centerX - (font.charsWidth(text) / 2), centerY);
            } else {
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.