com.vlsolutions.swing.toolbars
Class ToolBarPanelLayout

java.lang.Object
  extended by com.vlsolutions.swing.toolbars.ToolBarPanelLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2

public class ToolBarPanelLayout
extends Object
implements LayoutManager2

The layout of a VLToolBarPanel


Constructor Summary
ToolBarPanelLayout(ToolBarPanel panel)
           
ToolBarPanelLayout(ToolBarPanel panel, int align)
           
 
Method Summary
 void addLayoutComponent(Component comp, Object constraints)
           
 void addLayoutComponent(String name, Component comp)
           
 int getAlign()
          Returns the alignment of this layout (FlowLayout.LEADING, TRAILING...)
 Component[] getComponents()
          Returns and ordered array of the contained components
 ToolBarConstraints getConstraints(Component comp)
           
 ToolBarConstraints getInsertionContraintsAt(Component draggedComponent, Point p)
          Returns a proposed TooBarContraints for a given insertion point
 float getLayoutAlignmentX(Container target)
           
 float getLayoutAlignmentY(Container target)
           
 void invalidateLayout(Container target)
           
 void layoutContainer(Container target)
           
 Dimension maximumLayoutSize(Container target)
           
 Dimension minimumLayoutSize(Container parent)
           
 Dimension preferredLayoutSize(Container parent)
           
 void removeLayoutComponent(Component comp)
           
 void setAlign(int align)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolBarPanelLayout

public ToolBarPanelLayout(ToolBarPanel panel,
                          int align)

ToolBarPanelLayout

public ToolBarPanelLayout(ToolBarPanel panel)
Method Detail

getAlign

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


setAlign

public void setAlign(int align)

getLayoutAlignmentX

public float getLayoutAlignmentX(Container target)
Specified by:
getLayoutAlignmentX in interface LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(Container target)
Specified by:
getLayoutAlignmentY in interface LayoutManager2

invalidateLayout

public void invalidateLayout(Container target)
Specified by:
invalidateLayout in interface LayoutManager2

maximumLayoutSize

public Dimension maximumLayoutSize(Container target)
Specified by:
maximumLayoutSize in interface LayoutManager2

addLayoutComponent

public void addLayoutComponent(Component comp,
                               Object constraints)
Specified by:
addLayoutComponent in interface LayoutManager2

getConstraints

public ToolBarConstraints getConstraints(Component comp)

removeLayoutComponent

public void removeLayoutComponent(Component comp)
Specified by:
removeLayoutComponent in interface LayoutManager

addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)
Specified by:
addLayoutComponent in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Specified by:
minimumLayoutSize in interface LayoutManager

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Specified by:
preferredLayoutSize in interface LayoutManager

getComponents

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


layoutContainer

public void layoutContainer(Container target)
Specified by:
layoutContainer in interface LayoutManager

getInsertionContraintsAt

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



© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications