public class FlapSpanStrategy extends ListSpanStrategy
Span
s of a FlapDockStation
.Constructor and Description |
---|
FlapSpanStrategy(FlapDockStation station,
ButtonPane buttons)
Creates a new strategy.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getNumberOfDockables()
Gets the number of
Dockable s that are actually shown on the station. |
protected boolean |
isHorizontal()
Tells whether the orientation of the underlying
DockStation currently is horizontal. |
protected void |
spanResized()
Called if at least one
Span changed its size |
getGap, getTeasing, reset, setController, size, tease, untease
public FlapSpanStrategy(FlapDockStation station, ButtonPane buttons)
station
- the owner of this strategybuttons
- the panel showing all buttonsprotected int getNumberOfDockables()
ListSpanStrategy
Dockable
s that are actually shown on the station.getNumberOfDockables
in class ListSpanStrategy
Dockable
sprotected boolean isHorizontal()
ListSpanStrategy
DockStation
currently is horizontal.
A station is horizontal if the Dockable
s are ordered in a list going from the left side
of the station to the right side.isHorizontal
in class ListSpanStrategy
protected void spanResized()
ListSpanStrategy
Span
changed its sizespanResized
in class ListSpanStrategy