Package org.apache.harmony.awt.gl

Examples of org.apache.harmony.awt.gl.CommonGraphics2D


    // X11 instanse
    static final X11 x11 = X11.getInstance();

    public void drawString(Graphics2D ga, String str, float x, float y) {
        CommonGraphics2D g = (CommonGraphics2D)ga;
        AffineTransform trans = g.getTransform();
        double xOffset = x + trans.getTranslateX();
        double yOffset = y + trans.getTranslateY();

        FontPeerImpl fnt = (FontPeerImpl)g.getFont().getPeer();
        if (fnt.getClass() == CompositeFont.class){
            drawCompositeString(g, str, xOffset, yOffset);
        } else {
            drawNormalString(g, str, xOffset, yOffset);
        }
View Full Code Here


    }

    public void drawGlyphVector(Graphics2D ga, GlyphVector gv, float x,
            float y) {
        CommonGraphics2D g = (CommonGraphics2D)ga;
        AffineTransform trans = g.getTransform();
        float xOffset = x + (float)trans.getTranslateX();
        float yOffset = y + (float)trans.getTranslateY();

        FontPeerImpl fnt = (FontPeerImpl)gv.getFont().getPeer();
        if (fnt.getClass() == CompositeFont.class){
View Full Code Here

        Object value = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
        return (value == RenderingHints.VALUE_ANTIALIAS_ON);
    }

    public void drawString(Graphics2D ga, String str, float x, float y) {
        CommonGraphics2D g = (CommonGraphics2D)ga;
        AffineTransform trans = g.getTransform();
        double xOffset = x + trans.getTranslateX();
        double yOffset = y + trans.getTranslateY();

        FontPeerImpl fnt = (FontPeerImpl)g.getFont().getPeer();

        if (fnt.getClass() == CompositeFont.class){
            drawCompositeString(g, str, xOffset, yOffset);
        } else {
            drawNormalString(g, str, xOffset, yOffset);
View Full Code Here

    }

    public void drawGlyphVector(Graphics2D ga, GlyphVector gv, float x,
            float y) {
        CommonGraphics2D g = (CommonGraphics2D)ga;
        AffineTransform trans = g.getTransform();
        float xOffset = x + (float)trans.getTranslateX();
        float yOffset = y + (float)trans.getTranslateY();

        FontPeerImpl fnt = (FontPeerImpl)gv.getFont().getPeer();
        if (fnt.getClass() == CompositeFont.class){
View Full Code Here

        Object value = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
        return (value == RenderingHints.VALUE_ANTIALIAS_ON);
    }

    public void drawString(Graphics2D ga, String str, float x, float y) {
        CommonGraphics2D g = (CommonGraphics2D)ga;
        AffineTransform trans = g.getTransform();
        double xOffset = x + trans.getTranslateX();
        double yOffset = y + trans.getTranslateY();

        FontPeerImpl fnt = (FontPeerImpl)g.getFont().getPeer();

        if (fnt.getClass() == CompositeFont.class){
            drawCompositeString(g, str, xOffset, yOffset);
        } else {
            drawNormalString(g, str, xOffset, yOffset);
View Full Code Here

    }

    public void drawGlyphVector(Graphics2D ga, GlyphVector gv, float x,
            float y) {
        CommonGraphics2D g = (CommonGraphics2D)ga;
        AffineTransform trans = g.getTransform();
        float xOffset = x + (float)trans.getTranslateX();
        float yOffset = y + (float)trans.getTranslateY();

        FontPeerImpl fnt = (FontPeerImpl)gv.getFont().getPeer();
        if (fnt.getClass() == CompositeFont.class){
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.gl.CommonGraphics2D

Copyright © 2018 www.massapicom. 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.