Interface LayoutUtil.NodeSize

Enclosing class:
LayoutUtil

public static interface LayoutUtil.NodeSize
Supplies the rendered box size of each node, so a layout can space nodes by what they actually take up on screen. The GUI supplies display-node sizes; headless callers use LayoutUtil.estimatedNodeSize().
Version:
$Id: $Id
Author:
josephramsey
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    height(Node node)
    Returns the height of the rendered box of the given node in pixels.
    double
    width(Node node)
    Returns the width of the rendered box of the specified node in pixels.
  • Method Details

    • width

      double width(Node node)
      Returns the width of the rendered box of the specified node in pixels.
      Parameters:
      node - the node for which the box width is to be determined
      Returns:
      the width of the node's box in pixels
    • height

      double height(Node node)
      Returns the height of the rendered box of the given node in pixels.
      Parameters:
      node - the node whose box height is to be determined
      Returns:
      the height of the node's box in pixels