|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.report.xls.FontInfo
public class FontInfo
Information of text font
| Field Summary | |
|---|---|
static short |
BOLD
|
static byte |
BOTTOM
|
static byte |
CENTER
|
static int |
ITALIC
|
static byte |
LEFT
|
static short |
NOBOLD
|
static int |
OUTLINE
|
static byte |
RIGHT
|
static int |
SHADOW
|
static short |
SS_NONE
|
static short |
SS_SUB
|
static short |
SS_SUPER
|
static int |
STRIKEOUT
|
static byte |
TOP
|
static byte |
U_DOUBLE
|
static byte |
U_NONE
|
static byte |
U_SINGLE
|
| Constructor Summary | |
|---|---|
FontInfo()
Constructs a FontInfo record with default value. |
|
FontInfo(short size,
short grbit,
short bold,
short effect,
byte underline,
int rgb,
java.lang.String name,
GlobalWorksheet gws)
Constructs a FontInfo record and sets its fields appropriately. |
|
| Method Summary | |
|---|---|
boolean |
getBoldStyle()
get the bold weight for this font (100-1000dec or 0x64-0x3e8). |
int |
getColor()
get the font's color |
short |
getEffect()
get the type of super or subscript for the font |
short |
getFontHeight()
gets the height of the font in 1/20th point units |
java.lang.String |
getFontName()
get the name of the font |
short |
getGrbit()
get font attributes |
byte |
getHAlignment()
get the horizonal alignment of the text |
boolean |
getItalic()
get whether the font is italic |
boolean |
getOutline()
get if the font is outline style (Macintosh only) |
short |
getRotation()
get the text rotation |
boolean |
getShadow()
get if the font is shadow style |
boolean |
getStrickout()
get whether the font is struck out |
byte |
getUnderline()
get the type of underlining for the font |
byte |
getVAlignment()
get the vertical alignment of the text |
void |
setBoldStyle(boolean bs)
set the bold weight for this font (100-1000dec or 0x64-0x3e8). |
void |
setColor(int color,
GlobalWorksheet gws)
set the font's color |
void |
setEffect(short effect)
set the type of super or subscript for the font |
void |
setFontHeight(short height)
sets the height of the font in 1/20th point units |
void |
setFontName(java.lang.String name)
set the name of the font |
void |
setHAlignment(byte ha)
set the horizonal alignment of the text |
void |
setItalic(boolean fItalic)
set whether the font is italic |
void |
setOutline(boolean fOutline)
set if the font is outline style (Macintosh only) |
void |
setRotation(short rot)
set text rotation |
void |
setShadow(boolean fShadow)
set if the font is shadow style |
void |
setStrickout(boolean fStrickout)
set whether the font is struck out |
void |
setUnderline(byte u)
set the type of underlining for the font |
void |
setVAlignment(byte va)
set 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()
public FontInfo(short size,
short grbit,
short bold,
short effect,
byte underline,
int rgb,
java.lang.String name,
GlobalWorksheet gws)
size - Height of the font(in units of 1/20 of a point)grbit - Font attributes, ITALIC, STRIKEOUT, OUTLINE, SHADOW or combine value of them.bold - Bold Style, BOLD or NOBOLD.effect - Superscript/subscript, SS_NONE, SS_SUPER or SS_SUBunderline - Underline style, U_NONE, U_SINGLE OR U_DOUBLErgb - Font colorname - Font name| Method Detail |
|---|
public void setFontHeight(short height)
height - fontheight (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 struck outpublic void setOutline(boolean fOutline)
fOutline - :whether the font is outline stylepublic void setShadow(boolean fShadow)
fShadow - :the font is shadow styleor notpublic boolean getItalic()
public boolean getStrickout()
public boolean getOutline()
public boolean getShadow()
public short getGrbit()
public void setColor(int color,
GlobalWorksheet gws)
cpi - - font color rgbpublic int getColor()
public void setBoldStyle(boolean bs)
bw - - a number between 100-1000 for the fonts "boldness"public boolean getBoldStyle()
public void setEffect(short effect)
effect - super or subscript optionSS_NONE,
SS_SUPER,
SS_SUBpublic short getEffect()
SS_NONE,
SS_SUPER,
SS_SUBpublic void setUnderline(byte u)
u - super or subscript optionU_NONE,
U_SINGLE,
U_DOUBLEpublic byte getUnderline()
U_NONE,
U_SINGLE,
U_DOUBLEpublic void setFontName(java.lang.String name)
fn - - 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 - horizonal alignment of the textLEFT,
RIGHT,
CENTERpublic byte getHAlignment()
LEFT,
RIGHT,
CENTERpublic void setVAlignment(byte va)
va - vertical alignment of the textTOP,
BOTTOM,
CENTERpublic byte getVAlignment()
TOP,
BOTTOM,
CENTER
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||