public final class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.swt.graphics.Point |
getExtentInGC(org.eclipse.swt.graphics.Font font,
String text)
Gets the text extent with given font in GC.
|
static int |
getIndexDefinedInSWT(LineStyle lineStyle)
Gets the index defined in SWT.
|
public static org.eclipse.swt.graphics.Point getExtentInGC(org.eclipse.swt.graphics.Font font,
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 styleCopyright © 2015. All Rights Reserved.