Package org.apache.harmony.awt.gl.font

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


        return getFont(sp, null);
    }


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


        }
    }


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

       
        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

    }

    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

        return 0;
    }


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


    }
View Full Code Here

            // awt.01='{0}' parameter is null
            throw new NullPointerException(Messages.getString(
                    "awt.01", "Locale")); //$NON-NLS-1$ //$NON-NLS-2$
        }

        FontPeerImpl peer = (FontPeerImpl) this.getPeer();
        return peer.getFamily(l);
    }
View Full Code Here

        return getFont(sp, null);
    }


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

        FontPeerImpl peer = (FontPeerImpl)this.getPeer();
        return peer.getFontName();
    }

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

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

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

        return peer.getLineMetrics((new String(chars)).substring(start, end),
                frc, this.getTransform());
    }
View Full Code Here

        if (frc == null){
            // awt.00=FontRenderContext is null
            throw new NullPointerException(Messages.getString("awt.00")); //$NON-NLS-1$
        }
       
        FontPeerImpl peer = (FontPeerImpl)this.getPeer();
        return peer.getLineMetrics(str, frc, getTransform());
    }
View Full Code Here

TOP

Related Classes of org.apache.harmony.awt.gl.font.FontPeerImpl

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.