@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() ); }
AppliesTo.NODE ) ); if ( getFillType() != NodeFill.DEFAULT ) { String fill = null; if ( getFillType() == NodeFill.GRADIENT ) { fill = NODE_FILL_GRADIENT; else if ( getFillType() == NodeFill.NONE ) { fill = NODE_FILL_NONE; else if ( getFillType() == NodeFill.SOLID ) { fill = NODE_FILL_SOLID; throw new RuntimeException( "unknown fill type " + getFillType() );
public final boolean isEmpty() { return ( ForesterUtil.isEmpty( getFontName() ) && ( getFontStyle() == FontType.PLAIN ) && ( getFontSize() == DEFAULT_FONT_SIZE ) && ( getFontColor() == null ) && ( getShape() == NodeShape.DEFAULT ) && ( getFillType() == NodeFill.DEFAULT ) && ( getNodeColor() == null ) && ( getSize() == DEFAULT_SIZE ) && ( getTransparency() == DEFAULT_TRANSPARENCY ) ); }
.getNodeData().getNodeVisualData().getNodeColor() != null ) || ( node.getNodeData().getNodeVisualData().getSize() != NodeVisualData.DEFAULT_SIZE ) || ( node.getNodeData().getNodeVisualData().getFillType() != NodeFill.DEFAULT ) || ( node .getNodeData().getNodeVisualData().getShape() != NodeShape.DEFAULT ) ) ) ) || ( getControlPanel().isEvents() && node.isHasAssignedEvent() && ( node.getNodeData().getEvent() if ( vis.getFillType() == NodeFill.SOLID ) { fill = NodeFill.SOLID; else if ( vis.getFillType() == NodeFill.NONE ) { fill = NodeFill.NONE; else if ( vis.getFillType() == NodeFill.GRADIENT ) { fill = NodeFill.GRADIENT;