net.sf.doolin.gui.layout
Class SingleLayoutService
java.lang.Object
net.sf.doolin.gui.layout.SingleLayoutService
- All Implemented Interfaces:
- LayoutService
public class SingleLayoutService
- extends Object
- implements LayoutService
This layout service accepts one and only one component that fills the whole
container.
- Author:
- Damien Coraboeuf
|
Method Summary |
void |
add(JPanel panel,
JComponent component,
Object constraint)
Adds a component to a panel using the given
constraint. |
void |
init(JPanel panel)
Initializes a panel for layout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleLayoutService
public SingleLayoutService()
add
public void add(JPanel panel,
JComponent component,
Object constraint)
- Description copied from interface:
LayoutService
- Adds a
component to a panel using the given
constraint.
- Specified by:
add in interface LayoutService
- Parameters:
panel - Containercomponent - Component to addconstraint - Constraint for the position
init
public void init(JPanel panel)
- Description copied from interface:
LayoutService
- Initializes a panel for layout
- Specified by:
init in interface LayoutService
- Parameters:
panel - Panel to initialize.
Copyright © 2011. All Rights Reserved.