|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.swing.ProportionalLayout
public class ProportionalLayout
A layout manager that displays two components at the top of each other. The component at top is sized at container width and at its preferred height. The component at bottom is centered in the rest of the space and sized proportionally to its preferred size.
Nested Class Summary | |
---|---|
static class |
ProportionalLayout.Constraints
The two locations where components managed by a ProportionalLayout instance can be placed. |
Constructor Summary | |
---|---|
ProportionalLayout()
Creates a layout manager which layouts its component with a default gap of 5 pixels between them. |
|
ProportionalLayout(int gap)
Creates a layout manager which layouts its component with a given gap between them. |
Method Summary | |
---|---|
void |
addLayoutComponent(java.awt.Component component,
java.lang.Object constraints)
Records a given component in this layout manager as the component at
Constraints.TOP or at Constraints.BOTTOM of its container. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Do not use. |
float |
getLayoutAlignmentX(java.awt.Container target)
Returns 0.5. |
float |
getLayoutAlignmentY(java.awt.Container target)
Return 0. |
void |
invalidateLayout(java.awt.Container target)
Invalidates layout. |
void |
layoutContainer(java.awt.Container parent)
Layouts the container. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container parent)
Returns the largest maximum width of the components managed by this layout manager, and the sum of their maximum heights. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the largest minimum width of the components managed by this layout manager, and the sum of their minimum heights. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns the largest preferred width of the components managed by this layout manager, and the sum of their preferred heights. |
void |
removeLayoutComponent(java.awt.Component component)
Removes the given component from the ones managed by this layout manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProportionalLayout()
public ProportionalLayout(int gap)
gap
between them.
Method Detail |
---|
public void addLayoutComponent(java.awt.Component component, java.lang.Object constraints)
component
in this layout manager as the component at
Constraints.TOP
or at Constraints.BOTTOM
of its container.
addLayoutComponent
in interface java.awt.LayoutManager2
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component component)
component
from the ones managed by this layout manager.
removeLayoutComponent
in interface java.awt.LayoutManager
public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
maximumLayoutSize
in interface java.awt.LayoutManager2
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |