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

java.lang.Object
  extended by bibliothek.gui.dock.facile.mode.station.ScreenDockStationHandle
      extended by bibliothek.gui.dock.common.mode.station.CScreenDockStationHandle
All Implemented Interfaces:
CExternalizedModeArea, CModeArea, ExternalizedModeArea, ModeArea, StationModeArea

public class CScreenDockStationHandle
extends ScreenDockStationHandle
implements CExternalizedModeArea

Connection between a ScreenDockStation and the CExternalizedModeArea interface.

Author:
Benjamin Sigg

Constructor Summary
CScreenDockStationHandle(CStation<ScreenDockStation> station)
          Creates a new handle
CScreenDockStationHandle(String id, ScreenDockStation station, CLocation location)
          Creates a new handle
 
Method Summary
 CLocation getCLocation(Dockable dockable)
          Assuming dockable is a child of this area, returns the location of dockable.
 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.
 
Methods inherited from class bibliothek.gui.dock.facile.mode.station.ScreenDockStationHandle
addModeAreaListener, getLocation, getStation, getUniqueId, isChild, removeModeAreaListener, respectWorkingAreas, setController, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.facile.mode.StationModeArea
getLocation, setLocation
 
Methods inherited from interface bibliothek.gui.dock.facile.mode.ModeArea
addModeAreaListener, getStation, getUniqueId, isChild, removeModeAreaListener, respectWorkingAreas, setController
 

Constructor Detail

CScreenDockStationHandle

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

Parameters:
station - the station which is handled by this handle

CScreenDockStationHandle

public CScreenDockStationHandle(String id,
                                ScreenDockStation station,
                                CLocation location)
Creates a new handle

Parameters:
id - the unique identifier of this station
station - the station to handle
location - the location which represents station
Method Detail

getCLocation

public CLocation getCLocation(Dockable dockable)
Description copied from interface: CModeArea
Assuming dockable is a child of this area, returns the location of dockable.

Specified by:
getCLocation in interface CModeArea
Parameters:
dockable - some child
Returns:
the location, null if not found

getCLocation

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

Specified by:
getCLocation in interface CModeArea
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, null if not found