petite/src/wombat/scheme/libraries/TreeAPI.java
public static void drawTree(final TreeData tree) {
		JFrame treeFrame = new JFrame("draw-tree");
		treeFrame.setSize(400, 400);
		treeFrame.setLayout(new BorderLayout());
		treeFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
		treeFrame.add(new JPanel() {
			private static final long serialVersionUID = -6723179597582742419L;

			@Override
			public void paint(Graphics g) {
				super.paint(g);
				tree.drawTreeData((Graphics2D) g, getWidth(), getHeight());
			}
		});
		
		treeFrame.setVisible(true);
	}
/**
	 * Draw a tree.
	 * @param tree The representation of the tree.
	 */
Draw a tree.
@param tree The representation of the tree.
Draw a tree . @param tree The representation of the tree .
public static void drawTree(final TreeData tree) {
		JFrame treeFrame = new JFrame("draw-tree");
		treeFrame.setSize(400, 400);
		treeFrame.setLayout(new BorderLayout());
		treeFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		treeFrame.add(new JPanel() {
			private static final long serialVersionUID = -6723179597582742419L;
			@Override
			public void paint(Graphics g) {
				super.paint(g);
				tree.drawTreeData((Graphics2D) g, getWidth(), getHeight());
			}
		});
		treeFrame.setVisible(true);
	}
public static void drawTree ( final TreeData tree ) { JFrame treeFrame = new JFrame ( "draw-tree" ) ; treeFrame . setSize ( 400 , 400 ) ; treeFrame . setLayout ( new BorderLayout ( ) ) ; treeFrame . setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ; treeFrame . add ( new JPanel ( ) { private static final long serialVersionUID = - 6723179597582742419L ; @ Override public void paint ( Graphics g ) { super . paint ( g ) ; tree . drawTreeData ( ( Graphics2D ) g , getWidth ( ) , getHeight ( ) ) ; } } ) ; treeFrame . setVisible ( true ) ; }
Draw a tree.
Draw a tree .