com.vlsolutions.swing.toolbars

Class ToolBarPanelLayout

public class ToolBarPanelLayout extends Object implements LayoutManager2

The layout of a VLToolBarPanel

UNKNOWN: 2006/09/09 Support for LTR and RTL component orientation

Constructor Summary
ToolBarPanelLayout(ToolBarPanel panel, int align)
ToolBarPanelLayout(ToolBarPanel panel)
Method Summary
voidaddLayoutComponent(Component comp, Object constraints)
voidaddLayoutComponent(String name, Component comp)
intgetAlign()
Returns the alignment of this layout (FlowLayout.LEADING, TRAILING...)
Component[]getComponents()
Returns and ordered array of the contained components
ToolBarConstraintsgetConstraints(Component comp)
ToolBarConstraintsgetInsertionContraintsAt(Component draggedComponent, Point p)
Returns a proposed TooBarContraints for a given insertion point
floatgetLayoutAlignmentX(Container target)
floatgetLayoutAlignmentY(Container target)
voidinvalidateLayout(Container target)
voidlayoutContainer(Container target)
DimensionmaximumLayoutSize(Container target)
DimensionminimumLayoutSize(Container parent)
DimensionpreferredLayoutSize(Container parent)
voidremoveLayoutComponent(Component comp)
voidsetAlign(int align)

Constructor Detail

ToolBarPanelLayout

public ToolBarPanelLayout(ToolBarPanel panel, int align)

ToolBarPanelLayout

public ToolBarPanelLayout(ToolBarPanel panel)

Method Detail

addLayoutComponent

public void addLayoutComponent(Component comp, Object constraints)

addLayoutComponent

public void addLayoutComponent(String name, Component comp)

getAlign

public int getAlign()
Returns the alignment of this layout (FlowLayout.LEADING, TRAILING...)

getComponents

public Component[] getComponents()
Returns and ordered array of the contained components

getConstraints

public ToolBarConstraints getConstraints(Component comp)

getInsertionContraintsAt

public ToolBarConstraints getInsertionContraintsAt(Component draggedComponent, Point p)
Returns a proposed TooBarContraints for a given insertion point

getLayoutAlignmentX

public float getLayoutAlignmentX(Container target)

getLayoutAlignmentY

public float getLayoutAlignmentY(Container target)

invalidateLayout

public void invalidateLayout(Container target)

layoutContainer

public void layoutContainer(Container target)

maximumLayoutSize

public Dimension maximumLayoutSize(Container target)

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)

removeLayoutComponent

public void removeLayoutComponent(Component comp)

setAlign

public void setAlign(int align)
© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications