|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.layouts.VerticalFlowLayout
public class VerticalFlowLayout
Constructor Summary | |
---|---|
VerticalFlowLayout()
|
|
VerticalFlowLayout(int horizontalGapBetweenComponents,
int verticalGapBetweenComponents)
|
Method Summary | |
---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component to the layout. |
protected void |
debug(java.lang.String out)
|
boolean |
getDebug()
|
java.lang.String |
getDebugPretext()
|
int |
getHgap()
Gets the horizontal gap between components. |
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. |
int |
getVgap()
Gets the vertical gap between components. |
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 target)
Lays out the container. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Returns the maximum size of this component. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout given the components in the specified target container. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
void |
setDebug(boolean b)
|
void |
setDebugPretext(java.lang.String string)
|
void |
setHgap(int hgap)
Sets the horizontal gap between components. |
void |
setVgap(int vgap)
Sets the vertical gap between components. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerticalFlowLayout()
public VerticalFlowLayout(int horizontalGapBetweenComponents, int verticalGapBetweenComponents)
Method Detail |
---|
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
name
- the name of the componentcomp
- the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component to removeContainer.removeAll()
public int getHgap()
setHgap
public void setHgap(int hgap)
hgap
- the horizontal gap between componentsgetHgap
public int getVgap()
setVgap
public void setVgap(int vgap)
vgap
- the vertical gap between componentsgetVgap
public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
target
- the component which needs to be laid out
Container
,
minimumLayoutSize(java.awt.Container)
,
Container.getPreferredSize()
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
target
- the component which needs to be laid out
preferredLayoutSize(java.awt.Container)
,
Container
,
Container.doLayout()
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
Component.getMinimumSize()
,
Component.getPreferredSize()
,
LayoutManager
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
public void layoutContainer(java.awt.Container target)
SmartFlowLayout
object.
This code bears a surprising similarity to FlowLayout
layoutContainer
in interface java.awt.LayoutManager
target
- the specified component being laid out.Container
,
Container.doLayout()
public boolean getDebug()
public void setDebug(boolean b)
b
- protected void debug(java.lang.String out)
public java.lang.String getDebugPretext()
public void setDebugPretext(java.lang.String string)
string
- public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |