Class FigureUtilities
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.table.swt.FigureUtilities
-
public final class FigureUtilities extends java.lang.Object
Based on org.eclipse.draw2d.FigureUtilities .
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.swt.graphics.Point
getTextDimension(java.lang.String s, org.eclipse.swt.graphics.Font f)
Returns the dimensions of the String s using the font f.static int
getTextWidth(java.lang.String s, org.eclipse.swt.graphics.Font f)
Returns the width of s in Font f.
-
-
-
Method Detail
-
getTextDimension
public static org.eclipse.swt.graphics.Point getTextDimension(java.lang.String s, org.eclipse.swt.graphics.Font f)
Returns the dimensions of the String s using the font f. Tab expansion and carriage return processing are performed.- Parameters:
s
- the stringf
- the font- Returns:
- the text's dimensions
- See Also:
GC.textExtent(String)
-
getTextWidth
public static int getTextWidth(java.lang.String s, org.eclipse.swt.graphics.Font f)
Returns the width of s in Font f.- Parameters:
s
- the stringf
- the font- Returns:
- the width
-
-