de.cau.cs.kieler.synccharts.custom
Class ListLayout

java.lang.Object
  extended by org.eclipse.draw2d.AbstractLayout
      extended by org.eclipse.draw2d.AbstractHintLayout
          extended by org.eclipse.draw2d.OrderedLayout
              extended by org.eclipse.draw2d.FlowLayout
                  extended by de.cau.cs.kieler.synccharts.custom.ListLayout
All Implemented Interfaces:
LayoutManager

public class ListLayout
extends FlowLayout

A Layout similar to the FlowLayout, however, it will set a minimum size according to its children's preffered sizes. It could be used to place Text Labels into som other figure. The parent then will get the size of the bounding box of the text labels.

Rating red

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.draw2d.FlowLayout
FlowLayout.WorkingData
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d.FlowLayout
ALIGN_LEFTTOP, ALIGN_RIGHTBOTTOM, data, fill, majorAlignment, majorSpacing, minorSpacing
 
Fields inherited from class org.eclipse.draw2d.OrderedLayout
ALIGN_BOTTOMRIGHT, ALIGN_CENTER, ALIGN_TOPLEFT, horizontal, HORIZONTAL, minorAlignment, transposer, VERTICAL
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
ListLayout()
           
 
Method Summary
protected  Dimension calculatePreferredSize(IFigure container, int wHint, int hHint)
           
 
Methods inherited from class org.eclipse.draw2d.FlowLayout
getChildSize, getDefaultOrientation, getMajorAlignment, getMajorSpacing, getMinorSpacing, initRow, initVariables, isSensitiveHorizontally, isSensitiveVertically, isStretchMinorAxis, layout, layoutRow, setBoundsOfChild, setMajorAlignment, setMajorSpacing, setMinorSpacing, setStretchMinorAxis
 
Methods inherited from class org.eclipse.draw2d.OrderedLayout
getMinorAlignment, isHorizontal, setHorizontal, setMinorAlignment
 
Methods inherited from class org.eclipse.draw2d.AbstractHintLayout
calculateMinimumSize, getMinimumSize, getPreferredSize, invalidate
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, 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

ListLayout

public ListLayout()
Method Detail

calculatePreferredSize

protected Dimension calculatePreferredSize(IFigure container,
                                           int wHint,
                                           int hHint)
Overrides:
calculatePreferredSize in class FlowLayout