com.jaxfront.swing.ui.layout
Class PercentLayout
java.lang.Object
com.jaxfront.swing.ui.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.
- Version:
- 1.60
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final int NONE
- See Also:
- Constant Field Values
HORIZONTAL
public static final int HORIZONTAL
- See Also:
- Constant Field Values
VERTICAL
public static final int VERTICAL
- See Also:
- Constant Field Values
BOTH
public static final int BOTH
- See Also:
- Constant Field Values
DEBUG
public boolean DEBUG
PercentLayout
public PercentLayout()
PercentLayout
public PercentLayout(int orientation)
PercentLayout
public PercentLayout(int orientation,
int space)
addLayoutComponent
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager2
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager
getLayoutAlignmentX
public float getLayoutAlignmentX(java.awt.Container target)
- Specified by:
getLayoutAlignmentX
in interface java.awt.LayoutManager2
getLayoutAlignmentY
public float getLayoutAlignmentY(java.awt.Container target)
- Specified by:
getLayoutAlignmentY
in interface java.awt.LayoutManager2
invalidateLayout
public void invalidateLayout(java.awt.Container target)
- Specified by:
invalidateLayout
in interface java.awt.LayoutManager2
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Specified by:
layoutContainer
in interface java.awt.LayoutManager
maximumLayoutSize
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
- Specified by:
maximumLayoutSize
in interface java.awt.LayoutManager2
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Specified by:
minimumLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Specified by:
preferredLayoutSize
in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component component)
- Specified by:
removeLayoutComponent
in interface java.awt.LayoutManager
setDefaultSpacing
public void setDefaultSpacing(int space)
setOrientation
public void setOrientation(int orient)