public TextProperties build() {
        final String fontSize;
        if (this.fontSizePercentage > 0) {
            fontSize = new DecimalFormat("#.###", new DecimalFormatSymbols(Locale.US))
                    .format(this.fontSizePercentage) + "%";
        } else if (this.fontSizeLength != null) {
            fontSize = this.fontSizeLength.toString();
        } else {
            fontSize = null;
        }
        return new TextProperties(this.fontColor, this.fontName, this.fontWeight, this.fontStyle, fontSize,
                this.fontUnderlineColor, this.fontUnderlineStyle);
    }
public TextProperties build ( ) { final String fontSize ; if ( this . fontSizePercentage > 0 ) { fontSize = new DecimalFormat ( "#.###" , new DecimalFormatSymbols ( Locale . US ) ) . format ( this . fontSizePercentage ) + "%" ; } else if ( this . fontSizeLength != null ) { fontSize = this . fontSizeLength . toString ( ) ; } else { fontSize = null ; } return new TextProperties ( this . fontColor , this . fontName , this . fontWeight , this . fontStyle , fontSize , this . fontUnderlineColor , this . fontUnderlineStyle ) ; }
@return the TextProperties