Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

org.eclipse.gmf.runtime.draw2d.ui.text
Class FlowUtilitiesEx

java.lang.Object
  extended by 

org.eclipse.draw2d.text.FlowUtilities
      extended by 
org.eclipse.gmf.runtime.draw2d.ui.text.FlowUtilitiesEx

public class FlowUtilitiesEx
extends FlowUtilities

This class extends GEF's FlowUtilities class to provide mapmode support.

Since:
2.1

Field Summary
 
Fields inherited from class org.eclipse.draw2d.text. FlowUtilities
INSTANCE
 
Constructor Summary
FlowUtilitiesEx ( IMapMode mapmode)
          Creates a new instance.
 
Method Summary
 float getAverageCharWidth ( TextFragmentBox fragment, Font font)
           
protected   Rectangle getTextLayoutBounds (java.lang.String s, Font f, int start, int end)
           
protected   TextUtilities getTextUtilities ()
           
 void setupFragmentEx ( TextFragmentBox fragment, Font font, java.lang.String string)
          Make public.
 
Methods inherited from class org.eclipse.draw2d.text. FlowUtilities
setupFragment, wrapFragmentInContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowUtilitiesEx

public FlowUtilitiesEx(
IMapMode mapmode)
Creates a new instance.

Parameters:
mapmode - mapmode to be used for translating measurement units
Method Detail

getAverageCharWidth

public float getAverageCharWidth(
TextFragmentBox fragment,
                                 
Font font)
Overrides:
getAverageCharWidth in class FlowUtilities

getTextLayoutBounds

protected 
Rectangle getTextLayoutBounds(java.lang.String s,
                                        
Font f,
                                        int start,
                                        int end)
Overrides:
getTextLayoutBounds in class FlowUtilities

getTextUtilities

protected 
TextUtilities getTextUtilities()
Overrides:
getTextUtilities in class FlowUtilities

setupFragmentEx

public void setupFragmentEx(
TextFragmentBox fragment,
                            
Font font,
                            java.lang.String string)
Make public.

See Also:
FlowUtilities.setupFragment(TextFragmentBox, Font, String)

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire