net.sf.doolin.gui.layout
Class SingleLayoutService

java.lang.Object
  extended by 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

Constructor Summary
SingleLayoutService()
           
 
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
 

Constructor Detail

SingleLayoutService

public SingleLayoutService()
Method Detail

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 - Container
component - Component to add
constraint - 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.