bibliothek.gui.dock.station.split
Interface GridNode<D>

All Known Implementing Classes:
AbstractSplitDockGrid.Node

public interface GridNode<D>

A node of an AbstractSplitDockGrid, represents a stack of Dockables and their position.

Author:
Benjamin Sigg

Method Summary
 List<D> getDockables()
          Gets an unmodifiable list containing all the Dockable of this node.
 double getHeight()
          Gets the height, relative to all the other nodes.
 List<Path> getPlaceholders()
          Gets all the placeholders associated with this node.
 D getSelected()
          Gets the one dockable that is selected, must be part of getDockables().
 double getWidth()
          Gets the width, relative to all the other nodes.
 double getX()
          Gets the x-coordinate, relative to all the other nodes.
 double getY()
          Gets the y-coordinate, relative to all the other nodes.
 

Method Detail

getX

double getX()
Gets the x-coordinate, relative to all the other nodes.

Returns:
the x-coordinate

getY

double getY()
Gets the y-coordinate, relative to all the other nodes.

Returns:
the y-coordinate

getWidth

double getWidth()
Gets the width, relative to all the other nodes.

Returns:
the width

getHeight

double getHeight()
Gets the height, relative to all the other nodes.

Returns:
the height

getDockables

List<D> getDockables()
Gets an unmodifiable list containing all the Dockable of this node.

Returns:
the list of dockables, may be empty

getSelected

D getSelected()
Gets the one dockable that is selected, must be part of getDockables().

Returns:
the selected dockable or null

getPlaceholders

List<Path> getPlaceholders()
Gets all the placeholders associated with this node.

Returns:
the placeholders in an unmodifiable list