|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBiff
jet.report.xls.BFont
public class BFont
Specifies the excel font info.
| Field Summary | |
|---|---|
static short |
SS_NONE
Indicates that the font is neither super script nor subscript. |
static short |
SS_SUB
Indicates that the font is subscript. |
static short |
SS_SUPER
Indicates that the font is super script. |
static byte |
U_DOUBLE
Represents double underline. |
static byte |
U_DOUBLE_ACCOUNTING
Represents double accounting underline. |
static byte |
U_NONE
Represents no underline. |
static byte |
U_SINGLE
Represents single underline. |
static byte |
U_SINGLE_ACCOUNTING
Represents single accounting underline. |
| Constructor Summary | |
|---|---|
BFont()
Constructs a BFont record with the default value. |
|
BFont(BFont font)
Constructs a BFont record with an existing BFont record. |
|
BFont(short size,
short grbit,
short icv,
short bls,
short sss,
byte uls,
byte bFamily,
short bCharSet,
java.lang.String name)
Constructs a BFont record and sets its fields appropriately. |
|
| Method Summary | |
|---|---|
boolean |
getItalic()
Gets whether the font is italic. |
int |
getLength()
Gets the current size of the record. |
boolean |
getOutline()
Gets whether the font is in outline style (Macintosh only). |
boolean |
getShadow()
Gets whether the font is in shadow style (Macintosh only). |
boolean |
getStrickout()
Gets whether the font is strikethrough. |
void |
input(util.RandomAccessStream stream)
Inputs font from input stream. |
int |
opcode()
Gets the opcode of BFont. |
int |
output(util.RandomAccessStream stream)
Outputs class BFont. |
void |
setBoldStyle(boolean bs)
Sets the flag whether the font is bold or not. |
void |
setCharset(byte charset)
Sets the character set. |
void |
setColor(short icv)
Sets the font's color palette index. |
void |
setFamily(byte f)
Sets the font family. |
void |
setFontHeight(short height)
Sets the height of the font in 1/20th point units. |
void |
setFontName(java.lang.String name)
Sets the name of the font. |
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 |
setShadow(boolean fShadow)
Sets if the font is in shadow style (Macintosh only). |
void |
setStrickout(boolean fStrickout)
Sets whether the font is strikethrough. |
void |
setSuperSubScript(short sss)
Sets the type of superscript or subscript for the font. |
void |
setUnderline(byte u)
Sets the type of underlining for the font. |
java.lang.String |
toString()
Returns a string representation of the BFont |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 byte U_SINGLE_ACCOUNTING
public static final byte U_DOUBLE_ACCOUNTING
| Constructor Detail |
|---|
public BFont()
public BFont(BFont font)
public BFont(short size,
short grbit,
short icv,
short bls,
short sss,
byte uls,
byte bFamily,
short bCharSet,
java.lang.String name)
size - height of the font(in units of 1/20 of a point)grbit - font attributesicv - index to the color palettebls - bold Style.sss - superscript/subscriptuls - underline stylebFamily - font family, as defined by the Windows API LOGFONT structurebCharSet - character set, as defined by the Windows API LOGFONT structurename - font name| Method Detail |
|---|
public final int opcode()
public int output(util.RandomAccessStream stream)
throws java.io.IOException
java.io.IOException
public void input(util.RandomAccessStream stream)
throws java.io.IOException
java.io.IOExceptionpublic int getLength()
public void setFontHeight(short height)
height - fontheight (in points/20)public void setItalic(boolean fItalic)
fItalic - true specifies the font is italicpublic void setStrickout(boolean fStrickout)
fStrickout - true specifies the font is strikethroughpublic void setOutline(boolean fOutline)
fOutline - true specifies the font is in outline stylepublic void setShadow(boolean fShadow)
fShadow - true specifies the font is in shadow stylepublic boolean getItalic()
public boolean getStrickout()
public boolean getOutline()
public boolean getShadow()
public void setColor(short icv)
icv - font color indexpublic void setBoldStyle(boolean bs)
bs - true specifies that the font has bold stylepublic void setSuperSubScript(short sss)
sss - superscript or subscript optionSS_NONE,
SS_SUPER,
SS_SUBpublic void setUnderline(byte u)
u - underlining optionU_NONE,
U_SINGLE,
U_DOUBLE,
U_SINGLE_ACCOUNTING,
U_DOUBLE_ACCOUNTINGpublic void setFamily(byte f)
f - familypublic void setCharset(byte charset)
charset - - character setpublic void setFontName(java.lang.String name)
name - - name of the font (i.e. "Arial")public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||