|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.BorderLayout
net.wotonomy.ui.swing.components.BetterRootLayout
public class BetterRootLayout
A custom layout for a JRootPane that handles the the layout of a JRootPane's layeredPane, glassPane, and menuBar, and in addition handles four decorative components arranged in a border layout. Add the decorative components to the JRootPane using the directional constants; CENTER is reserved for the content pane and menu bar.
Field Summary |
---|
Fields inherited from class java.awt.BorderLayout |
---|
AFTER_LAST_LINE, AFTER_LINE_ENDS, BEFORE_FIRST_LINE, BEFORE_LINE_BEGINS, CENTER, EAST, LINE_END, LINE_START, NORTH, PAGE_END, PAGE_START, SOUTH, WEST |
Constructor Summary | |
---|---|
BetterRootLayout()
|
Method Summary | |
---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
Passes NORTH, SOUTH, EAST, WEST and CENTER to super implementation, and ignores all others. |
void |
layoutContainer(java.awt.Container parent)
Instructs the layout manager to perform the layout for the specified container. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Returns the maximum amount of space the layout can use. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the minimum amount of space the layout needs. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns the amount of space the layout would like to have. |
Methods inherited from class java.awt.BorderLayout |
---|
addLayoutComponent, getConstraints, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutComponent, getLayoutComponent, getVgap, invalidateLayout, removeLayoutComponent, setHgap, setVgap, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BetterRootLayout()
Method Detail |
---|
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class java.awt.BorderLayout
the
- Container for which this layout manager is being used
java.lang.ClassCastException
- if parent is not a JRootPanepublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class java.awt.BorderLayout
the
- Container for which this layout manager is being used
java.lang.ClassCastException
- if parent is not a JRootPanepublic java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
maximumLayoutSize
in class java.awt.BorderLayout
the
- Container for which this layout manager is being used
java.lang.ClassCastException
- if parent is not a JRootPanepublic void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class java.awt.BorderLayout
the
- Container for which this layout manager is being used
java.lang.ClassCastException
- if parent is not a JRootPanepublic void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
addLayoutComponent
in class java.awt.BorderLayout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |