|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.toolbar.group.DefaultToolbarGroupDividierStrategy
public class DefaultToolbarGroupDividierStrategy
This implementation of ToolbarGroupDividerStrategy
paints a line between each
column and each line, and a line around at the outside of the Dockable
s as well.
Field Summary | |
---|---|
static ToolbarGroupDividerStrategyFactory |
FACTORY
a factory creating new DefaultToolbarGroupDividierStrategy s |
Fields inherited from interface bibliothek.gui.dock.station.toolbar.group.ToolbarGroupDividerStrategy |
---|
NULL |
Constructor Summary | |
---|---|
DefaultToolbarGroupDividierStrategy(ToolbarGroupDockStation station)
Creates a new strategy for station . |
Method Summary | |
---|---|
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(Component parent,
Graphics g,
ToolbarGridLayoutManager<bibliothek.gui.dock.station.StationChildHandle> layoutManager)
Allows this strategy to paint on the container that shows the Dockable s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ToolbarGroupDividerStrategyFactory FACTORY
DefaultToolbarGroupDividierStrategy
s
Constructor Detail |
---|
public DefaultToolbarGroupDividierStrategy(ToolbarGroupDockStation station)
station
.
station
- the station which will use this strategy, not null
Method Detail |
---|
public int getColumn(int index)
ToolbarGroupDividerStrategy
index
. If there are n
columns, then index=n
will return the empty space on the right side of the
last column.
getColumn
in interface ToolbarGroupDividerStrategy
index
- the index of a column
public int getLine(int column, int index)
ToolbarGroupDividerStrategy
index
of column
. If there
are n
cells, then index=n
will return the size of the bottom most gap.
getLine
in interface ToolbarGroupDividerStrategy
column
- the column in which to searchindex
- the index of the cell
public void paint(Component parent, Graphics g, ToolbarGridLayoutManager<bibliothek.gui.dock.station.StationChildHandle> layoutManager)
ToolbarGroupDividerStrategy
Dockable
s.
paint
in interface ToolbarGroupDividerStrategy
parent
- the parent containerg
- the graphics context to uselayoutManager
- detailed information about the children to paint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |