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).


Method Index

 o addLayoutComponent(Figure)
Adds a component (figure) to the layout.
 o invalidateLayout()
Invalidates the layout.
 o invalidateLayout(Figure)
Invalidates the layout.
 o layoutContainer(CompositeFigure)
Lays out the specified container.
 o minimumLayoutRectangle(CompositeFigure)
Calculates the minimum size display box for the specified container at its current location.
 o minimumLayoutSize(CompositeFigure)
Calculates the minimum size dimensions for the specified container.
 o overlayMinimumRectangle(CompositeFigure, Rectangle)
Translates the rectangle defining the minimum size of the container according to the layout strategy.
 o preferredLayoutRectangle(CompositeFigure)
Calculates the preferred size display box for the specified container at its current location.
 o preferredLayoutSize(CompositeFigure)
Calculates the preferred size dimensions for the specified container.
 o removeLayoutComponent(Figure)
Removes a component (figure) from the layout.
 o replaceLayoutComponent(Figure, Figure)
Replaces a component in the layout.

Methods

 o layoutContainer
 public abstract void layoutContainer(CompositeFigure container)
Lays out the specified container.

 o invalidateLayout
 public abstract void invalidateLayout()
Invalidates the layout. Makes the layout manager to discard all cached information.

 o 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.

 o minimumLayoutSize
 public abstract Dimension minimumLayoutSize(CompositeFigure container)
Calculates the minimum size dimensions for the specified container.

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

 o 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.

 o preferredLayoutSize
 public abstract Dimension preferredLayoutSize(CompositeFigure container)
Calculates the preferred size dimensions for the specified container.

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

 o addLayoutComponent
 public abstract void addLayoutComponent(Figure component)
Adds a component (figure) to the layout.

 o removeLayoutComponent
 public abstract void removeLayoutComponent(Figure component)
Removes a component (figure) from the layout.

 o replaceLayoutComponent
 public abstract void replaceLayoutComponent(Figure component,
                                             Figure replacement)
Replaces a component in the layout.


All Packages  Class Hierarchy  This Package  Previous  Next  Index