public class HSSFFooter
extends java.lang.Object
The footer works by having a left, center, and right side. The total cannot be more that 255 bytes long. One uses this class by getting the HSSFFooter from HSSFSheet and then getting or setting the left, center, and right side. For special things (such as page numbers and date), one can use a the methods that return the characters used to represent these. One can also change the fonts by using similar methods.
Modifier | Constructor and Description |
---|---|
protected |
HSSFFooter(FooterRecord footerRecord)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
date()
Returns the string representing the current date
|
static java.lang.String |
endDoubleUnderline()
Returns the string representing the end double underline
|
static java.lang.String |
endUnderline()
Returns the string representing the end underline
|
static java.lang.String |
file()
Returns the string representing the current file name
|
static java.lang.String |
font(java.lang.String font,
java.lang.String style)
Returns the string that represents the change in font.
|
static java.lang.String |
fontSize(short size)
Returns the string that represents the change in font size.
|
java.lang.String |
getCenter()
Get the center of the footer.
|
java.lang.String |
getLeft()
Get the left side of the footer.
|
java.lang.String |
getRight()
Get the right side of the footer.
|
static java.lang.String |
numPages()
Returns the string representing the number of pages.
|
static java.lang.String |
page()
Returns the string representing the current page number
|
void |
setCenter(java.lang.String newCenter)
Sets the center string.
|
void |
setLeft(java.lang.String newLeft)
Sets the left string.
|
void |
setRight(java.lang.String newRight)
Sets the right string.
|
static java.lang.String |
startDoubleUnderline()
Returns the string representing the start double underline
|
static java.lang.String |
startUnderline()
Returns the string representing the start underline
|
static java.lang.String |
tab()
Returns the string representing the current tab (sheet) name
|
static java.lang.String |
time()
Returns the string representing the current time
|
protected HSSFFooter(FooterRecord footerRecord)
footerRecord
- Footer record to create the footer withpublic java.lang.String getLeft()
public void setLeft(java.lang.String newLeft)
newLeft
- The string to set as the left side.public java.lang.String getCenter()
public void setCenter(java.lang.String newCenter)
newCenter
- The string to set as the center.public java.lang.String getRight()
public void setRight(java.lang.String newRight)
newRight
- The string to set as the right side.public static java.lang.String fontSize(short size)
size
- the new font sizepublic static java.lang.String font(java.lang.String font, java.lang.String style)
font
- the new fontstyle
- the fonts stylepublic static java.lang.String page()
public static java.lang.String numPages()
public static java.lang.String date()
public static java.lang.String time()
public static java.lang.String file()
public static java.lang.String tab()
public static java.lang.String startUnderline()
public static java.lang.String endUnderline()
public static java.lang.String startDoubleUnderline()
public static java.lang.String endDoubleUnderline()
Copyright © 2014 Open Microscopy Environment