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

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

public class SequenceLayout
extends org.eclipse.draw2d.AbstractLayout

Layouts children left to right an centered vertically. Could not find a Draw2D layout for this :-(

Author:
Jan Koehnlein - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
SequenceLayout()
           
SequenceLayout(int minHeight)
           
 
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

SequenceLayout

public SequenceLayout(int minHeight)

SequenceLayout

public SequenceLayout()
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