All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.contrib.xcomp.BagFlowLayout

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

public class BagFlowLayout
extends AbstractFlowLayout
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 BagFlowLayout()

Method Index

 o getBottomElementAligner(CompositeFigure, Figure, Figure)
Returns a NullAligner.
 o getMiddleElementAligner(CompositeFigure, Figure, Figure)
Returns a NullAligner.
 o getTopElementAligner(CompositeFigure, Figure)
Returns a NullAligner.
 o invalidateLayout(Figure)
Force rearrangement.
 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 minimumLayoutSize(CompositeFigure)
Calculates the minimum size dimensions for the specified container.
 o overlayMinimumRectangle(CompositeFigure, Rectangle)
If the container is empty, positions the minimum size rectangle flush to the edge or corner furthest away from the manipulator.
 o preferredLayoutRectangle(CompositeFigure)
Calculates the minimum size display box for the specified container at its current location.
 o preferredLayoutSize(CompositeFigure)
Calculates the preferred size dimensions for the specified container.

Constructors

 o BagFlowLayout
 public BagFlowLayout()

Methods

 o getTopElementAligner
 protected Aligner getTopElementAligner(CompositeFigure container,
                                        Figure component)
Returns a NullAligner.

Overrides:
getTopElementAligner in class AbstractFlowLayout
 o getMiddleElementAligner
 protected Aligner getMiddleElementAligner(CompositeFigure container,
                                           Figure component,
                                           Figure previous)
Returns a NullAligner.

Overrides:
getMiddleElementAligner in class AbstractFlowLayout
 o getBottomElementAligner
 protected Aligner getBottomElementAligner(CompositeFigure container,
                                           Figure component,
                                           Figure previous)
Returns a NullAligner.

Overrides:
getBottomElementAligner in class AbstractFlowLayout
 o invalidateLayout
 public void invalidateLayout(Figure component)
Force rearrangement. Moves the component 'in'.

Overrides:
invalidateLayout in class AbstractFlowLayout
 o preferredLayoutSize
 public Dimension preferredLayoutSize(CompositeFigure container)
Calculates the preferred size dimensions for the specified container.

Overrides:
preferredLayoutSize in class AbstractFlowLayout
 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 BagLayout
 o minimumLayoutSize
 public Dimension minimumLayoutSize(CompositeFigure container)
Calculates the minimum size dimensions for the specified container.

Overrides:
minimumLayoutSize in class AbstractFlowLayout
 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 BagLayout
 o overlayMinimumRectangle
 public void overlayMinimumRectangle(CompositeFigure container,
                                     Rectangle minimum)
If the container is empty, positions the minimum size rectangle flush to the edge or corner furthest away from the manipulator.

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

Overrides:
layoutContainer in class AbstractFlowLayout

All Packages  Class Hierarchy  This Package  Previous  Next  Index