appendInternal('&'); appendInternal(fontSize); return true;
/** * Retrieves a <code>String</code>ified * version of this object * * @return the header string */ public String toString() { StringBuffer hf = new StringBuffer(); if (!left.empty()) { hf.append(LEFT_ALIGN); hf.append(left.getContents()); } if (!centre.empty()) { hf.append(CENTRE); hf.append(centre.getContents()); } if (!right.empty()) { hf.append(RIGHT_ALIGN); hf.append(right.getContents()); } return hf.toString(); }
appendInternal('&'); appendInternal(fontSize); return true;
/** * Retrieves a <code>String</code>ified * version of this object * * @return the header string */ public String toString() { StringBuffer hf = new StringBuffer(); if (!left.empty()) { hf.append(LEFT_ALIGN); hf.append(left.getContents()); } if (!centre.empty()) { hf.append(CENTRE); hf.append(centre.getContents()); } if (!right.empty()) { hf.append(RIGHT_ALIGN); hf.append(right.getContents()); } return hf.toString(); }
/** * Sets the font of text subsequently appended to this * object.. Previously appended text is not affected. * <p/> * <strong>Note:</strong> no checking is performed to * determine if fontName is a valid font. * * @param fontName name of the font to use */ protected void setFontName(String fontName) { // Font name must be in quotations appendInternal("&\""); appendInternal(fontName); appendInternal('\"'); }
/** * Sets the font of text subsequently appended to this * object.. Previously appended text is not affected. * <p/> * <strong>Note:</strong> no checking is performed to * determine if fontName is a valid font. * * @param fontName name of the font to use */ protected void setFontName(String fontName) { // Font name must be in quotations appendInternal("&\""); appendInternal(fontName); appendInternal('\"'); }
/** * Turns strikethrough printing on or off. Strikethrough printing * is initially off. Text subsequently appended to * this object will be striked out until this method is * called again. */ protected void toggleStrikethrough() { appendInternal(STRIKETHROUGH_TOGGLE); }
/** * Turns italics printing on or off. Italics printing * is initially off. Text subsequently appended to * this object will be italicized until this method is * called again. */ protected void toggleItalics() { appendInternal(ITALICS_TOGGLE); }
/** * Appends the current date */ public void appendDate() { super.appendDate(); }
/** * Appends the worksheet name */ protected void appendWorkSheetName() { appendInternal(WORKSHEET_NAME); }
/** * Appends the current time */ protected void appendTime() { appendInternal(TIME); }
/** * Appends the page number */ protected void appendPageNumber() { appendInternal(PAGENUM); }
/** * Appends the text to the string buffer * * @param txt */ protected void append(String txt) { appendInternal(txt); }
/** * Appends the workbook name */ protected void appendWorkbookName() { appendInternal(WORKBOOK_NAME); }
/** * Appends the page number */ protected void appendPageNumber() { appendInternal(PAGENUM); }
/** * Turns shadow printing on or off (Macintosh only). * Shadow printing is initially off. Text subsequently appended * to this object will be shadowed until this method is * called again. */ protected void toggleShadow() { appendInternal(SHADOW_TOGGLE); }
/** * Turns outline printing on or off (Macintosh only). * Outline printing is initially off. Text subsequently appended * to this object will be outlined until this method is * called again. */ protected void toggleOutline() { appendInternal(OUTLINE_TOGGLE); }
/** * Turns subscript printing on or off. Subscript printing * is initially off. Text subsequently appended to * this object will be subscripted until this method is * called again. */ protected void toggleSubScript() { appendInternal(SUBSCRIPT_TOGGLE); }
/** * Turns superscript printing on or off. Superscript printing * is initially off. Text subsequently appended to * this object will be superscripted until this method is * called again. */ protected void toggleSuperScript() { appendInternal(SUPERSCRIPT_TOGGLE); }