예제 #1
0
  /**
   * Sets a <tt>JRFont</tt> object containing all font properties for this text element
   *
   * @deprecated
   */
  public void setFont(JRFont font) {
    setReportFont(font.getReportFont());

    setFontName(font.getOwnFontName());
    setBold(font.isOwnBold());
    setItalic(font.isOwnItalic());
    setUnderline(font.isOwnUnderline());
    setStrikeThrough(font.isOwnStrikeThrough());
    setFontSize(font.getOwnSize());
    setPdfFontName(font.getOwnPdfFontName());
    setPdfEncoding(font.getOwnPdfEncoding());
    setPdfEmbedded(font.isOwnPdfEmbedded());
  }
예제 #2
0
 public void setStrikeThrough(boolean isStrikeThrough) {
   setStrikeThrough(isStrikeThrough ? Boolean.TRUE : Boolean.FALSE);
 }