|
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(Component component,
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(String name,
Component comp)
Do not use. |
float |
getLayoutAlignmentX(Container target)
Returns 0.5. |
float |
getLayoutAlignmentY(Container target)
Return 0. |
void |
invalidateLayout(Container target)
Invalidates layout. |
void |
layoutContainer(Container parent)
Layouts the container. |
Dimension |
maximumLayoutSize(Container parent)
Returns the largest maximum width of the components managed by this layout manager, and the sum of their maximum heights. |
Dimension |
minimumLayoutSize(Container parent)
Returns the largest minimum width of the components managed by this layout manager, and the sum of their minimum heights. |
Dimension |
preferredLayoutSize(Container parent)
Returns the largest preferred width of the components managed by this layout manager, and the sum of their preferred heights. |
void |
removeLayoutComponent(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(Component component,
Object constraints)
component in this layout manager as the component at
Constraints.TOP or at Constraints.BOTTOM of its container.
addLayoutComponent in interface LayoutManager2
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component component)
component from the ones managed by this layout manager.
removeLayoutComponent in interface LayoutManagerpublic float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic Dimension maximumLayoutSize(Container parent)
maximumLayoutSize in interface LayoutManager2public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface 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 |