|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.report.xls.FontInfo
public class FontInfo
Information of the text font.
Field Summary | |
---|---|
static short |
BOLD
Specifies that the font is bold. |
static byte |
BOTTOM
Represents bottom text alignment. |
static byte |
CENTER
Represents center text alignment. |
static int |
ITALIC
Specifies whether the font is italic. |
static byte |
LEFT
Represents left text alignment. |
static short |
NOBOLD
Specifies that the font is not bold. |
static int |
OUTLINE
Specifies whether the font has applied an outline effect. |
static byte |
RIGHT
Represents right text alignment. |
static int |
SHADOW
Specifies whether the font has applied a shadow effect. |
static short |
SS_NONE
Indicates that the font is neither superscript nor subscript. |
static short |
SS_SUB
Indicates that the font is subscript. |
static short |
SS_SUPER
Indicates that the font is superscript. |
static int |
STRIKEOUT
Specifies whether the font has applied strikethrough formatting. |
static byte |
TOP
Represents top text alignment. |
static byte |
U_DOUBLE
Represents double underline. |
static byte |
U_NONE
Represents no underline. |
static byte |
U_SINGLE
Represents single underline. |
Constructor Summary | |
---|---|
FontInfo()
Constructs a FontInfo object with the default value. |
|
FontInfo(short size,
short grbit,
short bold,
short effect,
byte underline,
int rgb,
java.lang.String name,
GlobalWorksheet gws)
Constructs a FontInfo object with these parameters: |
Method Summary | |
---|---|
boolean |
getBoldStyle()
Gets the flag whether it is in bold style or not. |
int |
getColor()
Gets the font's color. |
short |
getEffect()
Gets the type of superscript or subscript for the font. |
short |
getFontHeight()
Gets the height of font in the unit of 1/20 of a point. |
java.lang.String |
getFontName()
Gets the name of the font. |
short |
getGrbit()
Get the font attributes. |
byte |
getHAlignment()
Gets the horizontal alignment of the text. |
boolean |
getItalic()
Gets whether the font is italic. |
boolean |
getOutline()
Gets if the font is in outline style (Macintosh only). |
short |
getRotation()
Gets text rotation. |
boolean |
getShadow()
Gets if the font is in shadow style. |
boolean |
getStrickout()
Gets whether the font is strikethrough. |
byte |
getUnderline()
Gets the type of underlining for the font. |
byte |
getVAlignment()
Gets the vertical alignment of the text. |
void |
setBoldStyle(boolean bs)
Specifies whether it is in bold style or not. |
void |
setColor(int color,
GlobalWorksheet gws)
set the font's color. |
void |
setEffect(short effect)
Sets the type of superscript or subscript for the font. |
void |
setFontHeight(short height)
Sets the height of font in the unit of 1/20 of a point. |
void |
setFontName(java.lang.String name)
Sets the name of the font. |
void |
setHAlignment(byte ha)
Sets the horizontal alignment of the text. |
void |
setItalic(boolean fItalic)
Sets whether the font is italic. |
void |
setOutline(boolean fOutline)
Sets if the font is in outline style (Macintosh only). |
void |
setRotation(short rot)
Sets text rotation. |
void |
setShadow(boolean fShadow)
Sets if the font is in shadow style. |
void |
setStrickout(boolean fStrickout)
Sets whether the font is strikethrough. |
void |
setUnderline(byte u)
Sets the type of underlining for the font. |
void |
setVAlignment(byte va)
Sets the vertical alignment of the text. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ITALIC
public static final int STRIKEOUT
public static final int OUTLINE
public static final int SHADOW
public static final short SS_NONE
public static final short SS_SUPER
public static final short SS_SUB
public static final byte U_NONE
public static final byte U_SINGLE
public static final byte U_DOUBLE
public static final short BOLD
public static final short NOBOLD
public static final byte LEFT
public static final byte CENTER
public static final byte RIGHT
public static final byte TOP
public static final byte BOTTOM
Constructor Detail |
---|
public FontInfo()
FontInfo
object with the default value.
public FontInfo(short size, short grbit, short bold, short effect, byte underline, int rgb, java.lang.String name, GlobalWorksheet gws)
FontInfo
object with these parameters:
size
- height of the font(in the unit of 1/20 of a point)grbit
- font attributes, which can be the combined value of ITALIC
, STRIKEOUT
, OUTLINE
, and SHADOW
.bold
- bold style, which can be BOLD
or NOBOLD
effect
- superscript/subscript, which can be either SS_NONE
, SS_SUPER
or SS_SUB
.underline
- underline style, which can be either U_DOUBLE
, U_NONE
or U_SINGLE
rgb
- font colorname
- font nameMethod Detail |
---|
public void setFontHeight(short height)
height
- the height of font (in points/20)public short getFontHeight()
public void setItalic(boolean fItalic)
fItalic
- whether the font is italicpublic void setStrickout(boolean fStrickout)
fStrickout
- whether the font is strikethroughpublic void setOutline(boolean fOutline)
fOutline
- whether the font is in outline stylepublic void setShadow(boolean fShadow)
fShadow
- if the font is in shadow style or notpublic boolean getItalic()
public boolean getStrickout()
public boolean getOutline()
public boolean getShadow()
public short getGrbit()
public void setColor(int color, GlobalWorksheet gws)
color
- font's color rgbpublic int getColor()
public void setBoldStyle(boolean bs)
bs
- true is in bold stylepublic boolean getBoldStyle()
public void setEffect(short effect)
effect
- superscript or subscript optionSS_NONE
,
SS_SUPER
,
SS_SUB
public short getEffect()
SS_NONE
,
SS_SUPER
,
SS_SUB
public void setUnderline(byte u)
u
- underlining optionU_NONE
,
U_SINGLE
,
U_DOUBLE
public byte getUnderline()
U_NONE
,
U_SINGLE
,
U_DOUBLE
public void setFontName(java.lang.String name)
name
- name of the font (i.e. "Arial")public java.lang.String getFontName()
public void setRotation(short rot)
rot
- text rotationpublic short getRotation()
public void setHAlignment(byte ha)
ha
- horizontal alignment of the textLEFT
,
RIGHT
,
CENTER
public byte getHAlignment()
LEFT
,
RIGHT
,
CENTER
public void setVAlignment(byte va)
va
- vertical alignment of the textTOP
,
BOTTOM
,
CENTER
public byte getVAlignment()
TOP
,
BOTTOM
,
CENTER
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |