public interface ToolbarGroupDividerStrategy
ToolbarGroupDividerStrategy
is responsible for painting dividers between
Dockable
s. It can reserve some empty space between Dockable
s to have enough
space for painting.Modifier and Type | Field and Description |
---|---|
static ToolbarGroupDividerStrategy |
NULL
Represents the strategy that does not exist.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn(int index)
Gets the empty space left of column
index . |
int |
getLine(int column,
int index)
Gets the size of the gap top of the cell
index of column . |
void |
paint(java.awt.Component parent,
java.awt.Graphics g,
ToolbarGridLayoutManager<bibliothek.gui.dock.station.StationChildHandle> layoutManager)
Allows this strategy to paint on the container that shows the
Dockable s. |
static final ToolbarGroupDividerStrategy NULL
int getColumn(int index)
index
. If there are n
columns, then index=n
will return the empty space on the right side of the
last column.index
- the index of a columnint getLine(int column, int index)
index
of column
. If there
are n
cells, then index=n
will return the size of the bottom most gap.column
- the column in which to searchindex
- the index of the cellvoid paint(java.awt.Component parent, java.awt.Graphics g, ToolbarGridLayoutManager<bibliothek.gui.dock.station.StationChildHandle> layoutManager)
Dockable
s.parent
- the parent containerg
- the graphics context to uselayoutManager
- detailed information about the children to paint