bibliothek.gui.dock.common.location
Class CContentAreaCenterLocation

java.lang.Object
  extended by bibliothek.gui.dock.common.CLocation
      extended by bibliothek.gui.dock.common.location.CSplitLocation
          extended by bibliothek.gui.dock.common.location.CContentAreaCenterLocation

public class CContentAreaCenterLocation
extends CSplitLocation

This location points to the center of a CContentArea.

Author:
Benjamin Sigg

Constructor Summary
CContentAreaCenterLocation(CBaseLocation base)
          Creates a new location
 
Method Summary
 DockableProperty findProperty(DockableProperty successor)
          Gets a path describing this location in terms of the DockingFrames.
 String findRoot()
          Gets the name of the station this location belongs to.
 CBaseLocation getBase()
          Gets the location representing the CContentArea of which this location represents the center.
 String toString()
           
 
Methods inherited from class bibliothek.gui.dock.common.location.CSplitLocation
aside, east, east, findMode, getParent, north, north, rectangle, south, south, stack, stack, west, west
 
Methods inherited from class bibliothek.gui.dock.common.CLocation
base, base, equals, expandProperty, expandProperty, external, findProperty, hashCode, maximized, maximized, maximized, maximized, minimized, minimized, normalized, working
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CContentAreaCenterLocation

public CContentAreaCenterLocation(CBaseLocation base)
Creates a new location

Parameters:
base - the location describing a CContentArea, not null
Method Detail

getBase

public CBaseLocation getBase()
Gets the location representing the CContentArea of which this location represents the center.

Returns:
the content-area

findProperty

public DockableProperty findProperty(DockableProperty successor)
Description copied from class: CLocation
Gets a path describing this location in terms of the DockingFrames.

Overrides:
findProperty in class CSplitLocation
Parameters:
successor - the path of the elements above this location or null
Returns:
the path to this location or null, can also be successor

findRoot

public String findRoot()
Description copied from class: CLocation
Gets the name of the station this location belongs to. This can be the id of any CStation.

Overrides:
findRoot in class CSplitLocation
Returns:
the name of the station or null if this location does not have enough information to find the root

toString

public String toString()
Overrides:
toString in class CSplitLocation