bibliothek.gui.dock.station.span
Interface SpanCallback


public interface SpanCallback

The link between Span and DockStation.

Author:
Benjamin Sigg

Method Summary
 DockStation getStation()
          Gets the DockStation that is using this Span.
 SpanUsage getUsage()
          Tells the Span how it is used.
 boolean isHorizontal()
          Tells whether the Span influences some width.
 boolean isVertical()
          Tells whether the Span influences some height.
 void resized()
          To be called by the Span every time when its size changes.
 

Method Detail

getStation

DockStation getStation()
Gets the DockStation that is using this Span.

Returns:
the station, never null

isHorizontal

boolean isHorizontal()
Tells whether the Span influences some width.

Returns:
whether the Span is horizontal, the opposite of isVertical()

isVertical

boolean isVertical()
Tells whether the Span influences some height.

Returns:
whether the Span is vertical, the opposite of isHorizontal()

resized

void resized()
To be called by the Span every time when its size changes. This method should be called from the EventDispatcherThread.


getUsage

SpanUsage getUsage()
Tells the Span how it is used.

Returns:
the usage