Class CScreenDockStationHandle

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

public class CScreenDockStationHandle extends Object
Connection between a ScreenDockStation and the CExternalizedModeArea interface.
Author:
Benjamin Sigg
  • Constructor Details

    • CScreenDockStationHandle

      public CScreenDockStationHandle(CStation<CScreenDockStation> 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 Details

    • 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 or null if location.getLocation() is not valid