Interface NodeExtentProvider<TreeNode>

Type Parameters:
TreeNode - Type of elements used as nodes in the tree
All Known Implementing Classes:
FixedNodeExtentProvider

public interface NodeExtentProvider<TreeNode>
Provides the extent (width and height) of a tree node.

Also see this overview.

  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getHeight(TreeNode treeNode)
    Returns the height of the given treeNode.
    double
    getWidth(TreeNode treeNode)
    Returns the width of the given treeNode.
  • Method Details

    • getWidth

      double getWidth(TreeNode treeNode)
      Returns the width of the given treeNode.
      Parameters:
      treeNode -  
      Returns:
      [result >= 0]
    • getHeight

      double getHeight(TreeNode treeNode)
      Returns the height of the given treeNode.
      Parameters:
      treeNode -  
      Returns:
      [result >= 0]