| java.lang.Object org.apache.harmony.x.swing.TreeCommons
TreeCommons | public class TreeCommons (Code) | | Storage of the utility methods for tree-related calculations.
|
Inner Class :public interface PaintTreeContext | |
getPathToAncestor | public static TreeNode[] getPathToAncestor(TreeNode node, TreeNode ancestor)(Code) | | Returns tree path from the specified ancestor to a node.
Parameters: node - TreeNode which is the path end Parameters: ancestor - TreeNode which is the path top path from an ancestor to a node |
getPathToAncestor | public static TreeNode[] getPathToAncestor(TreeNode node, TreeNode ancestor, int depth)(Code) | | Returns tree path from the specified ancestor to a node limited by the depth.
Parameters: node - TreeNode which is the path end Parameters: ancestor - TreeNode which is the path top Parameters: depth - int value representing the maximum path length path from an ancestor to a node |
paintTree | public static void paintTree(Graphics g, PaintTreeContext context)(Code) | | Paints a tree basing on the data from the parameterized context.
Parameters: g - Graphics to paint on Parameters: context - PaintTreeContext specified by particular UI. See Also: TreeCommons.PaintTreeContext |
|
|