private final static void colorizeNodesHelper( final Color c, final PhylogenyNode node ) { if ( node.getNodeData().getNodeVisualData() == null ) { node.getNodeData().setNodeVisualData( new NodeVisualData() ); } node.getNodeData().getNodeVisualData().setFontColor( new Color( c.getRed(), c.getGreen(), c.getBlue() ) ); }
@Override public final PhylogenyData copy() { return new NodeVisualData( !ForesterUtil.isEmpty( getFontName() ) ? new String( getFontName() ) : null, getFontStyle(), getFontSize(), getFontColor() != null ? new Color( getFontColor().getRed(), getFontColor() .getGreen(), getFontColor().getBlue() ) : null, getShape(), getFillType(), getNodeColor() != null ? new Color( getNodeColor().getRed(), getNodeColor() .getGreen(), getNodeColor().getBlue() ) : null, getSize(), getTransparency() ); }
for( final PhylogenyNode n : nodes ) { if ( n.getNodeData().getNodeVisualData() == null ) { n.getNodeData().setNodeVisualData( new NodeVisualData() );
if ( chart_only ) { while ( it.hasNext() ) { final NodeVisualData vis = new NodeVisualData(); vis.setFillType( NodeFill.SOLID ); vis.setShape( NodeShape.RECTANGLE ); n.setName( n.getName() + " [" + i + "]" ); if ( !chart_only ) { final NodeVisualData vis = new NodeVisualData(); vis.setFillType( NodeFill.SOLID ); vis.setShape( NodeShape.RECTANGLE );
&& ( prop.getAppliesTo() == AppliesTo.NODE ) ) { if ( node.getNodeData().getNodeVisualData() == null ) { node.getNodeData().setNodeVisualData( new NodeVisualData() );