jas.util.layout
Class PercentLayout
java.lang.Object
|
+--jas.util.layout.PercentLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.awt.LayoutManager2
- public class PercentLayout
- extends java.lang.Object
- implements java.awt.LayoutManager2
Lays out components within a Container such that each component takes a fixed percentage of the size.
Each Component added to the Container must have a Constraint object that specifies what proportion
of the container it will fill. The Component will be stretched to fill exactly that percentage.
- See Also:
PercentLayout.Constraint
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PercentLayout
public PercentLayout()
addLayoutComponent
public void addLayoutComponent(java.awt.Component component,
java.lang.Object constraint)
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager2
addLayoutComponent
public void addLayoutComponent(java.lang.String constraint,
java.awt.Component comp)
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component component)
- Specified by:
removeLayoutComponent
in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container p1)
- Specified by:
preferredLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container p1)
- Specified by:
minimumLayoutSize
in interface java.awt.LayoutManager
maximumLayoutSize
public java.awt.Dimension maximumLayoutSize(java.awt.Container p1)
- Specified by:
maximumLayoutSize
in interface java.awt.LayoutManager2
layoutContainer
public void layoutContainer(java.awt.Container p1)
- Specified by:
layoutContainer
in interface java.awt.LayoutManager
invalidateLayout
public void invalidateLayout(java.awt.Container p1)
- Specified by:
invalidateLayout
in interface java.awt.LayoutManager2
getLayoutAlignmentY
public float getLayoutAlignmentY(java.awt.Container p1)
- Specified by:
getLayoutAlignmentY
in interface java.awt.LayoutManager2
getLayoutAlignmentX
public float getLayoutAlignmentX(java.awt.Container p1)
- Specified by:
getLayoutAlignmentX
in interface java.awt.LayoutManager2