|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vlsolutions.swing.toolbars.VLToolBarLayout
public class VLToolBarLayout
The layout for VLToolBar (supports horizontal and vertical orientation).
When used in horizontal orientation, this layout respects the preferred width of the contained components, and forces the height to the maximum of all the preferred heights. (so components are vertically streched to have the same height).
When used in vertical orientation, this layout respects the preferred height of the contained components, and forces the width to the maximum of all the preferred widths. (so components are horizontally streched to have the same width).
| Constructor Summary | |
|---|---|
VLToolBarLayout()
|
|
VLToolBarLayout(boolean isHorizontal)
Constructs a new Layout. |
|
VLToolBarLayout(boolean isHorizontal,
int gap)
Constructs a new Layout. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
|
void |
addLayoutComponent(String name,
Component comp)
|
float |
getLayoutAlignmentX(Container target)
|
float |
getLayoutAlignmentY(Container target)
|
void |
invalidateLayout(Container target)
|
void |
layoutContainer(Container target)
overridden to adjust position (x(top) = width(left), y(left) = height(top) |
Dimension |
maximumLayoutSize(Container target)
|
Dimension |
minimumLayoutSize(Container parent)
|
Dimension |
preferredLayoutSize(Container parent)
|
void |
removeLayoutComponent(Component comp)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VLToolBarLayout()
public VLToolBarLayout(boolean isHorizontal)
isHorizontal - indicates if the layout will be horizontal or vertical.
public VLToolBarLayout(boolean isHorizontal,
int gap)
isHorizontal - indicates if the layout will be horizontal or vertical.gap - gap in pixels between components| Method Detail |
|---|
public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2public Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2
public void addLayoutComponent(Component comp,
Object constraints)
addLayoutComponent in interface LayoutManager2public void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManager
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic void layoutContainer(Container target)
layoutContainer in interface LayoutManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||