Class SyntaxColoringLabel.StyledTextFlow.StyleTextUtilities

  • Enclosing class:
    SyntaxColoringLabel.StyledTextFlow

    protected class SyntaxColoringLabel.StyledTextFlow.StyleTextUtilities
    extends org.eclipse.gmf.runtime.draw2d.ui.text.TextUtilitiesEx
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.google.common.cache.LoadingCache<String,​org.eclipse.draw2d.geometry.Dimension> cache  
      • Fields inherited from class org.eclipse.draw2d.TextUtilities

        INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
      StyleTextUtilities​(org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mapmode)  
    • Field Detail

      • cache

        protected com.google.common.cache.LoadingCache<String,​org.eclipse.draw2d.geometry.Dimension> cache
    • Constructor Detail

      • StyleTextUtilities

        public StyleTextUtilities​(org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mapmode)
    • Method Detail

      • getTextExtents

        public org.eclipse.draw2d.geometry.Dimension getTextExtents​(String draw,
                                                                    Font f)
        Overrides:
        getTextExtents in class org.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()