|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.flap.FlapSpanStrategy
public class FlapSpanStrategy
Manages the Span
s of a FlapDockStation
.
Constructor Summary | |
---|---|
FlapSpanStrategy(FlapDockStation station,
ButtonPane buttons)
Creates a new strategy. |
Method Summary | |
---|---|
int |
getGap(int index)
Gets the size of the gap between button index-1 and
button index . |
int |
getTeasing()
Gets the current minimum size of the station. |
void |
reset()
Called if the number of buttons or the orientation changed. |
void |
setController(DockController controller)
Called when the DockController of the FlapDockStation changes. |
void |
tease(int index)
Opens some Span s such that a Dockable could be inserted
at index . |
void |
untease()
Makes all Span s invisible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlapSpanStrategy(FlapDockStation station, ButtonPane buttons)
station
- the owner of this strategybuttons
- the panel showing all buttonsMethod Detail |
---|
public void setController(DockController controller)
DockController
of the FlapDockStation
changes.
controller
- the new controller, can be null
public void reset()
public void tease(int index)
Span
s such that a Dockable
could be inserted
at index
.
index
- the index of the new Dockable
public void untease()
Span
s invisible.
public int getTeasing()
public int getGap(int index)
index-1
and
button index
.
index
- the index of the gap, where 0 is the most left gap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |