## Uses of Class
javax.swing.tree.AbstractLayoutCache.NodeDimensions

- Packages that use AbstractLayoutCache.NodeDimensions
  Package | Description
  --- | ---
  javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel.
  javax.swing.tree | Provides classes and interfaces for dealing with `javax.swing.JTree`.

- - ### Uses of AbstractLayoutCache.NodeDimensions in javax.swing.plaf.basic

    Subclasses of AbstractLayoutCache.NodeDimensions in javax.swing.plaf.basic
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `BasicTreeUI.NodeDimensionsHandler` Class responsible for getting size of node, method is forwarded to BasicTreeUI method.

    Fields in javax.swing.plaf.basic declared as AbstractLayoutCache.NodeDimensions
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected AbstractLayoutCache.NodeDimensions` | BasicTreeUI.`nodeDimensions` Reponsible for telling the TreeState the size needed for a node.

    Methods in javax.swing.plaf.basic that return AbstractLayoutCache.NodeDimensions
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected AbstractLayoutCache.NodeDimensions` | BasicTreeUI.`createNodeDimensions()` Creates an instance of NodeDimensions that is able to determine the size of a given node in the tree.

  - ### Uses of AbstractLayoutCache.NodeDimensions in javax.swing.tree

    Fields in javax.swing.tree declared as AbstractLayoutCache.NodeDimensions
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected AbstractLayoutCache.NodeDimensions` | AbstractLayoutCache.`nodeDimensions` Object responsible for getting the size of a node.

    Methods in javax.swing.tree that return AbstractLayoutCache.NodeDimensions
    Modifier and Type | Method | Description
    --- | --- | ---
    `AbstractLayoutCache.NodeDimensions` | AbstractLayoutCache.`getNodeDimensions()` Returns the object that renders nodes in the tree, and which is responsible for calculating the dimensions of individual nodes.

    Methods in javax.swing.tree with parameters of type AbstractLayoutCache.NodeDimensions
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | VariableHeightLayoutCache.`setNodeDimensions(AbstractLayoutCache.NodeDimensions nd)` Sets the renderer that is responsible for drawing nodes in the tree.
    `void` | AbstractLayoutCache.`setNodeDimensions(AbstractLayoutCache.NodeDimensions nd)` Sets the renderer that is responsible for drawing nodes in the tree and which is therefore responsible for calculating the dimensions of individual nodes.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.