org.swtchart.internal.Util Class Reference

A utility class providing generic methods. More...

List of all members.

Static Public Member Functions

static Point getExtentInGC (Font font, String text)
 Gets the text extent with given font in GC.
static int getIndexDefinedInSWT (LineStyle lineStyle)
 Gets the index defined in SWT.

Detailed Description

A utility class providing generic methods.

Definition at line 20 of file Util.java.


Member Function Documentation

static Point org.swtchart.internal.Util.getExtentInGC ( Font  font,
String  text 
) [static]

Gets the text extent with given font in GC.

If the given text or font is null or already disposed, point containing size zero will be returned.

Parameters:
font the font
text the text
Returns:
a point containing text extent

Definition at line 33 of file Util.java.

static int org.swtchart.internal.Util.getIndexDefinedInSWT ( LineStyle  lineStyle  )  [static]

Gets the index defined in SWT.

Parameters:
lineStyle the line style
Returns:
the index defined in SWT.

Definition at line 64 of file Util.java.


The documentation for this class was generated from the following file:

Generated on 26 Oct 2015 for SWTChart.org by  doxygen 1.6.1