Home » JCraft » jxl » write » biff » [javadoc | source]
jxl.write.biff
public class: WritableFontRecord [javadoc | source]
java.lang.Object
   jxl.biff.RecordData
      jxl.biff.WritableRecordData
         jxl.biff.FontRecord
            jxl.write.biff.WritableFontRecord

All Implemented Interfaces:
    Font, ByteData

Direct Known Subclasses:
    Font, WritableFont

A writable Font record. This class intercepts any set accessor calls and throws and exception if the Font is already initialized
Fields inherited from jxl.biff.FontRecord:
biff7
Fields inherited from jxl.biff.WritableRecordData:
maxRecordLength
Constructor:
 protected WritableFontRecord(Font f) 
    Publicly available copy constructor
    Parameters:
    the - font to copy
 protected WritableFontRecord(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
    c - the colour
    ss - the script style
Method from jxl.write.biff.WritableFontRecord Summary:
setBoldStyle,   setColour,   setItalic,   setPointSize,   setScriptStyle,   setStruckout,   setUnderlineStyle
Methods from jxl.biff.FontRecord:
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:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.write.biff.WritableFontRecord Detail:
 protected  void setBoldStyle(int boldStyle) throws WriteException 
    Sets the bold style for this font, if the font hasn't been initialized
 protected  void setColour(int colour) throws WriteException 
    Sets the colour for this font, if the font hasn't been initialized
 protected  void setItalic(boolean italic) throws WriteException 
    Sets the italic indicator for this font, if the font hasn't been initialized
 protected  void setPointSize(int pointSize) throws WriteException 
    Sets the point size for this font, if the font hasn't been initialized
 protected  void setScriptStyle(int scriptStyle) throws WriteException 
    Sets the script style (eg. superscript, subscript) for this font, if the font hasn't been initialized
 protected  void setStruckout(boolean os) throws WriteException 
    Sets the struck out flag
 protected  void setUnderlineStyle(int us) throws WriteException 
    Sets the underline style for this font, if the font hasn't been initialized