|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.freehep.swing.layout.StackedLayout
public class StackedLayout
This layout manager places all of the components the same size and places them at the same position. This is an appropriate layout manager for a JLayeredPane.
| Constructor Summary | |
|---|---|
StackedLayout()
Create a new StackedLayout manager. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
protected Dimension |
getLayoutSize(Container parent,
boolean isPreferred)
Scan the list of components and pick out the largest width and height. |
void |
layoutContainer(Container parent)
Lays out the components in the specified container. |
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container. |
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackedLayout()
| Method Detail |
|---|
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagername - the name of the componentcomp - the component to addpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component to be removedpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerparent - the component to be laid outminimumLayoutSize(java.awt.Container)public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerparent - the component to be laid outpreferredLayoutSize(java.awt.Container)
protected Dimension getLayoutSize(Container parent,
boolean isPreferred)
parent - the container in which to do the layout.isPreferred - true for calculating preferred size,
false for calculating minimum size.
public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerparent - the component which needs to be laid out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||