Class SyntaxColoringLabel.StyledTextFlow.StyleTextUtilities
- java.lang.Object
-
- org.eclipse.draw2d.TextUtilities
-
- org.eclipse.gmf.runtime.draw2d.ui.text.TextUtilitiesEx
-
- org.yakindu.base.xtext.utils.gmf.figures.SyntaxColoringLabel.StyledTextFlow.StyleTextUtilities
-
- Enclosing class:
- SyntaxColoringLabel.StyledTextFlow
protected class SyntaxColoringLabel.StyledTextFlow.StyleTextUtilities extends org.eclipse.gmf.runtime.draw2d.ui.text.TextUtilitiesEx
-
-
Constructor Summary
Constructors Constructor Description StyleTextUtilities(org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mapmode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.draw2d.geometry.Dimension
getTextExtents(String draw, Font f)
protected org.eclipse.draw2d.geometry.Dimension
getTextExtentsInternal(String draw, Font f)
Add bold font size to label dimensionvoid
invalidate()
-
-
-
Field Detail
-
cache
protected com.google.common.cache.LoadingCache<String,org.eclipse.draw2d.geometry.Dimension> cache
-
-
Method Detail
-
getTextExtents
public org.eclipse.draw2d.geometry.Dimension getTextExtents(String draw, Font f)
- Overrides:
getTextExtents
in classorg.eclipse.gmf.runtime.draw2d.ui.text.TextUtilitiesEx
-
getTextExtentsInternal
protected org.eclipse.draw2d.geometry.Dimension getTextExtentsInternal(String draw, Font f)
Add bold font size to label dimension
-
invalidate
public void invalidate()
-
-