public final class FigureUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static org.eclipse.swt.graphics.Point |
getTextDimension(String s,
org.eclipse.swt.graphics.Font f)
Returns the dimensions of the String s using the font f.
|
static int |
getTextWidth(String s,
org.eclipse.swt.graphics.Font f)
Returns the width of s in Font f.
|
public static org.eclipse.swt.graphics.Point getTextDimension(String s, org.eclipse.swt.graphics.Font f)
s
- the stringf
- the fontGC.textExtent(String)
public static int getTextWidth(String s, org.eclipse.swt.graphics.Font f)
s
- the stringf
- the fontCopyright © 2016. All rights reserved.