Examples of FontPeerImpl


Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

    public Rectangle2D getMaxCharBounds(FontRenderContext frc) {
        if (frc == null){
            throw new NullPointerException(Messages.getString("awt.00")); //$NON-NLS-1$
        }

        FontPeerImpl peer = (FontPeerImpl)this.getPeer();

        Rectangle2D bounds = peer.getMaxCharBounds(frc);
        AffineTransform transform = getTransform();
        // !! Documentation doesn't describe meaning of max char bounds
        // for the fonts that have rotate transforms. For all transforms
        // returned bounds are the bounds of transformed maxCharBounds
        // Rectangle2D that corresponds to the font with identity transform.
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

                ",size=" + this.size + "]"; //$NON-NLS-1$ //$NON-NLS-2$
        return result;
    }

    public String getPSName() {
        FontPeerImpl peer = (FontPeerImpl)this.getPeer();
        return peer.getPSName();
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

    public boolean isBold() {
        return (this.style & BOLD) != 0;
    }

    public boolean hasUniformLineMetrics() {
        FontPeerImpl peer = (FontPeerImpl)this.getPeer();
        return peer.hasUniformLineMetrics();
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

        return this.size;
    }

    public int getNumGlyphs() {
        if (numGlyphs == -1){
            FontPeerImpl peer = (FontPeerImpl)this.getPeer();
            this.numGlyphs =  peer.getNumGlyphs();
        }
        return this.numGlyphs;
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

        return this.numGlyphs;
    }

    public int getMissingGlyphCode() {
        if (missingGlyphCode == -1){
            FontPeerImpl peer = (FontPeerImpl)this.getPeer();
            this.missingGlyphCode =  peer.getMissingGlyphCode();
        }
        return this.missingGlyphCode;
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

    public float getSize2D() {
        return this.pointSize;
    }

    public float getItalicAngle() {
        FontPeerImpl peer = (FontPeerImpl)this.getPeer();
        return peer.getItalicAngle();
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

        }
    }


    public boolean canDisplay(char c) {
        FontPeerImpl peer = (FontPeerImpl)this.getPeer();
        return peer.canDisplay(c);
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

       
        if (!FontManager.IS_FONTLIB) {
            //TODO implement true code point support
            return canDisplay((char)i);
        } else {
            FontPeerImpl peer = (FontPeerImpl)this.getPeer();
            return peer.canDisplay(peer.getUnicodeByIndex(i));
        }
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

    }

    public GlyphVector createGlyphVector(FontRenderContext frc, int[] glyphCodes){
        int length = glyphCodes.length;       
        char[] chars = new char[length];       
        FontPeerImpl peer = (FontPeerImpl) getPeer();
       
        for (int i = 0; i < length; i ++) {
            chars[i] = peer.getUnicodeByIndex(glyphCodes[i]);
        }
       
        return new CommonGlyphVector(chars, frc, this, 0);
    }
View Full Code Here

Examples of org.apache.harmony.awt.gl.font.FontPeerImpl

        return 0;
    }


    public String getFamily() {
        FontPeerImpl peer = (FontPeerImpl)this.getPeer();
        return peer.getFamily();


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