|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.TextUtilities
org.eclipse.gmf.runtime.draw2d.ui.text.TextUtilitiesEx
public class TextUtilitiesEx
Field Summary |
---|
Fields inherited from class org.eclipse.draw2d.TextUtilities |
---|
INSTANCE |
Constructor Summary | |
---|---|
TextUtilitiesEx(IMapMode mapmode)
Creates a new instance. |
Method Summary | |
---|---|
int |
getAscent(Font font)
Gets the ascent, converted by the mapmode |
int |
getDescent(Font font)
Gets the descent, converted by the mapmode |
Dimension |
getStringExtents(java.lang.String s,
Font f)
Gets a string's extents, converted by the mapmode |
Dimension |
getTextExtents(java.lang.String s,
Font f)
Gets text's extents, converted by the mapmode |
Methods inherited from class org.eclipse.draw2d.TextUtilities |
---|
getLargestSubstringConfinedTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextUtilitiesEx(IMapMode mapmode)
mapmode
- mapmode to be used for translating measurement unitsMethod Detail |
---|
public int getAscent(Font font)
getAscent
in class TextUtilities
public int getDescent(Font font)
getDescent
in class TextUtilities
public Dimension getStringExtents(java.lang.String s, Font f)
getStringExtents
in class TextUtilities
public Dimension getTextExtents(java.lang.String s, Font f)
getTextExtents
in class TextUtilities
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.