|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.converter.xml.sxc.Format
This class specifies the format for a given spreadsheet cell.
Constructor Summary | |
Format()
Constructor for creating a new Format . |
|
Format(Format fmt)
Constructor for creating a new Format object
based on an existing one. |
Method Summary | |
void |
clearFormatting()
Reset this Format description. |
java.awt.Color |
getBackground()
Get the Foreground Color for this cell |
java.lang.String |
getCategory()
Return the formatting category of the object. |
int |
getDecimalPlaces()
Get the number of decimal places displayed. |
java.lang.String |
getFont()
Get the font used for this cell. |
java.awt.Color |
getForeground()
Get the Foreground Color for this cell. |
java.lang.String |
getFormatSpecifier()
Get the Format specifier for this category. |
boolean |
isBold()
Get the object's bold flag. |
boolean |
isItalic()
Get the object's italic flag. |
boolean |
isUnderline()
Get the object's underline flag. |
void |
setBackground(java.awt.Color color)
Set the Background Color for this cell |
void |
setBold(boolean value)
Set the object's bold flag. |
void |
setCategory(java.lang.String newCategory)
Set the formatting category of this object, i.e. |
void |
setDecimalPlaces(int precision)
Set the precision of the number to be displayed. |
void |
setFont(java.lang.String fontName)
Set the font used for this cell. |
void |
setForeground(java.awt.Color color)
Set the Foreground Color for this cell. |
void |
setFormatSpecifier(java.lang.String formatString)
Set the Format specifier for this category. |
void |
setItalic(boolean value)
Set the object's italic flag. |
void |
setUnderline(boolean value)
Set the object's underline flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Format()
Format
.public Format(Format fmt)
Format
object
based on an existing one.fmt
- Format
to copy.Method Detail |
public void clearFormatting()
Format
description.public java.awt.Color getBackground()
Color
for this cellColor
valuepublic java.lang.String getCategory()
OfficeConstants
public int getDecimalPlaces()
public java.lang.String getFont()
public java.awt.Color getForeground()
Color
for this cell.Color
value.public java.lang.String getFormatSpecifier()
Format
specifier for this category.Format
specifier for this category.public boolean isBold()
public boolean isItalic()
public boolean isUnderline()
public void setBackground(java.awt.Color color)
Color
for this cellcolor
- A Color
object representing
the background color.public void setBold(boolean value)
value
- The value of the bold flag. true is bold,
false is not bold.public void setCategory(java.lang.String newCategory)
OfficeConstants
class contains string
constants for the category types.newCategory
- The name of the category to be set.OfficeConstants
public void setDecimalPlaces(int precision)
precision
- The number of decimal places to display.public void setFont(java.lang.String fontName)
fontName
- The name of the font.public void setForeground(java.awt.Color color)
Color
for this cell.color
- A Color
object representing the
foreground color.public void setFormatSpecifier(java.lang.String formatString)
Format
specifier for this category.formatString
- The new Format
specifier.public void setItalic(boolean value)
value
- The value of the italic flag. true is italic,
false is not italic.public void setUnderline(boolean value)
value
- The value of the underline flag. true is underlined,
false is not underlined.
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |