|
||||||||||
| 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(java.awt.Component comp,
java.lang.Object constraints)
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
float |
getLayoutAlignmentX(java.awt.Container target)
|
float |
getLayoutAlignmentY(java.awt.Container target)
|
void |
invalidateLayout(java.awt.Container target)
|
void |
layoutContainer(java.awt.Container target)
overridden to adjust position (x(top) = width(left), y(left) = height(top) |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
removeLayoutComponent(java.awt.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(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2public void invalidateLayout(java.awt.Container target)
invalidateLayout in interface java.awt.LayoutManager2public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManager
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpublic void layoutContainer(java.awt.Container target)
layoutContainer in interface java.awt.LayoutManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||