bibliothek.gui.dock.common.mode
Interface CModeArea

All Superinterfaces:
ModeArea
All Known Subinterfaces:
CExternalizedModeArea, CMaximizedModeArea, CMinimizedModeArea, CNormalModeArea
All Known Implementing Classes:
CFlapDockStationHandle, CScreenDockStationHandle, CSplitDockStationHandle.Maximal, CSplitDockStationHandle.Normal

public interface CModeArea
extends ModeArea

Describes an area that can work with CLocations.

Author:
Benjamin Sigg

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 interface bibliothek.gui.dock.facile.mode.ModeArea
addModeAreaListener, getStation, getUniqueId, isChild, removeModeAreaListener, respectWorkingAreas, setController
 

Method Detail

getCLocation

CLocation getCLocation(Dockable dockable)
Assuming dockable is a child of this area, returns the location of dockable.

Parameters:
dockable - some child
Returns:
the location, null if not found

getCLocation

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, null if not found