bibliothek.gui.dock.station.flap
Class FlapSpanStrategy

java.lang.Object
  extended by bibliothek.gui.dock.station.support.ListSpanStrategy
      extended by bibliothek.gui.dock.station.flap.FlapSpanStrategy

public class FlapSpanStrategy
extends ListSpanStrategy

Manages the Spans of a FlapDockStation.

Author:
Benjamin Sigg

Constructor Summary
FlapSpanStrategy(FlapDockStation station, ButtonPane buttons)
          Creates a new strategy.
 
Method Summary
protected  int getNumberOfDockables()
          Gets the number of Dockables 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
 
Methods inherited from class bibliothek.gui.dock.station.support.ListSpanStrategy
getGap, getTeasing, reset, setController, size, tease, untease
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlapSpanStrategy

public FlapSpanStrategy(FlapDockStation station,
                        ButtonPane buttons)
Creates a new strategy.

Parameters:
station - the owner of this strategy
buttons - the panel showing all buttons
Method Detail

getNumberOfDockables

protected int getNumberOfDockables()
Description copied from class: ListSpanStrategy
Gets the number of Dockables that are actually shown on the station.

Specified by:
getNumberOfDockables in class ListSpanStrategy
Returns:
the number of Dockables

isHorizontal

protected boolean isHorizontal()
Description copied from class: ListSpanStrategy
Tells whether the orientation of the underlying DockStation currently is horizontal. A station is horizontal if the Dockables are ordered in a list going from the left side of the station to the right side.

Specified by:
isHorizontal in class ListSpanStrategy
Returns:
whether the station is horizontal or vertical

spanResized

protected void spanResized()
Description copied from class: ListSpanStrategy
Called if at least one Span changed its size

Specified by:
spanResized in class ListSpanStrategy