Save This Page
Home » cocoon-2.1.11-src » org.apache.cocoon.poi » hssf » record » [javadoc | source]
org.apache.cocoon.poi.hssf.record
public class: ExtendedFormatRecord [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.hssf.record.Record
      org.apache.cocoon.poi.hssf.record.ExtendedFormatRecord
Title: Extended Format Record Description: Probably one of the more complex records. There are two breeds: Style and Cell.

It should be noted that fields in the extended format record are somewhat arbitrary. Almost all of the fields are bit-level, but we name them as best as possible by functional group. In some places this is better than others.

Copyright: Copyright (c) 2001 SuperLink Software, Inc.

REFERENCE: PG 426 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

Field Summary
public static final  short sid     
public static final  short NULL     
public static final  short XF_STYLE     
public static final  short XF_CELL     
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 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 VERTICAL_TOP     
public static final  short VERTICAL_CENTER     
public static final  short VERTICAL_BOTTOM     
public static final  short VERTICAL_JUSTIFY     
Fields inherited from org.apache.cocoon.poi.hssf.record.Record:
sid
Constructor:
 public ExtendedFormatRecord() 
 public ExtendedFormatRecord(short id,
    short size,
    byte[] data) 
 public ExtendedFormatRecord(short id,
    short size,
    byte[] data,
    int offset) 
Method from org.apache.cocoon.poi.hssf.record.ExtendedFormatRecord Summary:
fillFields,   get123Prefix,   getAdtlDiag,   getAdtlDiagLineStyle,   getAdtlFillPattern,   getAdtlPaletteOptions,   getAlignment,   getAlignmentOptions,   getBorderBottom,   getBorderLeft,   getBorderOptions,   getBorderRight,   getBorderTop,   getBottomBorderPaletteIdx,   getCellOptions,   getDiag,   getFillBackground,   getFillForeground,   getFillPaletteOptions,   getFontIndex,   getFormatIndex,   getIndent,   getIndentionOptions,   getJustifyLast,   getLeftBorderPaletteIdx,   getMergeCells,   getPaletteOptions,   getParentIndex,   getReadingOrder,   getRightBorderPaletteIdx,   getRotation,   getShrinkToFit,   getSid,   getTopBorderPaletteIdx,   getVerticalAlignment,   getWrapText,   getXFType,   isHidden,   isIndentNotParentAlignment,   isIndentNotParentBorder,   isIndentNotParentCellOptions,   isIndentNotParentFont,   isIndentNotParentFormat,   isIndentNotParentPattern,   isLocked,   serialize,   set123Prefix,   setAdtlDiag,   setAdtlDiagLineStyle,   setAdtlFillPattern,   setAdtlPaletteOptions,   setAlignment,   setAlignmentOptions,   setBorderBottom,   setBorderLeft,   setBorderOptions,   setBorderRight,   setBorderTop,   setBottomBorderPaletteIdx,   setCellOptions,   setDiag,   setFillBackground,   setFillForeground,   setFillPaletteOptions,   setFontIndex,   setFormatIndex,   setHidden,   setIndent,   setIndentNotParentAlignment,   setIndentNotParentBorder,   setIndentNotParentCellOptions,   setIndentNotParentFont,   setIndentNotParentFormat,   setIndentNotParentPattern,   setIndentionOptions,   setJustifyLast,   setLeftBorderPaletteIdx,   setLocked,   setMergeCells,   setPaletteOptions,   setParentIndex,   setReadingOrder,   setRightBorderPaletteIdx,   setRotation,   setShrinkToFit,   setTopBorderPaletteIdx,   setVerticalAlignment,   setWrapText,   setXFType,   toString,   validateSid
Methods from org.apache.cocoon.poi.hssf.record.Record:
fillFields,   fillFields,   getRecordSize,   getSid,   isInValueSection,   isValue,   processContinueRecord,   serialize,   toString,   validateSid
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.hssf.record.ExtendedFormatRecord Detail:
 protected  void fillFields(byte[] data,
    short size,
    int offset) 
 public boolean get123Prefix() 
    get some old holdover from lotus 123. Who cares, its all over for Lotus. RIP Lotus.
 public short getAdtlDiag() 
    get for diagonal borders? No idea (its a palette color for the other function we didn't know what was?)
 public short getAdtlDiagLineStyle() 
    get the diagonal border line style? Who the heck ever heard of a diagonal border?
 public short getAdtlFillPattern() 
    get the additional fill pattern - ???
 public int getAdtlPaletteOptions() 
    get the additional palette options bitmask (see individual bit getter methods that reference this method)
 public short getAlignment() 
    get the horizontal alignment of the cell.
 public short getAlignmentOptions() 
    get the alignment options bitmask. See corresponding bitgetter methods that reference this one.
 public short getBorderBottom() 
    get the borderline style for the bottom border
 public short getBorderLeft() 
    get the borderline style for the left border
 public short getBorderOptions() 
    get the border options bitmask (see the corresponding bit getter methods that reference back to this one)
 public short getBorderRight() 
    get the borderline style for the right border
 public short getBorderTop() 
    get the borderline style for the top border
 public short getBottomBorderPaletteIdx() 
    get the palette index for the bottom border
 public short getCellOptions() 
    gets the options bitmask - you can also use corresponding option bit getters (see other methods that reference this one)
 public short getDiag() 
    Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..
 public short getFillBackground() 
    get the background palette color index
 public short getFillForeground() 
    get the foreground palette color index
 public short getFillPaletteOptions() 
    get the fill palette options bitmask (see indivdual bit getters that reference this method)
 public short getFontIndex() 
    get the index to the FONT record (which font to use 0 based)
 public short getFormatIndex() 
    get the index to the Format record (which FORMAT to use 0-based)
 public short getIndent() 
    get indention (not sure of the units, think its spaces)
 public short getIndentionOptions() 
    get the indent options bitmask (see corresponding bit getters that reference this field)
 public short getJustifyLast() 
    Dunno. Docs just say this is for far east versions.. (I'm guessing it justifies for right-to-left read languages)
 public short getLeftBorderPaletteIdx() 
    get the palette index for the left border color
 public boolean getMergeCells() 
    get whether to merge cells
 public short getPaletteOptions() 
    get the palette options bitmask (see the individual bit getter methods that reference this one)
 public short getParentIndex() 
    for cell XF types this is the parent style (usually 0/normal). For style this should be NULL.
 public short getReadingOrder() 
    get the reading order for far east versions (0 - Context, 1 - Left to right, 2 - right to left) - We could use some help with support for the far east.
 public short getRightBorderPaletteIdx() 
    get the palette index for the right border color
 public short getRotation() 
    get the degree of rotation. (I've not actually seen this used anywhere)
 public boolean getShrinkToFit() 
    get whether to shrink the text to fit
 public short getSid() 
 public short getTopBorderPaletteIdx() 
    get the palette index for the top border
 public short getVerticalAlignment() 
    get the vertical alignment of text in the cell
 public boolean getWrapText() 
    get whether to wrap the text in the cell
 public short getXFType() 
    get whether the cell is a cell or style XFRecord
 public boolean isHidden() 
    get whether the cell is hidden or not
 public boolean isIndentNotParentAlignment() 
    get whether or not to use the alignment in this XF instead of the parent XF.
 public boolean isIndentNotParentBorder() 
    get whether or not to use the border in this XF instead of the parent XF.
 public boolean isIndentNotParentCellOptions() 
    get whether or not to use the locking/hidden in this XF instead of the parent XF.
 public boolean isIndentNotParentFont() 
    get whether or not to use the font in this XF instead of the parent XF.
 public boolean isIndentNotParentFormat() 
    get whether or not to use the format in this XF instead of the parent XF.
 public boolean isIndentNotParentPattern() 
    get whether or not to use the pattern in this XF instead of the parent XF. (foregrount/background)
 public boolean isLocked() 
    get whether the cell is locked or not
 public byte[] serialize() 
 public  void set123Prefix(boolean prefix) 
    set some old holdover from lotus 123. Who cares, its all over for Lotus. RIP Lotus.
 public  void setAdtlDiag(short diag) 
    set for diagonal borders? No idea (its a palette color for the other function we didn't know what was?)
 public  void setAdtlDiagLineStyle(short diag) 
    set the diagonal border line style? Who the heck ever heard of a diagonal border?
 public  void setAdtlFillPattern(short fill) 
    set the fill pattern - ???
 public  void setAdtlPaletteOptions(short options) 
    set the additional palette options bitmask (see individual bitsetter methods that reference this method)
 public  void setAlignment(short align) 
    set the horizontal alignment of the cell.
 public  void setAlignmentOptions(short options) 
    set the alignment options bitmask. See corresponding bitsetter methods that reference this one.
 public  void setBorderBottom(short border) 
    set the border line style for the bottom border
 public  void setBorderLeft(short border) 
    set the borderline style for the left border
 public  void setBorderOptions(short options) 
    set the border options bitmask (see the corresponding bitsetter methods that reference back to this one)
 public  void setBorderRight(short border) 
    set the border line style for the right border
 public  void setBorderTop(short border) 
    set the border line style for the top border
 public  void setBottomBorderPaletteIdx(short border) 
    set the palette index for the bottom border
 public  void setCellOptions(short options) 
    sets the options bitmask - you can also use corresponding option bit setters (see other methods that reference this one)
 public  void setDiag(short diag) 
    Not sure what this is for (maybe fill lines?) 1 = down, 2 = up, 3 = both, 0 for none..
 public  void setFillBackground(short color) 
    set the background palette color index
 public  void setFillForeground(short color) 
    set the foreground palette color index
 public  void setFillPaletteOptions(short options) 
    set the fill palette options bitmask (see
 public  void setFontIndex(short index) 
    set the index to the FONT record (which font to use 0 based)
 public  void setFormatIndex(short index) 
    set the index to the Format record (which FORMAT to use 0-based)
 public  void setHidden(boolean hidden) 
    set whether the cell is hidden or not
 public  void setIndent(short indent) 
    set indention (not sure of the units, think its spaces)
 public  void setIndentNotParentAlignment(boolean alignment) 
    set whether or not to use the alignment in this XF instead of the parent XF.
 public  void setIndentNotParentBorder(boolean border) 
    set whether or not to use the border in this XF instead of the parent XF.
 public  void setIndentNotParentCellOptions(boolean options) 
    set whether or not to use the locking/hidden in this XF instead of the parent XF.
 public  void setIndentNotParentFont(boolean font) 
    set whether or not to use the font in this XF instead of the parent XF.
 public  void setIndentNotParentFormat(boolean parent) 
    set whether or not to use the format in this XF instead of the parent XF.
 public  void setIndentNotParentPattern(boolean pattern) 
    set whether or not to use the pattern in this XF instead of the parent XF. (foregrount/background)
 public  void setIndentionOptions(short options) 
    set the indent options bitmask (see corresponding bitmask setters that reference this field)
 public  void setJustifyLast(short justify) 
    Dunno. Docs just say this is for far east versions.. (I'm guessing it justifies for right-to-left read languages)
 public  void setLeftBorderPaletteIdx(short border) 
    set the palette index for the left border color
 public  void setLocked(boolean locked) 
    set whether the cell is locked or not
 public  void setMergeCells(boolean merge) 
    set whether to merge cells
 public  void setPaletteOptions(short options) 
    set the palette options bitmask (see the individual bitsetter methods that reference this one)
 public  void setParentIndex(short parent) 
    for cell XF types this is the parent style (usually 0/normal). For style this should be NULL.
 public  void setReadingOrder(short order) 
    set the reading order for far east versions (0 - Context, 1 - Left to right, 2 - right to left) - We could use some help with support for the far east.
 public  void setRightBorderPaletteIdx(short border) 
    set the palette index for the right border color
 public  void setRotation(short rotation) 
    set the degree of rotation. (I've not actually seen this used anywhere)
 public  void setShrinkToFit(boolean shrink) 
    set whether to shrink the text to fit
 public  void setTopBorderPaletteIdx(short border) 
    set the palette index for the top border
 public  void setVerticalAlignment(short align) 
    set the vertical alignment of text in the cell
 public  void setWrapText(boolean wrapped) 
    set whether to wrap the text in the cell
 public  void setXFType(short type) 
    set whether the cell is a cell or style XFRecord
 public String toString() 
 protected  void validateSid(short id)