public final class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static Point |
getExtentInGC(Font font,
java.lang.String text)
Gets the text extent with given font in GC.
|
static int |
getIndexDefinedInSWT(LineStyle lineStyle)
Gets the index defined in SWT.
|
public static Point getExtentInGC(Font font, java.lang.String text)
null
or already disposed, point containing size zero will be
returned.font
- the fonttext
- the textpublic static int getIndexDefinedInSWT(LineStyle lineStyle)
lineStyle
- the line style