Save This Page
Home » jexcelapi_2_6_8 » jxl.biff » [javadoc | source]
jxl.biff
public class: FontRecord [javadoc | source]
java.lang.Object
   jxl.biff.RecordData
      jxl.biff.WritableRecordData
         jxl.biff.FontRecord

All Implemented Interfaces:
    Font, ByteData

Direct Known Subclasses:
    WritableFontRecord, Font, WritableFont

A record containing the necessary data for the font information
Field Summary
public static final  FontRecord.Biff7 biff7     
Fields inherited from jxl.biff.WritableRecordData:
maxRecordLength
Constructor:
 protected FontRecord(Font f) 
    Publicly available copy constructor
    Parameters:
    f - the font to copy
 public FontRecord(Record t,
    WorkbookSettings ws) 
    Constructs this object from the raw data. Used when reading in a format record
    Parameters:
    t - the raw data
    ws - the workbook settings
 public FontRecord(Record t,
    WorkbookSettings ws,
    FontRecord.Biff7 dummy) 
    Constructs this object from the raw data. Used when reading in a format record
    Parameters:
    t - the raw data
    ws - the workbook settings
    dummy - dummy overload
 protected FontRecord(String fn,
    int ps,
    int bold,
    boolean it,
    int us,
    int ci,
    int ss) 
    Constructor, used when creating a new font for writing out.
    Parameters:
    bold - the bold indicator
    ps - the point size
    us - the underline style
    fn - the name
    it - italicised indicator
    ss - the script style
    ci - the colour index
Method from jxl.biff.FontRecord Summary:
equals,   getBoldWeight,   getColour,   getData,   getFontIndex,   getName,   getPointSize,   getScriptStyle,   getUnderlineStyle,   hashCode,   initialize,   isInitialized,   isItalic,   isStruckout,   setFontBoldStyle,   setFontColour,   setFontItalic,   setFontPointSize,   setFontScriptStyle,   setFontStruckout,   setFontUnderlineStyle,   uninitialize
Methods from jxl.biff.WritableRecordData:
getBytes,   getData
Methods from jxl.biff.RecordData:
getCode,   getRecord
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.FontRecord Detail:
 public boolean equals(Object o) 
    Standard equals method
 public int getBoldWeight() 
    Gets the bold weight for this font
 public Colour getColour() 
    Gets the colour for this font
 public byte[] getData() 
    Gets the byte data for writing out
 public final int getFontIndex() 
    Accessor for the font index
 public String getName() 
    Gets the name of this font
 public int getPointSize() 
    Gets the point size for this font, if the font hasn't been initialized
 public ScriptStyle getScriptStyle() 
    Gets the script style
 public UnderlineStyle getUnderlineStyle() 
    Gets the underline style for this font
 public int hashCode() 
    Standard hash code method
 public final  void initialize(int pos) 
    Sets the font index of this record. Called from the FormattingRecords object
 public final boolean isInitialized() 
    Accessor to see whether this object is initialized or not.
 public boolean isItalic() 
    Returns the italic flag
 public boolean isStruckout() 
    Accessor for the strike out flag
 protected  void setFontBoldStyle(int bs) 
    Sets the bold style for this font, if the font hasn't been initialized
 protected  void setFontColour(int c) 
    Sets the colour for this font, if the font hasn't been initialized
 protected  void setFontItalic(boolean i) 
    Sets the italic indicator for this font, if the font hasn't been initialized
 protected  void setFontPointSize(int ps) 
    Sets the point size for this font, if the font hasn't been initialized
 protected  void setFontScriptStyle(int ss) 
    Sets the script style (eg. superscript, subscript) for this font, if the font hasn't been initialized
 protected  void setFontStruckout(boolean os) 
    Sets the struck out flag
 protected  void setFontUnderlineStyle(int us) 
    Sets the underline style for this font, if the font hasn't been initialized
 public final  void uninitialize() 
    Resets the initialize flag. This is called by the constructor of WritableWorkbookImpl to reset the statically declared fonts