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

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

public class PaletteToolbarLayout
extends org.eclipse.draw2d.ToolbarLayout

A ToolbarLayout-like layout for the palette. This layout is palette-specific and should not be used externally. This layout only works when vertically oriented.


Field Summary
 
Fields inherited from class org.eclipse.draw2d.ToolbarLayout
ALIGN_BOTTOMRIGHT, ALIGN_CENTER, ALIGN_TOPLEFT, horizontal, HORIZONTAL, matchWidth, minorAlignment, spacing, transposer, VERTICAL
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
PaletteToolbarLayout(org.eclipse.gef.internal.ui.palette.editparts.DrawerAnimationController controller)
          Constructor
 
Method Summary
protected  boolean isChildGrowing(org.eclipse.draw2d.IFigure child)
          A figure is growing if it's an expanded drawer.
 void layout(org.eclipse.draw2d.IFigure parent)
           
 
Methods inherited from class org.eclipse.draw2d.ToolbarLayout
calculateMinimumSize, calculatePreferredSize, getMinorAlignment, getSpacing, getStretchMinorAxis, isHorizontal, isSensitiveHorizontally, isSensitiveVertically, setMatchWidth, setMinorAlignment, setSpacing, setStretchMinorAxis, setVertical
 
Methods inherited from class org.eclipse.draw2d.AbstractHintLayout
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

PaletteToolbarLayout

public PaletteToolbarLayout(org.eclipse.gef.internal.ui.palette.editparts.DrawerAnimationController controller)
Constructor

Parameters:
controller - Can be null if no animation is desired
Method Detail

isChildGrowing

protected boolean isChildGrowing(org.eclipse.draw2d.IFigure child)
A figure is growing if it's an expanded drawer.

Parameters:
child - The figure that is to be marked as growing or non-growing
Returns:
true if the given child is considered growing

layout

public void layout(org.eclipse.draw2d.IFigure parent)
See Also:
ToolbarLayout.layout(org.eclipse.draw2d.IFigure)