Example usage for org.jfree.text TextUtilities setUseFontMetricsGetStringBounds

List of usage examples for org.jfree.text TextUtilities setUseFontMetricsGetStringBounds

Introduction

In this page you can find the example usage for org.jfree.text TextUtilities setUseFontMetricsGetStringBounds.

Prototype

public static void setUseFontMetricsGetStringBounds(final boolean use) 

Source Link

Document

Sets the flag that controls whether the FontMetrics.getStringBounds() method is used or not.

Usage

From source file:j2se.jfreechart.barchart.BarChartDemo7.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from  w w w. j ava  2s.c  om*/
 */
public static void main(final String[] args) {

    Log.getInstance().addTarget(new PrintStreamLogTarget());
    TextUtilities.setUseFontMetricsGetStringBounds(false);
    final BarChartDemo7 demo = new BarChartDemo7("Bar Chart Demo 7");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}