org.eclipse.graphiti.ui.services
Interface IUiLayoutService

All Superinterfaces:
IGaLayoutService, ILayoutService, IPeLayoutService

public interface IUiLayoutService
extends ILayoutService

Extends the layout service interface to be able to offer layout methods which depend on UI.


Method Summary
 IDimension calculateTextSize(java.lang.String text, Font font)
          Calculates the width and height of the given text in the given font.
 
Methods inherited from interface org.eclipse.graphiti.services.IPeLayoutService
getConnectionMidpoint, getGaBoundsForAnchor, getLocationInfo, getLocationRelativeToDiagram, getLocationRelativeToDiagram
 
Methods inherited from interface org.eclipse.graphiti.services.IGaLayoutService
calculateSize, calculateSize, setHeight, setLocation, setLocation, setLocationAndSize, setLocationAndSize, setSize, setWidth
 

Method Detail

calculateTextSize

IDimension calculateTextSize(java.lang.String text,
                             Font font)
Calculates the width and height of the given text in the given font.

Parameters:
text - the string to calculate the rendering size for
font - the font which should be considered for the string
Returns:


Copyright (c) SAP AG 2005, 2012.