|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.stack.tab.TabComponentLayoutManager
public class TabComponentLayoutManager
A LayoutManager
that can be used by Component
s that show an
OrientedLabel
and a ButtonPanel
.
Constructor Summary | |
---|---|
TabComponentLayoutManager(OrientedLabel label,
ButtonPanel panel)
Creates a new layout manager. |
Method Summary | |
---|---|
void |
addLayoutComponent(String name,
Component comp)
|
int |
getFreeSpaceBetweenLabelAndActions()
Gets the size of the gap between text/icon and actions. |
int |
getFreeSpaceToOpenSide()
Gets the size of the open side. |
int |
getFreeSpaceToParallelBorder()
Gets the size of the border at the side of the Dockable |
int |
getFreeSpaceToSideBorder()
Gets the size of the free space between the borders that are on the same line as the text/icon and the actions. |
void |
layoutContainer(Container parent)
|
Dimension |
minimumLayoutSize(Container parent)
|
Dimension |
preferredLayoutSize(Container parent)
|
void |
removeLayoutComponent(Component comp)
|
void |
setFreeSpaceBetweenLabelAndActions(int freeSpaceBetweenLabelAndActions)
Sets the size of the gap that is between the label (icon and text) and the DockAction s (if there are any). |
void |
setFreeSpaceToOpenSide(int freeSpaceToOpenSide)
Sets the size of the free space between content and the open side. |
void |
setFreeSpaceToParallelBorder(int freeSpaceToParallelBorder)
Sets the size of the free space between content and the border at the side of the Dockable . |
void |
setFreeSpaceToSideBorder(int freeSpaceToSideBorder)
Sets the size of the free space between the borders that are on the same line as the text/icon and the actions. |
void |
setOrientation(TabPlacement orientation)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TabComponentLayoutManager(OrientedLabel label, ButtonPanel panel)
label
- the label shown on the tabpanel
- the actions shown on the tabMethod Detail |
---|
public void setFreeSpaceToOpenSide(int freeSpaceToOpenSide)
freeSpaceToOpenSide
- the sizepublic int getFreeSpaceToOpenSide()
setFreeSpaceToOpenSide(int)
public void setFreeSpaceBetweenLabelAndActions(int freeSpaceBetweenLabelAndActions)
DockAction
s (if there are any).
freeSpaceBetweenLabelAndActions
- the sizepublic int getFreeSpaceBetweenLabelAndActions()
setFreeSpaceBetweenLabelAndActions(int)
public void setFreeSpaceToParallelBorder(int freeSpaceToParallelBorder)
Dockable
.
freeSpaceToParallelBorder
- the sizepublic int getFreeSpaceToParallelBorder()
Dockable
setFreeSpaceToParallelBorder(int)
public void setFreeSpaceToSideBorder(int freeSpaceToSideBorder)
freeSpaceToSideBorder
- the sizepublic int getFreeSpaceToSideBorder()
setFreeSpaceToSideBorder(int)
public void setOrientation(TabPlacement orientation)
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |