public class ToolBarPanelLayout extends Object implements LayoutManager2
| Constructor and Description |
|---|
ToolBarPanelLayout(ToolBarPanel panel) |
ToolBarPanelLayout(ToolBarPanel panel,
int align) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ToolBarPanelLayout(ToolBarPanel panel, int align)
public ToolBarPanelLayout(ToolBarPanel panel)
public int getAlign()
FlowLayout.LEADING, TRAILING...)public void setAlign(int align)
public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2public Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2public void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent in interface LayoutManager2public ToolBarConstraints getConstraints(Component comp)
public void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerpublic void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic Component[] getComponents()
public void layoutContainer(Container target)
layoutContainer in interface LayoutManagerpublic ToolBarConstraints getInsertionContraintsAt(Component draggedComponent, Point p)
© Copyright 2004-2013 Lilian Chamontin. All Rights Reserved.