Class ResizeRoot<T>

java.lang.Object
bibliothek.gui.dock.facile.station.split.ResizeElement<T>
bibliothek.gui.dock.facile.station.split.ResizeRoot<T>
Type Parameters:
T - the kind of meta-data clients use

public class ResizeRoot<T> extends ResizeElement<T>
Represents a Root.
Author:
Benjamin Sigg
  • Constructor Details

    • ResizeRoot

      public ResizeRoot(LockedResizeLayoutManager<T> layout, Root root)
      Creates a new root-element
      Parameters:
      layout - the layout that uses this root
      root - the root which is represented by this root-element
  • Method Details

    • getRoot

      public Root getRoot()
      Gets the root which is represented by this root-element.
      Returns:
      the root
    • getResizeRoot

      public ResizeRoot<T> getResizeRoot()
      Description copied from class: ResizeElement
      Gets the root of this tree.
      Overrides:
      getResizeRoot in class ResizeElement<T>
      Returns:
      the root
    • getChild

      public ResizeElement<T> getChild()
      Gets the one child of this root
      Returns:
      the child or null
    • getChildren

      protected ResizeElement<T>[] getChildren()
      Description copied from class: ResizeElement
      Gets the children of this element.
      Specified by:
      getChildren in class ResizeElement<T>
      Returns:
      the children or null
    • createRequest

      protected ResizeRequest createRequest()
      Description copied from class: ResizeElement
      Creates the initial request of changed sizes.
      Specified by:
      createRequest in class ResizeElement<T>
      Returns:
      the initial request or null
    • adapt

      public void adapt(double deltaWidth, double deltaHeight)
      Description copied from class: ResizeElement
      Adapts the size of the children of this element given the size change the parent could provide.
      Specified by:
      adapt in class ResizeElement<T>
      Parameters:
      deltaWidth - the change of this elements width
      deltaHeight - the change of this elements height