|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBiff
jet.report.xls.Xf
public class Xf
Description: Extended Format. Record Body Length: 20 bytes Record Body Byte Structure: Byte Number Byte Description Contents (hex) 0-1 Index to the FONT record 2-3 Index to the FORMAT record 4-5 cell_options 6-7 alignment_options 8-9 indention_options 10-11 border_options 12-13 palette_options 14-17 adtl_palette_options 18-19 fill_palette_options; A Xf class extends Biff class.
| Field Summary | |
|---|---|
static short |
ALT_BARS
Wide dots |
static short |
BIG_SPOTS
Large spots |
static short |
BRICKS
Brick-like layout |
static short |
CENTER
|
static short |
CENTER_SELECTION
|
static short |
CINDENT
|
static short |
DASH_DOT
|
static short |
DASH_DOT_DOT
|
static short |
DASHED
|
static int |
DGBOTTOM
|
static int |
DGDIAG
|
static short |
DGLEFT
|
static short |
DGRIGHT
|
static short |
DGTOP
|
static int |
DIAGBOTH
|
static short |
DIAGDOWN
|
static int |
DIAGUP
|
static short |
DIAMONDS
Diamonds |
static short |
DOTTED
|
static short |
DOUBLE
|
static short |
F123PREFIX
|
static short |
FATRALC
|
static short |
FATRBDR
|
static short |
FATRFNT
|
static short |
FATRNUM
|
static short |
FATRPAT
|
static int |
FATRPROT
|
static short |
FHIDDEN
|
static short |
FILL
|
static short |
FINE_DOTS
Small fine dots |
static short |
FJUSTLAST
|
static short |
FLOCKED
The values of |
static int |
FLS
|
static short |
FMERGECELL
|
static short |
FSHRINKTOFIT
|
static short |
FSTYLE
|
static short |
FSXBUTTON
|
static short |
FWRAP
|
static int |
GENERAL
|
static short |
HAIR
|
static short |
ICVBACK
|
static int |
ICVBOTTOM
|
static int |
ICVDIAG
|
static short |
ICVFORE
|
static short |
ICVLEFT
|
static short |
ICVRIGHT
|
static int |
ICVTOP
|
static int |
IXFPARENT
|
static short |
JUSTIFY
|
static short |
LEFT
|
static short |
MEDIUM
|
static short |
MEDIUM_DASH_DOT
|
static short |
MEDIUM_DASH_DOT_DOT
|
static short |
MEDIUM_DASHED
|
static short |
NO_FILL
No background |
static short |
NONE
|
static int |
ORDER_CONTEXT
|
static short |
ORDER_LTOR
|
static short |
ORDER_RTOL
|
static short |
RIGHT
|
static short |
SLANTED_DASH_DOT
|
static short |
SOLID_FOREGROUND
Solidly filled |
static short |
SPARSE_DOTS
Sparse dots |
static short |
SQUARES
Squares |
static short |
THICK
|
static short |
THICK_BACKWARD_DIAG
Thick backward facing diagonals |
static short |
THICK_FORWARD_DIAG
Thick forward facing diagonals |
static short |
THICK_HORZ_BANDS
Thick horizontal bands |
static short |
THICK_VERT_BANDS
Thick vertical bands |
static short |
THIN
|
static short |
THIN_BACKWARD_DIAG
Thin backward diagonal |
static short |
THIN_FORWARD_DIAG
Thin forward diagonal |
static short |
THIN_HORZ_BANDS
Thin horizontal bands |
static short |
THIN_VERT_BANDS
Thin vertical bands |
static int |
TROT
|
static short |
VERTICAL_BOTTOM
|
static short |
VERTICAL_CENTER
|
static short |
VERTICAL_JUSTIFY
|
static int |
VERTICAL_TOP
|
| Constructor Summary | |
|---|---|
Xf()
Constructs a Xf record with default value. |
|
Xf(short font,
short format,
short cell_options,
short alignment_options,
short indention_options,
short border_options,
short palette_options,
int adtl_palette_options,
short fill_palette_options)
Constructs a Xf record and sets its fields appropriately. |
|
Xf(Xf xf)
Constructs a BFont record with a BFont record existed. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
short |
getBorderBottom()
get the border line style for the bottom border |
short |
getBorderLeft()
get the border line style for the left border |
short |
getBorderRight()
get the border line style for the right border |
short |
getBorderTop()
get the border line style for the top border |
short |
getDgDiag()
get the diagonal border line style |
int |
getFls()
get the fill pattern |
int |
getIcvBack()
get the background palette color index |
int |
getIcvBottom()
get the palette index for the bottom border color |
int |
getIcvDiag()
get the palette index for the diagonal border color |
int |
getIcvFore()
get the foreground palette color index |
int |
getIcvLeft()
get the palette index for the left border color |
int |
getIcvRight()
get the palette index for the right border color |
int |
getIcvTop()
get the palette index for the top border color |
short |
getIndent()
get indention (not sure of the units, think its spaces) |
short |
getixfParent()
get XF index of the parent style (usually 0/normal). |
short |
getTrot()
get the degree of rotation. |
boolean |
is123Prefix()
get some old holdover from lotus 123. |
boolean |
isAtrAlc()
get whether or not to use the alignment in this XF instead of the parent XF. |
boolean |
isAtrBdr()
get whether or not to use the border in this XF instead of the parent XF. |
boolean |
isAtrFnt()
get whether or not to use the font in this XF instead of the parent XF. |
boolean |
isAtrNum()
get whether or not to use the format in this XF instead of the parent XF. |
boolean |
isAtrPat()
get whether or not to use the pattern in this XF instead of the parent XF. |
boolean |
isAtrProt()
get whether or not to use the locking/hidden in this XF instead of the parent XF. |
boolean |
isCenter_selection()
get the alignment of text in the cell |
boolean |
isCenter()
Get the alignment of text in the cell RETURN whether to center |
boolean |
isDiagboth()
get whether diag both |
boolean |
isDiagdown()
get whether diag down |
boolean |
isDiagup()
get whether diag up |
boolean |
isFill()
get the alignment of text in the cell |
boolean |
isGeneral()
get the alignment of text in the cell return whether to general |
boolean |
isHidden()
get whether the cell is hidden or not |
boolean |
isJustify()
get the alignment of text in the cell |
boolean |
isJustLast()
Dunno. |
boolean |
isLeft()
set the alignment of text in the cell |
boolean |
isLocked()
get whether the cell is locked or not |
boolean |
isMergeCell()
get whether to merge cells |
boolean |
isOrder_context()
get the reading order for far east versions |
boolean |
isOrder_LToR()
get the reading order for far east versions |
boolean |
isOrder_RToL()
get the reading order for far east versions |
boolean |
isRight()
get the alignment of text in the cell |
boolean |
isShrinkToFit()
get whether to shrink the text to fit |
boolean |
isStyle()
get whether the cell is a cell or style XFRecord |
boolean |
isSxButton()
get whether the Xf record is attached to a PivotTable button |
boolean |
isVertical_bottom()
get the vertical alignment of text in the cell |
boolean |
isVertical_center()
get the vertical center alignment of text in the cell |
boolean |
isVertical_justify()
get the vertical alignment of text in the cell |
boolean |
isVertical_top()
get the vertical alignment of text in the cell |
boolean |
isWrap()
get whether to wrap the text in the cell see param FWRAP |
int |
opcode()
get the opcode of Xf. |
int |
output(RandomAccessStream stream)
output the record Xf |
void |
set123Prefix(boolean prefix)
set some old holdover from lotus 123. |
void |
setAlignment(int align)
set the alignment of the cell |
void |
setAtrAlc(boolean atralc)
set whether or not to use the alignment in this XF instead of the parent XF. |
void |
setAtrBdr(boolean atrbdr)
set whether or not to use the border in this XF instead of the parent XF. |
void |
setAtrFnt(boolean atrfnt)
set whether or not to use the font in this XF instead of the parent XF. |
void |
setAtrNum(boolean atrnum)
set whether or not to use the format in this XF instead of the parent XF. |
void |
setAtrPat(boolean atrpat)
set whether or not to use the pattern in this XF instead of the parent XF. |
void |
setAtrProt(boolean atrprot)
set whether or not to use the locking/hidden in this XF instead of the parent XF. |
void |
setBorderBottom(short border)
set the border line style for the bottom border |
void |
setBorderLeft(short border)
set the border line style for the left border |
void |
setBorderRight(short border)
set the border line style for the right border |
void |
setBorderTop(short border)
set the border line style for the top border |
void |
setDgDiag(short border)
set the diagonal border line style? Who the heck ever heard of a diagonal border? |
void |
setDiagboth(boolean diagboth)
set whether diag both |
void |
setDiagdown(boolean diagdown)
set whether diag down |
void |
setDiagup(boolean diagup)
set whether diag up |
void |
setFls(int fls)
set the fill pattern |
void |
setFontIndex(short index)
set the index of BFont record. |
void |
setFormatIndex(short index)
set the index of Format record. |
void |
setHidden(boolean hidden)
set whether the cell is hidden or not |
void |
setIcvBack(int icvback)
set the background palette color index |
void |
setIcvBottom(int icvbottom)
set the palette index for the bottom border color |
void |
setIcvDiag(int icvdiag)
set the palette index for the diagonal border color |
void |
setIcvFore(int icvfore)
set the foreground palette color index |
void |
setIcvLeft(int icvleft)
set the palette index for the left border color |
void |
setIcvRight(int icvright)
set the palette index for the right border color |
void |
setIcvTop(int icvtop)
set the palette index for the top border color |
void |
setIndent(short indent)
set indention (not sure of the units, think its spaces) if the cell alignment is Left, it is be set, else it to be set 0 |
void |
setixfParent(short ixf)
set XF index of the parent style (usually 0/normal). |
void |
setJustLast(boolean justlast)
Dunno. |
void |
setLocked(boolean locked)
set whether the cell is locked or not |
void |
setMergeCell(boolean mergecell)
set whether to merge cells |
void |
setReadOrder(int order)
set the reading order for far east versions |
void |
setShrinkToFit(boolean shrinktofit)
set whether to shrink the text to fit |
void |
setStyle(boolean style)
set whether the cell is a cell or style XFRecord |
void |
setSxButton(boolean sxbutton)
set whether the Xf record is attached to a PivotTable button |
void |
setTextRotationDegree(short degree)
set the text rotation degree |
void |
setTrot(short trot)
set the degree of rotation. |
void |
setVAlignment(int valc)
set the vertical alignment of the cell |
void |
setWrap(boolean wrap)
set whether to wrap the text in the cell see param FWRAP |
java.lang.String |
toString()
get the Returns a string representation of the Xf |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final short FLOCKED
public static final short FHIDDEN
public static final short FSTYLE
public static final short F123PREFIX
public static final int IXFPARENT
public static final int GENERAL
public static final short LEFT
public static final short CENTER
public static final short RIGHT
public static final short FILL
public static final short JUSTIFY
public static final short CENTER_SELECTION
public static final short FWRAP
public static final int VERTICAL_TOP
public static final short VERTICAL_CENTER
public static final short VERTICAL_BOTTOM
public static final short VERTICAL_JUSTIFY
public static final short FJUSTLAST
public static final int TROT
public static final short CINDENT
public static final short FSHRINKTOFIT
public static final short FMERGECELL
public static final int ORDER_CONTEXT
public static final short ORDER_LTOR
public static final short ORDER_RTOL
public static final short FATRNUM
public static final short FATRFNT
public static final short FATRALC
public static final short FATRBDR
public static final short FATRPAT
public static final int FATRPROT
public static final short DGLEFT
public static final short DGRIGHT
public static final short DGTOP
public static final int DGBOTTOM
public static final short NONE
public static final short THIN
public static final short MEDIUM
public static final short DASHED
public static final short DOTTED
public static final short THICK
public static final short DOUBLE
public static final short HAIR
public static final short MEDIUM_DASHED
public static final short DASH_DOT
public static final short MEDIUM_DASH_DOT
public static final short DASH_DOT_DOT
public static final short MEDIUM_DASH_DOT_DOT
public static final short SLANTED_DASH_DOT
public static final short ICVLEFT
public static final short ICVRIGHT
public static final short DIAGDOWN
public static final int DIAGUP
public static final int DIAGBOTH
public static final int ICVTOP
public static final int ICVBOTTOM
public static final int ICVDIAG
public static final int DGDIAG
public static final int FLS
public static final short ICVFORE
public static final short ICVBACK
public static final short FSXBUTTON
public static final short NO_FILL
public static final short SOLID_FOREGROUND
public static final short FINE_DOTS
public static final short ALT_BARS
public static final short SPARSE_DOTS
public static final short THICK_HORZ_BANDS
public static final short THICK_VERT_BANDS
public static final short THICK_BACKWARD_DIAG
public static final short THICK_FORWARD_DIAG
public static final short BIG_SPOTS
public static final short BRICKS
public static final short THIN_HORZ_BANDS
public static final short THIN_VERT_BANDS
public static final short THIN_BACKWARD_DIAG
public static final short THIN_FORWARD_DIAG
public static final short SQUARES
public static final short DIAMONDS
| Constructor Detail |
|---|
public Xf()
public Xf(Xf xf)
public Xf(short font,
short format,
short cell_options,
short alignment_options,
short indention_options,
short border_options,
short palette_options,
int adtl_palette_options,
short fill_palette_options)
font - Index to the FONT recordformat - Index to the FORMAT recordcell_options - Cell optionsalignment_options - Alignment options.indention_options - Indention options.border_options - Border options.palette_options - Palette options.adtl_palette_options - Palette options..fill_palette_options - Palette options..| Method Detail |
|---|
public final int opcode()
public java.lang.String toString()
public boolean equals(java.lang.Object object)
public void setFontIndex(short index)
index - The index of BFont record.public void setFormatIndex(short index)
index - The index of Format record.public boolean isLocked()
FLOCKEDpublic void setLocked(boolean locked)
locked - - if the cell is lockedFLOCKEDpublic boolean isHidden()
FHIDDENpublic void setHidden(boolean hidden)
hidden - - if the cell is hiddenFHIDDENpublic boolean isStyle()
FSTYLEpublic void setStyle(boolean style)
type - - cell or style (0/1)FSTYLEpublic boolean is123Prefix()
F123PREFIXpublic void set123Prefix(boolean prefix)
prefix - - the lotus thing to set.F123PREFIXpublic void setixfParent(short ixf)
ixf - index of parent XFIXFPARENTpublic short getixfParent()
IXFPARENTpublic void setAlignment(int align)
GENERAL,
LEFT,
CENTER,
RIGHT,
FILL,
JUSTIFY,
CENTER_SELECTION
1 for left; 2 for center; 3 for right; 4 for fill; 5 for justify
6 for center across selection.public boolean isGeneral()
GENERALpublic boolean isLeft()
LEFTpublic boolean isCenter()
CENTERpublic boolean isRight()
RIGHTpublic boolean isFill()
FILLpublic boolean isJustify()
JUSTIFYpublic boolean isCenter_selection()
CENTER_SELECTIONpublic boolean isWrap()
public void setWrap(boolean wrap)
wrap - - whether or not to wrap the cell textpublic void setVAlignment(int valc)
VERTICAL_TOP,
VERTICAL_CENTER,
VERTICAL_BOTTOM,
VERTICAL_JUSTIFYpublic boolean isVertical_top()
VERTICAL_TOPpublic boolean isVertical_center()
VERTICAL_CENTERpublic boolean isVertical_bottom()
VERTICAL_BOTTOMpublic boolean isVertical_justify()
VERTICAL_JUSTIFYpublic boolean isJustLast()
FJUSTLASTpublic void setJustLast(boolean justlast)
justlast - FJUSTLASTpublic void setTextRotationDegree(short degree)
degree, - its value may be -90~+90public void setTrot(short trot)
trot - the degree of rotationpublic short getTrot()
public void setIndent(short indent)
indent - - how far to indent the cellpublic short getIndent()
public boolean isShrinkToFit()
FSHRINKTOFITpublic void setShrinkToFit(boolean shrinktofit)
shrinktofit - - shrink to fit or notFSHRINKTOFITpublic boolean isMergeCell()
FMERGECELLpublic void setMergeCell(boolean mergecell)
mergecell - - merge cells or notFMERGECELLpublic void setReadOrder(int order)
order_context - - is context order or notORDER_CONTEXT,
ORDER_LTOR,
ORDER_RTOLpublic boolean isOrder_context()
ORDER_CONTEXTpublic boolean isOrder_LToR()
ORDER_LTORpublic boolean isOrder_RToL()
ORDER_RTOLpublic boolean isAtrNum()
FATRNUMpublic void setAtrNum(boolean atrnum)
atrnum - - true if this XF has a different format value than its parent,
false otherwise.FATRNUMpublic boolean isAtrFnt()
public void setAtrFnt(boolean atrfnt)
atrfnt - - true if this XF has a different font value than its parent,
false otherwise.public boolean isAtrAlc()
public void setAtrAlc(boolean atralc)
atralc - true if this XF has a different alignment value than its parent,
false otherwise.public boolean isAtrBdr()
public void setAtrBdr(boolean atrbdr)
atrbdr - - true if this XF has a different border value than its parent,
false otherwise.public boolean isAtrPat()
public void setAtrPat(boolean atrpat)
atrpat- - true if this XF has a different pattern value than its parent,
false otherwise.public boolean isAtrProt()
public void setAtrProt(boolean atrprot)
atrprot- - true if this XF has a different locking or hidden value than its parent,
false otherwise.public void setBorderLeft(short border)
border - - type of border for the side of the cellNONE,
THIN,
MEDIUM,
DASHED,
DOTTED,
THICK,
DOUBLE,
HAIR,
MEDIUM_DASHED,
DASH_DOT,
MEDIUM_DASH_DOT,
DASH_DOT_DOT,
MEDIUM_DASH_DOT_DOT,
SLANTED_DASH_DOTpublic short getBorderLeft()
public void setBorderRight(short border)
border - - type of border for the right side of the cellNONE,
THIN,
MEDIUM,
DASHED,
DOTTED,
THICK,
DOUBLE,
HAIR,
MEDIUM_DASHED,
DASH_DOT,
MEDIUM_DASH_DOT,
DASH_DOT_DOT,
MEDIUM_DASH_DOT_DOT,
SLANTED_DASH_DOTpublic short getBorderRight()
public void setBorderTop(short border)
border - - type of border for the top of the cellNONE,
THIN,
MEDIUM,
DASHED,
DOTTED,
THICK,
DOUBLE,
HAIR,
MEDIUM_DASHED,
DASH_DOT,
MEDIUM_DASH_DOT,
DASH_DOT_DOT,
MEDIUM_DASH_DOT_DOT,
SLANTED_DASH_DOTpublic short getBorderTop()
public void setBorderBottom(short border)
border - - type of border for the bottom of the cellNONE,
THIN,
MEDIUM,
DASHED,
DOTTED,
THICK,
DOUBLE,
HAIR,
MEDIUM_DASHED,
DASH_DOT,
MEDIUM_DASH_DOT,
DASH_DOT_DOT,
MEDIUM_DASH_DOT_DOT,
SLANTED_DASH_DOTpublic short getBorderBottom()
public void setIcvLeft(int icvleft)
icvleft - - palette indexpublic int getIcvLeft()
public void setIcvRight(int icvright)
icvright - - palette indexpublic int getIcvRight()
public boolean isDiagdown()
public void setDiagdown(boolean diagdown)
diagdown - - set whether diag down.public boolean isDiagup()
public void setDiagup(boolean diagup)
diagup - - set whether diag up.public boolean isDiagboth()
public void setDiagboth(boolean diagboth)
diagboth - - set whether diag both.public void setIcvTop(int icvtop)
icvtop - - palette indexpublic int getIcvTop()
public void setIcvBottom(int icvbottom)
icvbottom - - palette indexpublic int getIcvBottom()
public void setIcvDiag(int icvdiag)
icvdiag - - palette indexpublic int getIcvDiag()
public void setDgDiag(short border)
diag - - the line styleNONE,
THIN,
MEDIUM,
DASHED,
DOTTED,
THICK,
DOUBLE,
HAIR,
MEDIUM_DASHED,
DASH_DOT,
MEDIUM_DASH_DOT,
DASH_DOT_DOT,
MEDIUM_DASH_DOT_DOT,
SLANTED_DASH_DOTpublic short getDgDiag()
public void setFls(int fls)
fls - - fill patternNO_FILL,
SOLID_FOREGROUND,
FINE_DOTS,
ALT_BARS,
SPARSE_DOTS,
THICK_HORZ_BANDS,
THICK_VERT_BANDS,
THICK_BACKWARD_DIAG,
THICK_FORWARD_DIAG,
BIG_SPOTS,
BRICKS,
THIN_HORZ_BANDS,
THIN_VERT_BANDS,
THIN_BACKWARD_DIAG,
THIN_FORWARD_DIAG,
SQUARES,
DIAMONDSpublic int getFls()
public void setIcvFore(int icvfore)
icvfore - - palette indexpublic int getIcvFore()
public void setIcvBack(int icvback)
icvback - - palette indexpublic int getIcvBack()
public boolean isSxButton()
public void setSxButton(boolean sxbutton)
sxbutton - - whether or not to attached to a PivotTable button
public int output(RandomAccessStream stream)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||