org.comedia.layout
Class CCentralLayout
java.lang.Object
|
+--org.comedia.layout.CCentralLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.io.Serializable
- public class CCentralLayout
- extends java.lang.Object
- implements java.awt.LayoutManager, java.io.Serializable
Implements a simple layout manager which place all controls at the
center of the container one by one.
- See Also:
- Serialized Form
Constructor Summary |
CCentralLayout()
Constructs this layout manager with default properties. |
Method Summary |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component component)
Adds a new component to this layout. |
void |
layoutContainer(java.awt.Container parent)
Performs a layout of current component in the container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Gets a minimum component size for this layout. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Gets a preferred component size for this layout. |
void |
removeLayoutComponent(java.awt.Component component)
Removes a component from this layout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CCentralLayout
public CCentralLayout()
- Constructs this layout manager with default properties.
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component component)
- Adds a new component to this layout.
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager
- Parameters:
component
- an added component object.
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component component)
- Removes a component from this layout.
- Specified by:
removeLayoutComponent
in interface java.awt.LayoutManager
- Parameters:
component
- a deleted component object.
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Gets a preferred component size for this layout.
- Specified by:
preferredLayoutSize
in interface java.awt.LayoutManager
- Parameters:
container
- a components container.
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Gets a minimum component size for this layout.
- Specified by:
minimumLayoutSize
in interface java.awt.LayoutManager
- Parameters:
container
- a components container.
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Performs a layout of current component in the container.
- Specified by:
layoutContainer
in interface java.awt.LayoutManager
- Parameters:
parent
- a components container to perform a layout.