bibliothek.gui.dock.common.mode.station
Class CScreenDockStationHandle

java.lang.Object
  extended by bibliothek.gui.dock.common.mode.station.CScreenDockStationHandle

public class CScreenDockStationHandle
extends Object

Connection between a ScreenDockStation and the CExternalizedModeArea interface.

Author:
Benjamin Sigg

Nested Class Summary
protected  class CScreenDockStationHandle.External
          Represents a CScreenDockStationHandle as CExternalizedModeArea.
protected  class CScreenDockStationHandle.Maximal
          A representation of CScreenDockStationHandle as CMaximizedModeArea.
 
Constructor Summary
CScreenDockStationHandle(CStation<ScreenDockStation> station, CLocationModeManager manager)
          Creates a new handle
 
Method Summary
 CLocation getCLocation(Dockable dockable)
          Gets a CLocation describing the location of dockable on the station of this handle.
 CLocation getCLocation(Dockable dockable, Location location)
          Assuming dockable would be at location location if it would be a child of this station, returns the CLocation that matches location.
 CExternalizedModeArea getExternalizedModeArea()
          Gets the representation of this as CExternalizedModeArea.
 CMaximizedModeArea getMaximizedModeArea()
          Gets the representation of this as CMaximizedModeArea.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CScreenDockStationHandle

public CScreenDockStationHandle(CStation<ScreenDockStation> station,
                                CLocationModeManager manager)
Creates a new handle

Parameters:
station - the station which is handled by this handle, not null
manager - the manager handling all modes, not null
Method Detail

getExternalizedModeArea

public CExternalizedModeArea getExternalizedModeArea()
Gets the representation of this as CExternalizedModeArea.

Returns:
the representation

getMaximizedModeArea

public CMaximizedModeArea getMaximizedModeArea()
Gets the representation of this as CMaximizedModeArea.

Returns:
the representation

getCLocation

public CLocation getCLocation(Dockable dockable)
Gets a CLocation describing the location of dockable on the station of this handle.

Parameters:
dockable - some child
Returns:
the location

getCLocation

public CLocation getCLocation(Dockable dockable,
                              Location location)
Assuming dockable would be at location location if it would be a child of this station, returns the CLocation that matches location.

Parameters:
dockable - some element which may or may not be a child of this station
location - the location dockable would have if it would be a child of this station
Returns:
the location