com.vlsolutions.swing.toolbars

Class ToolBarPanelLayout

Implemented Interfaces:
LayoutManager2

public class ToolBarPanelLayout
extends java.lang.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)

Constructor Details

ToolBarPanelLayout

public ToolBarPanelLayout(ToolBarPanel panel)

ToolBarPanelLayout

public ToolBarPanelLayout(ToolBarPanel panel,
                          int align)

Method Details

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-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications