|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.fsa.swing.OvalLayout
Layouts the components line by line in such a style that the components will fit into an OvalBorder that may be put around the container.
The insets of the OvalBorder that encloses the component directly (i.e. the OvalBorder is the inner border of a CompoundBorder or the OvalBorder is used alone) are ignored.
This LayoutManager tries to optimize the horizontal size of the oval by shifting the components vertically.
Constructor Summary | |
OvalLayout()
Creates an OvalLayout with default settings. |
|
OvalLayout(int verticalGap,
int borderGap,
int verticalBorderGap)
Creates an OvalLayout with the given vgap . |
Method Summary | |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds a component to the layout. |
static java.awt.Insets |
getInsetsTilBorder(javax.swing.JComponent c,
javax.swing.border.Border stopBorder)
Calculates the insets of this container til the given oval border. |
static java.awt.Insets |
getInsetsWithoutOval(java.awt.Container container)
Calculates the insets of this container, but ignores the insets of an directly enclosing OvalBorder, if it exists. |
void |
layoutContainer(java.awt.Container container)
Lay outs the components in the container that they fit into an oval that the container can contain ... |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container container)
Returns the minimum size that the container may use. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container container)
Returns the preferred size of this layout. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes a component from the layout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OvalLayout()
public OvalLayout(int verticalGap, int borderGap, int verticalBorderGap)
vgap
.
verticalGap
- the vertical spacing between the componentsborderGap
- The spacing between the components and the border of the ovalverticalBorderGap
- No description providedMethod Detail |
public void layoutContainer(java.awt.Container container)
layoutContainer
in interface java.awt.LayoutManager
container
- No description providedpublic java.awt.Dimension minimumLayoutSize(java.awt.Container container)
minimumLayoutSize
in interface java.awt.LayoutManager
container
- No description provided
public java.awt.Dimension preferredLayoutSize(java.awt.Container container)
preferredLayoutSize
in interface java.awt.LayoutManager
container
- No description provided
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
name
- The object added.comp
- The object added.public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- No description providedpublic static java.awt.Insets getInsetsWithoutOval(java.awt.Container container)
container
- the container to calculate the insets for.
public static java.awt.Insets getInsetsTilBorder(javax.swing.JComponent c, javax.swing.border.Border stopBorder)
c
- the component the border belongs tostopBorder
- No description provided
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |