- //boolean draw_vertical = true;
- // final PhylogenyNode parent = node.getParent();
- //TODO fix below -- actually this might not be necessay anymore? test pdf, though!
- // if ( ( ( ( getOptions().isShowDefaultNodeShapes() ) && !to_pdf && !to_graphics_file ) || ( ( getControlPanel()
- // .isEvents() ) && ( parent != null ) && parent.isHasAssignedEvent() ) )
- // && ( _phylogeny.isRooted() || !( ( parent != null ) && parent.isRoot() ) )
- // && !( ( to_pdf || to_graphics_file ) && getOptions().isPrintBlackAndWhite() && !parent
- // .isDuplication() ) ) {
- // if ( ( getPhylogenyGraphicsType() != PHYLOGENY_GRAPHICS_TYPE.EURO_STYLE )
- // && ( getPhylogenyGraphicsType() != PHYLOGENY_GRAPHICS_TYPE.ROUNDED ) ) {
- // if ( Math.abs( y2 - y1 ) <= _half_box_size ) {
- // draw_vertical = false;
- // }
- // else {
- // if ( y1 < y2 ) {
- // y1 += _half_box_size;
- // }
- // else {
- // if ( !to_pdf ) {
- // y1 -= _half_box_size + 1;
- // }
- // else {
- // y1 -= _half_box_size;
- // }
- // }
- // }
- // }
- // if ( ( x2 - x1 ) <= _half_box_size ) {
- // draw_horizontal = false;
- // }
- // else if ( !draw_vertical ) {
- // x1a += _half_box_size;
- // }
- // if ( ( ( x2 - x1a ) > _half_box_size )
- // && !( ( to_pdf || to_graphics_file ) && getOptions().isPrintBlackAndWhite() && !node
- // .isDuplication() ) ) {
- // x2a -= _half_box_size;
- // }
- // }
- //if ( draw_vertical ) {