Bug 212291 SWT Chart render engine always uses 96 DPI(Display) resolution
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingTextMetrics.java
***********************************************************************/
package org.eclipse.birt.chart.device.swing;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.font.FontRenderContext;
import java.awt.font.LineBreakMeasurer;
import java.awt.font.TextLayout;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.text.AttributedString;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.birt.chart.computation.IConstants;
import org.eclipse.birt.chart.device.IDisplayServer;
import org.eclipse.birt.chart.device.TextAdapter;
import org.eclipse.birt.chart.model.attribute.FontDefinition;
import org.eclipse.birt.chart.model.attribute.Insets;
import org.eclipse.birt.chart.model.component.Label;
/**
 * Provides metrics for a label containing either one or multiple lines of text.
 */
public final class SwingTextMetrics extends TextAdapter
{
	private int iLineCount = 0;
	private Object oText = null;
	private Graphics2D g2d = null;
	private FontMetrics fm = null;