|
org.eclipse.gmf.runtime.draw2d.ui.text
Class TextUtilitiesEx
java.lang.Object
org.eclipse.draw2d.TextUtilities
org.eclipse.gmf.runtime.draw2d.ui.text.TextUtilitiesEx
-
public class TextUtilitiesEx
- extends
TextUtilities
-
Since:
- 2.1
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
TextUtilitiesEx
public TextUtilitiesEx(
IMapMode mapmode)
- Creates a new instance.
-
Parameters:
-
mapmode - mapmode to be used for translating measurement units
getAscent
public int getAscent(
Font font)
- Gets the ascent, converted by the mapmode
-
-
Overrides:
-
getAscent
in class
TextUtilities
-
getDescent
public int getDescent(
Font font)
- Gets the descent, converted by the mapmode
-
-
Overrides:
-
getDescent
in class
TextUtilities
-
getStringExtents
public
Dimension getStringExtents(java.lang.String s,
Font f)
- Gets a string's extents, converted by the mapmode
-
-
Overrides:
-
getStringExtents
in class
TextUtilities
-
getTextExtents
public
Dimension getTextExtents(java.lang.String s,
Font f)
- Gets text's extents, converted by the mapmode
-
-
Overrides:
-
getTextExtents
in class
TextUtilities
-
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.
|
|