|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.layout.VerticalLayout
public class VerticalLayout
Constructor Summary | |
---|---|
VerticalLayout()
|
|
VerticalLayout(int margin,
int spacing)
|
Method Summary | |
---|---|
void |
addLayoutComponent(Component component,
Object constraint)
Adds the specified component with the specified name to the layout. |
void |
addLayoutComponent(String name,
Component component)
Adds the specified component with the specified name to the layout. |
float |
getLayoutAlignmentX(Container parent)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(Container parent)
Returns the alignment along the y axis. |
int |
getMargin()
|
int |
getNumRows()
|
double |
getRow(int row)
|
int |
getSpacing()
|
void |
invalidateLayout(Container target)
Invalidates the layout. |
void |
layoutContainer(Container container)
To lay out the specified container using this layout. |
Dimension |
maximumLayoutSize(Container component)
Returns the maximum dimensions for this layout given the components in the specified target container. |
Dimension |
minimumLayoutSize(Container container)
Determines the minimum size of the container argument using this layout. |
Dimension |
preferredLayoutSize(Container container)
Determines the preferred size of the container argument using this layout. |
void |
removeLayoutComponent(Component component)
Removes the specified component from the layout. |
void |
setMargin(int margin)
Set margin. |
void |
setRow(int row,
double size)
|
void |
setSpacing(int spacing)
Set spacing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerticalLayout()
public VerticalLayout(int margin, int spacing)
Method Detail |
---|
public void setRow(int row, double size)
public double getRow(int row)
public int getNumRows()
public void layoutContainer(Container container)
User code should not have to call this method directly.
layoutContainer
in interface LayoutManager
container
- container being served by this layout managerpublic Dimension preferredLayoutSize(Container container)
preferredLayoutSize
in interface LayoutManager
container
- container being served by this layout manager
public Dimension minimumLayoutSize(Container container)
minimumLayoutSize
in interface LayoutManager
container
- container being served by this layout manager
public void addLayoutComponent(String name, Component component)
addLayoutComponent
in interface LayoutManager
name
- indicates entry's position and anchorcomponent
- component to addpublic void addLayoutComponent(Component component, Object constraint)
addLayoutComponent
in interface LayoutManager2
component
- component to addconstraint
- indicates entry's position and alignmentpublic void removeLayoutComponent(Component component)
removeLayoutComponent
in interface LayoutManager
component
- component being removedpublic Dimension maximumLayoutSize(Container component)
maximumLayoutSize
in interface LayoutManager2
component
- the component which needs to be laid outpublic float getLayoutAlignmentX(Container parent)
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container parent)
getLayoutAlignmentY
in interface LayoutManager2
public void invalidateLayout(Container target)
invalidateLayout
in interface LayoutManager2
public void setMargin(int margin)
public void setSpacing(int spacing)
public int getSpacing()
public int getMargin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |