All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.contrib.xcomp.CenteredVListLayout

CH.ifa.draw.contrib.xcomp.BagLayout
   |
   +----CH.ifa.draw.contrib.xcomp.AbstractFlowLayout
           |
           +----CH.ifa.draw.contrib.xcomp.BagFlowLayout
                   |
                   +----CH.ifa.draw.contrib.xcomp.BagFlowLayout2
                           |
                           +----CH.ifa.draw.contrib.xcomp.VListLayout
                                   |
                                   +----CH.ifa.draw.contrib.xcomp.CenteredVListLayout

public class CenteredVListLayout
extends VListLayout
The basic implementation for list-like layout strategies. Like BagLayout this layout manager positions the contained figures 'as they were'. That is, no positioning is performed. This is an example implementation that shows how the mechanisms of super classes are used to create specialized layout managers.


Constructor Index

 o CenteredVListLayout()
 o CenteredVListLayout(int)

Method Index

 o layoutContainer(CompositeFigure)
The bag layout algorithm.
 o minimumLayoutRectangle(CompositeFigure)
For bag layout, the minimum display box is the box that contains all components at their preferred sizes with the insets of the container.
 o preferredLayoutRectangle(CompositeFigure)
Calculates the minimum size display box for the specified container at its current location.

Constructors

 o CenteredVListLayout
 public CenteredVListLayout()
 o CenteredVListLayout
 public CenteredVListLayout(int hgap)

Methods

 o preferredLayoutRectangle
 public Rectangle preferredLayoutRectangle(CompositeFigure container)
Calculates the minimum size display box for the specified container at its current location.

Overrides:
preferredLayoutRectangle in class VListLayout
 o minimumLayoutRectangle
 public Rectangle minimumLayoutRectangle(CompositeFigure container)
For bag layout, the minimum display box is the box that contains all components at their preferred sizes with the insets of the container.

Overrides:
minimumLayoutRectangle in class VListLayout
 o layoutContainer
 public void layoutContainer(CompositeFigure container)
The bag layout algorithm.

Overrides:
layoutContainer in class VListLayout

All Packages  Class Hierarchy  This Package  Previous  Next  Index