com.vlsolutions.swing.toolbars
Class ToolBarPanelLayout

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

public class ToolBarPanelLayout
extends java.lang.Object
implements java.awt.LayoutManager2

The layout of a VLToolBarPanel


Constructor Summary
ToolBarPanelLayout(ToolBarPanel panel)
           
ToolBarPanelLayout(ToolBarPanel panel, int align)
           
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
           
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 int getAlign()
          Returns the alignment of this layout (FlowLayout.LEADING, TRAILING...)
 java.awt.Component[] getComponents()
          Returns and ordered array of the contained components
 ToolBarConstraints getConstraints(java.awt.Component comp)
           
 ToolBarConstraints getInsertionContraintsAt(java.awt.Component draggedComponent, java.awt.Point p)
          Returns a proposed TooBarContraints for a given insertion point
 float getLayoutAlignmentX(java.awt.Container target)
           
 float getLayoutAlignmentY(java.awt.Container target)
           
 void invalidateLayout(java.awt.Container target)
           
 void layoutContainer(java.awt.Container target)
           
 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)
           
 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(java.awt.Container target)
Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2

getLayoutAlignmentY

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

invalidateLayout

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

maximumLayoutSize

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

addLayoutComponent

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

getConstraints

public ToolBarConstraints getConstraints(java.awt.Component comp)

removeLayoutComponent

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

addLayoutComponent

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

minimumLayoutSize

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

preferredLayoutSize

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

getComponents

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


layoutContainer

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

getInsertionContraintsAt

public ToolBarConstraints getInsertionContraintsAt(java.awt.Component draggedComponent,
                                                   java.awt.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