Class CContentAreaCenterLocation


public class CContentAreaCenterLocation extends CSplitLocation
This location points to the center of a CContentArea.
Author:
Benjamin Sigg
  • Constructor Details

    • CContentAreaCenterLocation

      public CContentAreaCenterLocation(CBaseLocation base)
      Creates a new location
      Parameters:
      base - the location describing a CContentArea, not null
  • Method Details

    • 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