@Override public void handleNode( Node node ){ switch( node.getOrientation() ){ case HORIZONTAL: node.setOrientation( Orientation.VERTICAL ); break; case VERTICAL: node.setOrientation( Orientation.HORIZONTAL ); break; } }
node.setLeft( child ); node.setRight( neighbor ); node.setOrientation( Orientation.VERTICAL ); node.setOrientation( Orientation.VERTICAL ); node.setOrientation( Orientation.HORIZONTAL ); node.setOrientation( Orientation.HORIZONTAL );
node.setLeft( child ); node.setRight( neighbor ); node.setOrientation( Orientation.VERTICAL ); node.setOrientation( Orientation.VERTICAL ); node.setOrientation( Orientation.HORIZONTAL ); node.setOrientation( Orientation.HORIZONTAL );
SplitNode superParent = parent.getParent(); if( superParent instanceof Root ){ n.setOrientation( side.getHeaderOrientation() ); return; n.setOrientation( side.getColumnOrientation() ); s.setOrientation( side.getHeaderOrientation() );
node.setDivider( 0.5 ); if( width > height ){ node.setOrientation( Orientation.HORIZONTAL ); node.setOrientation( Orientation.VERTICAL );
if( reverse ){ split = createNode( newNodeId ); split.setOrientation( orientation ); split.setLeft( this ); split.setRight( newChild ); split.setLeft( newChild ); split.setRight( this ); split.setOrientation( orientation ); split.setDivider( node.getSize() );