All Packages Class Hierarchy This Package Previous Next Index
Interface CH.ifa.draw.framework.DrawLayoutManager
- public interface DrawLayoutManager
Interface for layout managers. Layout managers encapsulate a strategy
for laying out containers (CompositeFigures).
-
addLayoutComponent(Figure)
- Adds a component (figure) to the layout.
-
invalidateLayout()
- Invalidates the layout.
-
invalidateLayout(Figure)
- Invalidates the layout.
-
layoutContainer(CompositeFigure)
- Lays out the specified container.
-
minimumLayoutRectangle(CompositeFigure)
- Calculates the minimum size display box for the specified container
at its current location.
-
minimumLayoutSize(CompositeFigure)
- Calculates the minimum size dimensions for the specified container.
-
overlayMinimumRectangle(CompositeFigure, Rectangle)
- Translates the rectangle defining the minimum size of the container
according to the layout strategy.
-
preferredLayoutRectangle(CompositeFigure)
- Calculates the preferred size display box for the specified container
at its current location.
-
preferredLayoutSize(CompositeFigure)
- Calculates the preferred size dimensions for the specified container.
-
removeLayoutComponent(Figure)
- Removes a component (figure) from the layout.
-
replaceLayoutComponent(Figure, Figure)
- Replaces a component in the layout.
layoutContainer
public abstract void layoutContainer(CompositeFigure container)
- Lays out the specified container.
invalidateLayout
public abstract void invalidateLayout()
- Invalidates the layout. Makes the layout manager to discard all
cached information.
invalidateLayout
public abstract void invalidateLayout(Figure component)
- Invalidates the layout. Makes the layout manager to discard all
cached information. Indicates the component that has caused the
layout to become invalid.
minimumLayoutSize
public abstract Dimension minimumLayoutSize(CompositeFigure container)
- Calculates the minimum size dimensions for the specified container.
minimumLayoutRectangle
public abstract Rectangle minimumLayoutRectangle(CompositeFigure container)
- Calculates the minimum size display box for the specified container
at its current location.
overlayMinimumRectangle
public abstract void overlayMinimumRectangle(CompositeFigure container,
Rectangle minimum)
- Translates the rectangle defining the minimum size of the container
according to the layout strategy. This way layout managers can specify
how containers behave when resized by dragging their handles.
preferredLayoutSize
public abstract Dimension preferredLayoutSize(CompositeFigure container)
- Calculates the preferred size dimensions for the specified container.
preferredLayoutRectangle
public abstract Rectangle preferredLayoutRectangle(CompositeFigure container)
- Calculates the preferred size display box for the specified container
at its current location.
addLayoutComponent
public abstract void addLayoutComponent(Figure component)
- Adds a component (figure) to the layout.
removeLayoutComponent
public abstract void removeLayoutComponent(Figure component)
- Removes a component (figure) from the layout.
replaceLayoutComponent
public abstract void replaceLayoutComponent(Figure component,
Figure replacement)
- Replaces a component in the layout.
All Packages Class Hierarchy This Package Previous Next Index