|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.win32.jexcel.format.Font
public class Font
This class provides functionality for text font customization.
Nested Class Summary | |
---|---|
static class |
Font.Alignment
This class is an enumeration of font effects. |
static class |
Font.UnderlineStyle
This class is an enumeration of font underline styles. |
Constructor Summary | |
---|---|
Font()
Create a default font. |
|
Font(java.awt.Font font)
Create a Font class instance from Font object. |
|
Font(com.jniwrapper.win32.excel.Font font)
|
|
Font(java.lang.String name,
double size)
Creates a font with the specified name and size. |
Method Summary | |
---|---|
Font.Alignment |
getAlignment()
Returns an applied font effect. |
java.awt.Color |
getColor()
Returns the font color. |
java.lang.String |
getName()
Returns the font name. |
double |
getSize()
Returns the font size. |
Font.UnderlineStyle |
getUnderlineStyle()
Returns the font underline style. |
boolean |
isBold()
Returns true if the font is bold. |
boolean |
isItalic()
Returns true if the font is italic. |
boolean |
isStrikethrough()
Returns true if the font is striked through. |
void |
setAlignment(Font.Alignment alignment)
Sets up a font effect. |
void |
setBold(boolean bold)
Specifies if the font is bold or not. |
void |
setColor(java.awt.Color color)
Specifies a font color. |
void |
setItalic(boolean italic)
Specifies if the font is italic or not. |
void |
setName(java.lang.String name)
Specifies a font name. |
void |
setSize(double size)
Specifies a font size. |
void |
setStrikethrough(boolean strikethrough)
Specifies if the font is striked through or not. |
void |
setUnderlineStyle(Font.UnderlineStyle underlineStyle)
Specifies a font underline style. |
void |
toExcelFont(com.jniwrapper.win32.excel.Font font)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Font()
public Font(java.awt.Font font)
Font
object.
font
- is a Font
object.public Font(java.lang.String name, double size)
name
- is a font name.size
- is a font size.public Font(com.jniwrapper.win32.excel.Font font)
Method Detail |
---|
public void toExcelFont(com.jniwrapper.win32.excel.Font font)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- is a font name.public double getSize()
public void setSize(double size)
size
- is a font size.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- is a font color.public boolean isBold()
true
if the font is bold.
true
if the font is bold.public void setBold(boolean bold)
bold
- specifies if the font is bold or not.public boolean isItalic()
true
if the font is italic.
true
if the font is italic.public void setItalic(boolean italic)
italic
- specifies if the font is italic or not.public boolean isStrikethrough()
true
if the font is striked through.
true
if the font is striked through.public void setStrikethrough(boolean strikethrough)
strikethrough
- specifies if the font is striked through or not.public Font.UnderlineStyle getUnderlineStyle()
Font.UnderlineStyle
public void setUnderlineStyle(Font.UnderlineStyle underlineStyle)
underlineStyle
- is an instance of Font.UnderlineStyle
class.Font.UnderlineStyle
public Font.Alignment getAlignment()
Font.Alignment
public void setAlignment(Font.Alignment alignment)
alignment
- is an instance of Font.Alignment
class.Font.Alignment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |