TreeLayout { public Rectangle2D getBounds() { return new Rectangle2D.Double(0, 0, boundsRight - boundsLeft, boundsBottom - boundsTop); } TreeLayout(TreeForTreeLayout<TreeNode> tree,
			NodeExtentProvider<TreeNode> nodeExtentProvider,
			Configuration<TreeNode> configuration, boolean useIdentity);  TreeLayout(TreeForTreeLayout<TreeNode> tree,
			NodeExtentProvider<TreeNode> nodeExtentProvider,
			Configuration<TreeNode> configuration); TreeForTreeLayout<TreeNode> getTree(); NodeExtentProvider<TreeNode> getNodeExtentProvider(); Configuration<TreeNode> getConfiguration(); Rectangle2D getBounds(); int getLevelCount(); double getSizeOfLevel(int level); Map<TreeNode, Rectangle2D.Double> getNodeBounds(); void checkTree(); void dumpTree(PrintStream printStream, DumpConfiguration dumpConfiguration); void dumpTree(PrintStream printStream);  }
@Test public void testGetBounds() { StringTreeNode root = createSampleTree_MultiLineNodes(); StringTreeAsTreeForTreeLayout tree = new StringTreeAsTreeForTreeLayout( root); NodeExtentProvider<StringTreeNode> nodeExtentProvider = new MultiLineNodeExtentProvider( 60, 20, 0); DefaultConfiguration<StringTreeNode> config = new DefaultConfiguration<StringTreeNode>( 10, 10); TreeLayout<StringTreeNode> layout = new TreeLayout<StringTreeNode>( tree, nodeExtentProvider, config); assertEquals(0, layout.getBounds().getX(), 0.0); assertEquals(0, layout.getBounds().getY(), 0.0); assertEquals(200, layout.getBounds().getWidth(), 0.0); assertEquals(70, layout.getBounds().getHeight(), 0.0); }