org.eclipse.gef.internal.ui.palette.editparts
Class ColumnsLayout

java.lang.Object
  extended byorg.eclipse.draw2d.AbstractLayout
      extended byorg.eclipse.draw2d.AbstractHintLayout
          extended byorg.eclipse.draw2d.FlowLayout
              extended byorg.eclipse.gef.internal.ui.palette.editparts.ColumnsLayout
All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager

public class ColumnsLayout
extends org.eclipse.draw2d.FlowLayout

Special FlowLayout to display the palette in the columns view.


Field Summary
 
Fields inherited from class org.eclipse.draw2d.FlowLayout
ALIGN_CENTER, ALIGN_LEFTTOP, ALIGN_RIGHTBOTTOM, fill, horizontal, HORIZONTAL, majorAlignment, majorSpacing, minorAlignment, minorSpacing, transposer, VERTICAL
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
ColumnsLayout()
          Constructs a new layout
 
Method Summary
protected  org.eclipse.draw2d.geometry.Dimension getChildSize(org.eclipse.draw2d.IFigure child, int wHint, int hHint)
           
 void invalidate()
           
 void setDefaultConstraint(org.eclipse.draw2d.geometry.Dimension d)
          For use by the palette
 
Methods inherited from class org.eclipse.draw2d.FlowLayout
calculatePreferredSize, getMajorAlignment, getMajorSpacing, getMinorAlignment, getMinorSpacing, isHorizontal, isSensitiveHorizontally, isSensitiveVertically, layout, layoutRow, setBoundsOfChild, setHorizontal, setMajorAlignment, setMajorSpacing, setMinorAlignment, setMinorSpacing, setStretchMinorAxis
 
Methods inherited from class org.eclipse.draw2d.AbstractHintLayout
calculateMinimumSize, getMinimumSize, getPreferredSize
 
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

ColumnsLayout

public ColumnsLayout()
Constructs a new layout

Method Detail

getChildSize

protected org.eclipse.draw2d.geometry.Dimension getChildSize(org.eclipse.draw2d.IFigure child,
                                                             int wHint,
                                                             int hHint)
See Also:
org.eclipse.draw2d.FlowLayout#getChildPreferredSize(IFigure, int, int)

invalidate

public void invalidate()
See Also:
AbstractHintLayout.invalidate()

setDefaultConstraint

public void setDefaultConstraint(org.eclipse.draw2d.geometry.Dimension d)
For use by the palette

Parameters:
d - The constraints to be respected by the children of the figure that has this layout; Should not be null.