Package org.swtchart.internal
Class Util
- java.lang.Object
-
- org.swtchart.internal.Util
-
public final class Util extends java.lang.ObjectA utility class providing generic methods.
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.swt.graphics.PointgetExtentInGC(org.eclipse.swt.graphics.Font font, java.lang.String text)Gets the text extent with given font in GC.static intgetIndexDefinedInSWT(LineStyle lineStyle)Gets the index defined in SWT.
-
-
-
Method Detail
-
getExtentInGC
public static org.eclipse.swt.graphics.Point getExtentInGC(org.eclipse.swt.graphics.Font font, java.lang.String text)Gets the text extent with given font in GC. If the given font isnullor already disposed, point containing size zero will be returned.- Parameters:
font- the fonttext- the text- Returns:
- a point containing text extent
-
getIndexDefinedInSWT
public static int getIndexDefinedInSWT(LineStyle lineStyle)
Gets the index defined in SWT.- Parameters:
lineStyle- the line style- Returns:
- the index defined in SWT.
-
-