public class ToolbarContainerLayoutManager extends Object implements LayoutManager2
LayoutManager2
used by a ToolbarContainerDockStation
, this LayoutManager2
uses the current SpanFactory
to add gaps between Component
s 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(bibliothek.gui.DockController controller)
Sets the
DockController in whose realm this layout manager is used. |
void |
setDrawing(ToolbarContainerDropInfo info)
Tells this layout manager which
Span s have to mutate. |
public ToolbarContainerLayoutManager(JComponent parent, ToolbarContainerDockStation station)
parent
- the panel using this layout managerstation
- the station showing panel
public void setController(bibliothek.gui.DockController controller)
DockController
in whose realm this layout manager is used.controller
- the controller, can be null
public void setDrawing(ToolbarContainerDropInfo info)
Span
s have to mutate.info
- information about the item that is currently droppedpublic void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
public Dimension maximumLayoutSize(Container target)
maximumLayoutSize
in interface LayoutManager2
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
public void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent
in interface LayoutManager2
public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY
in interface LayoutManager2
public void invalidateLayout(Container target)
invalidateLayout
in interface LayoutManager2