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.
-
CenteredVListLayout()
-
-
CenteredVListLayout(int)
-
-
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.
-
preferredLayoutRectangle(CompositeFigure)
- Calculates the minimum size display box for the specified container
at its current location.
CenteredVListLayout
public CenteredVListLayout()
CenteredVListLayout
public CenteredVListLayout(int hgap)
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
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
layoutContainer
public void layoutContainer(CompositeFigure container)
- The bag layout algorithm.
- Overrides:
- layoutContainer in class VListLayout
All Packages Class Hierarchy This Package Previous Next Index