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

java.lang.Object
  extended by bibliothek.gui.dock.facile.mode.station.FlapDockStationHandle
      extended by bibliothek.gui.dock.common.mode.station.CFlapDockStationHandle
All Implemented Interfaces:
CMinimizedModeArea, CModeArea, MinimizedModeArea, ModeArea, StationModeArea

public class CFlapDockStationHandle
extends FlapDockStationHandle
implements CMinimizedModeArea

Interface between FlapDockStation and CModeArea.

Author:
Benjamin Sigg

Constructor Summary
CFlapDockStationHandle(CStation<CFlapDockStation> station)
          Creates a new handle
CFlapDockStationHandle(String id, CFlapDockStation 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.FlapDockStationHandle
addModeAreaListener, autoDefaultArea, getLocation, getStation, getUniqueId, isChild, isLocationRoot, removeModeAreaListener, respectWorkingAreas, setController, setLocation, setMode
 
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, autoDefaultArea, getStation, getUniqueId, isChild, isLocationRoot, removeModeAreaListener, setController, setMode
 
Methods inherited from interface bibliothek.gui.dock.common.mode.CModeArea
respectWorkingAreas
 

Constructor Detail

CFlapDockStationHandle

public CFlapDockStationHandle(CStation<CFlapDockStation> station)
Creates a new handle

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

CFlapDockStationHandle

public CFlapDockStationHandle(String id,
                              CFlapDockStation 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