<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Interface java.awt.LayoutManager2
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.LayoutManager.html#_top_">Previous</a>  <a href="java.awt.MenuContainer.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.awt.LayoutManager2
</h1>
<dl>
  <dt> public interface <b>LayoutManager2</b>
  <dt> extends <a href="java.awt.LayoutManager.html#_top_">LayoutManager</a>
</dl>
Defines an interface for classes that know how to layout Containers
 based on a layout constraints object.
 This interface extends the LayoutManager interface to deal with layouts
 explicitly in terms of constraint objects that specify how and where
 components should be added to the layout.
 <p>
 This minimal extension to LayoutManager is intended for tool
 providers who wish to the creation of constraint-based layouts.
 It does not yet provide full, general support for custom
 constraint-based layout managers.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.LayoutManager.html#_top_">LayoutManager</a>, <a href="java.awt.Container.html#_top_">Container</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addLayoutComponent(java.awt.Component, java.lang.Object)"><b>addLayoutComponent</b></a>(Component, Object)
  <dd>  Adds the specified component to the layout, using the specified
 constraint object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLayoutAlignmentX(java.awt.Container)"><b>getLayoutAlignmentX</b></a>(Container)
  <dd>  Returns the alignment along the x axis.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLayoutAlignmentY(java.awt.Container)"><b>getLayoutAlignmentY</b></a>(Container)
  <dd>  Returns the alignment along the y axis.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#invalidateLayout(java.awt.Container)"><b>invalidateLayout</b></a>(Container)
  <dd>  Invalidates the layout, indicating that if the layout manager
 has cached information it should be discarded.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#maximumLayoutSize(java.awt.Container)"><b>maximumLayoutSize</b></a>(Container)
  <dd> 
 Returns the maximum size of this component.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="addLayoutComponent(java.awt.Component, java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addLayoutComponent"><b>addLayoutComponent</b></a>
<pre>
 public abstract void addLayoutComponent(<a href="java.awt.Component.html#_top_">Component</a> comp,
                                         <a href="java.lang.Object.html#_top_">Object</a> constraints)
</pre>
<dl>
  <dd> Adds the specified component to the layout, using the specified
 constraint object.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> comp - the component to be added
    <dd> constraints - where/how the component is added to the layout.
  </dl></dd>
</dl>
<a name="maximumLayoutSize(java.awt.Container)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="maximumLayoutSize"><b>maximumLayoutSize</b></a>
<pre>
 public abstract <a href="java.awt.Dimension.html#_top_">Dimension</a> maximumLayoutSize(<a href="java.awt.Container.html#_top_">Container</a> target)
</pre>
<dl>
  <dd> Returns the maximum size of this component.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.Component.html#getMinimumSize()">getMinimumSize</a>, <a href="java.awt.Component.html#getPreferredSize()">getPreferredSize</a>, <a href="java.awt.LayoutManager.html#_top_">LayoutManager</a>
  </dl></dd>
</dl>
<a name="getLayoutAlignmentX(java.awt.Container)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLayoutAlignmentX"><b>getLayoutAlignmentX</b></a>
<pre>
 public abstract float getLayoutAlignmentX(<a href="java.awt.Container.html#_top_">Container</a> target)
</pre>
<dl>
  <dd> Returns the alignment along the x axis.  This specifies how
 the component would like to be aligned relative to other 
 components.  The value should be a number between 0 and 1
 where 0 represents alignment along the origin, 1 is aligned
 the furthest away from the origin, 0.5 is centered, etc.
<p>
</dl>
<a name="getLayoutAlignmentY(java.awt.Container)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLayoutAlignmentY"><b>getLayoutAlignmentY</b></a>
<pre>
 public abstract float getLayoutAlignmentY(<a href="java.awt.Container.html#_top_">Container</a> target)
</pre>
<dl>
  <dd> Returns the alignment along the y axis.  This specifies how
 the component would like to be aligned relative to other 
 components.  The value should be a number between 0 and 1
 where 0 represents alignment along the origin, 1 is aligned
 the furthest away from the origin, 0.5 is centered, etc.
<p>
</dl>
<a name="invalidateLayout(java.awt.Container)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="invalidateLayout"><b>invalidateLayout</b></a>
<pre>
 public abstract void invalidateLayout(<a href="java.awt.Container.html#_top_">Container</a> target)
</pre>
<dl>
  <dd> Invalidates the layout, indicating that if the layout manager
 has cached information it should be discarded.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.LayoutManager.html#_top_">Previous</a>  <a href="java.awt.MenuContainer.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
