Examples of calculateDimensions()


Examples of org.jfree.text.TextBlock.calculateDimensions()

        if (this.text != null && !this.text.equals("")) {
            g2.setFont(this.font);
            TextBlock title = TextUtilities.createTextBlock(
                this.text, this.font, this.paint, height, new G2TextMeasurer(g2)
            );
            Size2D d = title.calculateDimensions(g2);
            result = (float) getSpacer().getAdjustedWidth(d.getHeight());
                                                     // use height here because the title
                                                     // is displayed rotated
        }
        if (LOGGER.isDebugEnabled()) {
View Full Code Here

Examples of org.jfree.text.TextBlock.calculateDimensions()

            g2.setFont(this.font);
            float textWidth = (float) getSpacer().trimWidth(width);
            TextBlock title = TextUtilities.createTextBlock(
                this.text, this.font, this.paint, textWidth, new G2TextMeasurer(g2)
            );
            Size2D d = title.calculateDimensions(g2);
            result = (float) getSpacer().getAdjustedHeight(d.getHeight());
        }
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Title preferred height = " + result);  
        }
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.