Package org.joshy.gfx.draw

Examples of org.joshy.gfx.draw.Font



    @Override
    public void draw(GFX gfx) {
        if(this.string != null) {
            Font font = Font.name("OpenSans").size(26).resolve();
            double width = font.calculateWidth(string) + 30;
            if(width < getWidth()) {
                width = getWidth();
            }
            gfx.setPaint(FlatColor.hsb(0, 0, 0.8, this.getOpacity() * 0.9));
            gfx.fillRoundRect(0, 0, width, getHeight(), 10, 10);
View Full Code Here

TOP

Related Classes of org.joshy.gfx.draw.Font

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.