public class DefaultToolbarGroupDividierStrategy extends Object implements ToolbarGroupDividerStrategy
ToolbarGroupDividerStrategy paints a line between each
column and each line, and a line around at the outside of the Dockables as well.| Modifier and Type | Field and Description |
|---|---|
static ToolbarGroupDividerStrategyFactory |
FACTORY
a factory creating new
DefaultToolbarGroupDividierStrategys |
NULL| Constructor and Description |
|---|
DefaultToolbarGroupDividierStrategy(ToolbarGroupDockStation station)
Creates a new strategy for
station. |
| 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(Component parent,
Graphics g,
ToolbarGridLayoutManager<StationChildHandle> layoutManager)
Allows this strategy to paint on the container that shows the
Dockables. |
public static final ToolbarGroupDividerStrategyFactory FACTORY
DefaultToolbarGroupDividierStrategyspublic DefaultToolbarGroupDividierStrategy(ToolbarGroupDockStation station)
station.station - the station which will use this strategy, not nullpublic int getColumn(int index)
ToolbarGroupDividerStrategyindex. If there are n
columns, then index=n will return the empty space on the right side of the
last column.getColumn in interface ToolbarGroupDividerStrategyindex - the index of a columnpublic int getLine(int column,
int index)
ToolbarGroupDividerStrategyindex of column. If there
are n cells, then index=n will return the size of the bottom most gap.getLine in interface ToolbarGroupDividerStrategycolumn - the column in which to searchindex - the index of the cellpublic void paint(Component parent, Graphics g, ToolbarGridLayoutManager<StationChildHandle> layoutManager)
ToolbarGroupDividerStrategyDockables.paint in interface ToolbarGroupDividerStrategyparent - the parent containerg - the graphics context to uselayoutManager - detailed information about the children to paintCopyright © 2018. All rights reserved.