public class ToolbarContainerLayoutManager extends Object implements LayoutManager2
LayoutManager2 used by a ToolbarContainerDockStation, this LayoutManager2
uses the current SpanFactory to add gaps between Components if necessary.| Constructor and Description |
|---|
ToolbarContainerLayoutManager(JComponent parent,
ToolbarContainerDockStation station)
Creates a new layout manager
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints) |
void |
addLayoutComponent(String name,
Component comp) |
float |
getLayoutAlignmentX(Container target) |
float |
getLayoutAlignmentY(Container target) |
void |
invalidateLayout(Container target) |
void |
layoutContainer(Container parent) |
Dimension |
maximumLayoutSize(Container target) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
removeLayoutComponent(Component comp) |
void |
setController(DockController controller)
Sets the
DockController in whose realm this layout manager is used. |
void |
setDrawing(ToolbarContainerDropInfo info)
Tells this layout manager which
Spans have to mutate. |
public ToolbarContainerLayoutManager(JComponent parent, ToolbarContainerDockStation station)
parent - the panel using this layout managerstation - the station showing panelpublic void setController(DockController controller)
DockController in whose realm this layout manager is used.controller - the controller, can be nullpublic void setDrawing(ToolbarContainerDropInfo info)
Spans have to mutate.info - information about the item that is currently droppedpublic void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent in interface LayoutManager2public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2Copyright © 2018. All rights reserved.