OpenOffice.org
XMerge API

org.openoffice.xmerge.converter.xml.sxc.pexcel.Records
Class FontDescription

java.lang.Object
  |
  +--org.openoffice.xmerge.converter.xml.sxc.pexcel.Records.BIFFRecord
        |
        +--org.openoffice.xmerge.converter.xml.sxc.pexcel.Records.FontDescription

public class FontDescription
extends BIFFRecord

Represents a BIFF Record descibing a font used


Constructor Summary
FontDescription(boolean italic, boolean bold, boolean underline)
          Constructs a FontDescription from the bold italic and undelrine attributes
FontDescription(java.io.InputStream is)
          Constructs a Font Description from the InputStream
 
Method Summary
 boolean compareTo(FontDescription rhs)
           
 short getBiffType()
          Get the hex code for this particular BIFFRecord
 boolean isBold()
           
 boolean isItalic()
           
 boolean isUnderline()
           
 int read(java.io.InputStream input)
          Constructs a Font Description from the InputStream
 void write(java.io.OutputStream output)
          Writes the record, including the BIFF record byte to the outputstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontDescription

public FontDescription(boolean italic,
                       boolean bold,
                       boolean underline)
                throws java.io.IOException
Constructs a FontDescription from the bold italic and undelrine attributes
Parameters:
italic - Italic attribute
bold - Bold attribute
underline - Underline attribute

FontDescription

public FontDescription(java.io.InputStream is)
                throws java.io.IOException
Constructs a Font Description from the InputStream
Parameters:
is - InputStream containing a FontDescription
Method Detail

compareTo

public boolean compareTo(FontDescription rhs)

getBiffType

public short getBiffType()
Get the hex code for this particular BIFFRecord
Returns:
the hex code for FontDescription

isBold

public boolean isBold()

isItalic

public boolean isItalic()

isUnderline

public boolean isUnderline()

read

public int read(java.io.InputStream input)
         throws java.io.IOException
Constructs a Font Description from the InputStream
Parameters:
is - InputStream containing a FontDescription

write

public void write(java.io.OutputStream output)
           throws java.io.IOException
Description copied from class: BIFFRecord
Writes the record, including the BIFF record byte to the outputstream
Overrides:
write in class BIFFRecord
Following copied from class: org.openoffice.xmerge.converter.xml.sxc.pexcel.Records.BIFFRecord
Parameters:
output - The output stream to write to in LittleEndian format.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org