public abstract class SpanToolbarLayoutManager extends Object implements LayoutManager2
LayoutManager used by the ToolbarDockStation.| Constructor and Description |
|---|
SpanToolbarLayoutManager(ToolbarDockStation station,
Container parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints) |
void |
addLayoutComponent(String name,
Component comp) |
int |
getGap()
Gets the size of the gap between each child component.
|
int |
getInsertionIndex(int x,
int y)
Calculates where to insert an item assuming the mouse is at position
x/y. |
float |
getLayoutAlignmentX(Container target) |
float |
getLayoutAlignmentY(Container target) |
int |
getSideGap()
Gets the size of the gap between the children and the outside border.
|
void |
invalidateLayout(Container target) |
void |
layoutContainer(Container parent) |
Dimension |
maximumLayoutSize(Container target) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
removeLayoutComponent(Component comp) |
protected abstract void |
revalidate() |
void |
setController(DockController controller) |
void |
setExpandedSpan(int index,
boolean mutate) |
void |
setGap(int gap)
Sets the size of the gap between each child component.
|
void |
setSideGap(int sideGap)
Sets the size of the gap between the children and the outside border.
|
void |
setSpanSize(Dockable moved) |
public SpanToolbarLayoutManager(ToolbarDockStation station, Container parent)
public int getGap()
public void setGap(int gap)
gap - the size of the gap, at least 0public int getSideGap()
public void setSideGap(int sideGap)
sideGap - the size of the gap, at least 0public void setController(DockController controller)
public int getInsertionIndex(int x,
int y)
x/y.x - the x coordinate of the mousey - the y coordinate of the mouseDockablepublic void setSpanSize(Dockable moved)
public void setExpandedSpan(int index,
boolean mutate)
protected abstract void revalidate()
public void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerpublic void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent in interface LayoutManager2public Dimension maximumLayoutSize(Container target)
maximumLayoutSize 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.