Modelers

org.topcased.draw2d.layout
Class RegionLayout

java.lang.Object
  extended by org.eclipse.draw2d.AbstractLayout
      extended by org.eclipse.draw2d.AbstractHintLayout
          extended by org.eclipse.draw2d.ToolbarLayout
              extended by org.topcased.draw2d.layout.RegionLayout
All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager

public class RegionLayout
extends org.eclipse.draw2d.ToolbarLayout

The RegionLayout behaves like the ToolbarLayout. Its characteristics are that all the children completely covered the parent Figure and they all have the same dimensions. This layout can be displayed horizontally or vertically. Creation 21 juin 06


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
RegionLayout()
          The constructor.
RegionLayout(boolean isHorizontal)
          Constructs a RegionLayout with a specified orientation.
 
Method Summary
 void layout(org.eclipse.draw2d.IFigure parent)
           
 
Methods inherited from class org.eclipse.draw2d.ToolbarLayout
calculateMinimumSize, calculatePreferredSize, getChildMinimumSize, getChildPreferredSize, 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

RegionLayout

public RegionLayout()
The constructor.


RegionLayout

public RegionLayout(boolean isHorizontal)
Constructs a RegionLayout with a specified orientation.

Parameters:
isHorizontal - whether the children are oriented horizontally
Method Detail

layout

public void layout(org.eclipse.draw2d.IFigure parent)
Specified by:
layout in interface org.eclipse.draw2d.LayoutManager
Overrides:
layout in class org.eclipse.draw2d.ToolbarLayout
See Also:
ToolbarLayout.layout(org.eclipse.draw2d.IFigure)

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.