org.eclipse.xtext.xtext.ui.graph.figures.layouts
Class ParallelLayout

java.lang.Object
  extended by org.eclipse.draw2d.AbstractLayout
      extended by org.eclipse.xtext.xtext.ui.graph.figures.layouts.ParallelLayout
All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager

public class ParallelLayout
extends org.eclipse.draw2d.AbstractLayout

Layouts children vertically with common entry and exit nodes to the left / right.

Author:
Jan Koehnlein - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
ParallelLayout()
           
ParallelLayout(int hmargin)
           
 
Method Summary
protected  org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container, int wHint, int hHint)
           
 void layout(org.eclipse.draw2d.IFigure container)
           
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelLayout

public ParallelLayout(int hmargin)

ParallelLayout

public ParallelLayout()
Method Detail

layout

public void layout(org.eclipse.draw2d.IFigure container)

calculatePreferredSize

protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container,
                                                                       int wHint,
                                                                       int hHint)
Specified by:
calculatePreferredSize in class org.eclipse.draw2d.AbstractLayout