|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.kosi.gui.util.CellLayout
A layout manager, very similar to GridBagLayout.
Field Summary | |
protected java.util.Hashtable |
hashtable
A hashtable for contraints objects. |
float |
horizontalAlignment
Not implemented yet. |
boolean |
maintainAspectRatio
Not implemented yet. |
float |
verticalAlignment
Not implemented yet. |
Constructor Summary | |
CellLayout()
Creates a new cell layout. |
Method Summary | |
void |
addLayoutComponent(java.awt.Component component,
java.lang.Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component component)
Adds the specified component with the specified name to the layout. |
protected java.awt.geom.Rectangle2D.Float |
getCellBounds(java.awt.Container container)
Gets the bounds of the cells of the given container. |
float |
getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis. |
java.awt.Dimension |
getMinimumCellSize(java.awt.Container container)
Gets the mimumum size of a cell for the given container. |
void |
invalidateLayout(java.awt.Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
layoutContainer(java.awt.Container container)
ays out the container in the specified panel. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container container)
Returns the maximum size of this component. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container container)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container container)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container. |
void |
removeLayoutComponent(java.awt.Component component)
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 |
Field Detail |
protected java.util.Hashtable hashtable
public boolean maintainAspectRatio
public float horizontalAlignment
public float verticalAlignment
Constructor Detail |
public CellLayout()
Method Detail |
public void addLayoutComponent(java.lang.String name, java.awt.Component component)
addLayoutComponent
in interface java.awt.LayoutManager
name
- the component namecomponent
- the component to be addedpublic void layoutContainer(java.awt.Container container)
layoutContainer
in interface java.awt.LayoutManager
container
- the component which needs to be laid out.public java.awt.Dimension minimumLayoutSize(java.awt.Container container)
minimumLayoutSize
in interface java.awt.LayoutManager
container
- the component to be laid outpublic java.awt.Dimension preferredLayoutSize(java.awt.Container container)
preferredLayoutSize
in interface java.awt.LayoutManager
container
- the component to be laid outpublic java.awt.Dimension maximumLayoutSize(java.awt.Container container)
maximumLayoutSize
in interface java.awt.LayoutManager2
container
- the container which needs to be laid out.public void removeLayoutComponent(java.awt.Component component)
removeLayoutComponent
in interface java.awt.LayoutManager
component
- the component to be removed.public void addLayoutComponent(java.awt.Component component, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
component
- the component to be addedconstraints
- where/how the component is added to the layout.public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
target
- the container whos layout alignment has to be retrieved.public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
target
- the container whos layout alignment has to be retrieved.public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
target
- the container of the components of which the information should be invalidated.protected java.awt.geom.Rectangle2D.Float getCellBounds(java.awt.Container container)
container
- the container to get the cell bounds of.public java.awt.Dimension getMinimumCellSize(java.awt.Container container)
container
- The container to get the minimum cell size for.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |