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.
-
BagFlowLayout()
-
-
getBottomElementAligner(CompositeFigure, Figure, Figure)
- Returns a NullAligner.
-
getMiddleElementAligner(CompositeFigure, Figure, Figure)
- Returns a NullAligner.
-
getTopElementAligner(CompositeFigure, Figure)
- Returns a NullAligner.
-
invalidateLayout(Figure)
- Force rearrangement.
-
layoutContainer(CompositeFigure)
- The bag layout algorithm.
-
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.
-
minimumLayoutSize(CompositeFigure)
- Calculates the minimum size dimensions for the specified container.
-
overlayMinimumRectangle(CompositeFigure, Rectangle)
- If the container is empty, positions the minimum size rectangle
flush to the edge or corner furthest away from the manipulator.
-
preferredLayoutRectangle(CompositeFigure)
- Calculates the minimum size display box for the specified container
at its current location.
-
preferredLayoutSize(CompositeFigure)
- Calculates the preferred size dimensions for the specified container.
BagFlowLayout
public BagFlowLayout()
getTopElementAligner
protected Aligner getTopElementAligner(CompositeFigure container,
Figure component)
- Returns a NullAligner.
- Overrides:
- getTopElementAligner in class AbstractFlowLayout
getMiddleElementAligner
protected Aligner getMiddleElementAligner(CompositeFigure container,
Figure component,
Figure previous)
- Returns a NullAligner.
- Overrides:
- getMiddleElementAligner in class AbstractFlowLayout
getBottomElementAligner
protected Aligner getBottomElementAligner(CompositeFigure container,
Figure component,
Figure previous)
- Returns a NullAligner.
- Overrides:
- getBottomElementAligner in class AbstractFlowLayout
invalidateLayout
public void invalidateLayout(Figure component)
- Force rearrangement. Moves the component 'in'.
- Overrides:
- invalidateLayout in class AbstractFlowLayout
preferredLayoutSize
public Dimension preferredLayoutSize(CompositeFigure container)
- Calculates the preferred size dimensions for the specified container.
- Overrides:
- preferredLayoutSize in class AbstractFlowLayout
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
minimumLayoutSize
public Dimension minimumLayoutSize(CompositeFigure container)
- Calculates the minimum size dimensions for the specified container.
- Overrides:
- minimumLayoutSize in class AbstractFlowLayout
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
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
layoutContainer
public void layoutContainer(CompositeFigure container)
- The bag layout algorithm.
- Overrides:
- layoutContainer in class AbstractFlowLayout
All Packages Class Hierarchy This Package Previous Next Index