yu.ac.bg.etf.javaqx.qswing.layouts
Interface LayoutManager

All Known Implementing Classes:
BorderLayout, FlowLayout, FormLayout, GridLayout

public interface LayoutManager

Layout Manager.

NOTE: This class is not full compatible with java.awt.LayoutManager class!

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
 void addLayoutComponent(JQComponent component, java.lang.Object constraints)
          Adds the specified component to the layout.
 void invalidateLayout(JQContainer target)
          Invalidates the layout.
 void layoutContainer(JQContainer target)
          Lays out the specified container.
 Dimension maximumLayoutSize(JQContainer target)
          Calculates the maximum size dimensions for the specified container.
 Dimension minimumLayoutSize(JQContainer target)
          Calculates the minimum size dimensions for the specified containers.
 Dimension preferredLayoutSize(JQContainer target)
          Calculates the preferred size dimensions for the specified container.
 void removeLayoutComponent(JQComponent component)
          Removes the specified component from the layout.
 

Method Detail

addLayoutComponent

public void addLayoutComponent(JQComponent component,
                               java.lang.Object constraints)
Adds the specified component to the layout.

Parameters:
component - the component to be added
constraints - the layout constraints

removeLayoutComponent

public void removeLayoutComponent(JQComponent component)
Removes the specified component from the layout.

Parameters:
component - the component to be removed

preferredLayoutSize

public Dimension preferredLayoutSize(JQContainer target)
Calculates the preferred size dimensions for the specified container.

Parameters:
target - the container to be laid out
Returns:
the preferred size of the specified container

maximumLayoutSize

public Dimension maximumLayoutSize(JQContainer target)
Calculates the maximum size dimensions for the specified container.

Parameters:
target - the component to be laid out
Returns:
the maximum size of the specified container

minimumLayoutSize

public Dimension minimumLayoutSize(JQContainer target)
Calculates the minimum size dimensions for the specified containers.

Parameters:
target - the component to be laid out
Returns:
the minimum size of the specified container

layoutContainer

public void layoutContainer(JQContainer target)
Lays out the specified container.

Parameters:
target - the container to be laid out

invalidateLayout

public void invalidateLayout(JQContainer target)
Invalidates the layout.

Parameters:
target - the container to be laid out


Copyright © 2007 ETF and contributors. All Rights Reserved.