@Override @SuppressWarnings( "unchecked" ) public final <T extends Node<V>> T getNext() { final int index = getIndex(); if( index < 0 || index >= getParent().childCount() ) { return null; } else { return (T) getParent().getChildAt( index + 1 ); } }
if( row.getParent().childCount() == 1 )
@Override protected <T> T layout( final ModelVisitor v, final Node<ModelVisitor> n ) { if( !n.isLeaf() ) { double w = 0.0; for( Node<ModelVisitor> child : n.getChildren() ) { w += getBounds( child ).getWidth(); } final GraphBounds gb = getBounds( n ); if( gb.getWidth() > w ) { w = gb.getWidth() / (double) n.childCount(); for( Node<ModelVisitor> child : n.getChildren() ) { getBounds( child ).setWidth( w ); } } } return null; } },
getBounds( n.getParent() ).getWidth() / (double) n.getParent().childCount() ); if( gb.getWidth() > w ) w = gb.getWidth() / (double) n.childCount(); for( Node<ModelVisitor> child : n.getChildren() )