FileDocCategorySizeDatePackage
TC.javaAPI DocApache Poi 3.0.12448Mon Jan 01 18:55:24 GMT 2007org.apache.poi.hdf.extractor

TC

public class TC extends Object
Comment me
author
Ryan Ackley

Fields Summary
boolean
_fFirstMerged
boolean
_fMerged
boolean
_fVertical
boolean
_fBackward
boolean
_fRotateFont
boolean
_fVertMerge
boolean
_fVertRestart
short
_vertAlign
short[]
_brcTop
short[]
_brcLeft
short[]
_brcBottom
short[]
_brcRight
Constructors Summary
public TC()


   
  
  
Methods Summary
static org.apache.poi.hdf.extractor.TCconvertBytesToTC(byte[] array, int offset)

    TC tc = new TC();
    int rgf = Utils.convertBytesToShort(array, offset);
    tc._fFirstMerged = (rgf & 0x0001) > 0;
    tc._fMerged = (rgf & 0x0002) > 0;
    tc._fVertical = (rgf & 0x0004) > 0;
    tc._fBackward = (rgf & 0x0008) > 0;
    tc._fRotateFont = (rgf & 0x0010) > 0;
    tc._fVertMerge = (rgf & 0x0020) > 0;
    tc._fVertRestart = (rgf & 0x0040) > 0;
    tc._vertAlign = (short)((rgf & 0x0180) >> 7);

    tc._brcTop[0] = Utils.convertBytesToShort(array, offset + 4);
    tc._brcTop[1] = Utils.convertBytesToShort(array, offset + 6);

    tc._brcLeft[0] = Utils.convertBytesToShort(array, offset + 8);
    tc._brcLeft[1] = Utils.convertBytesToShort(array, offset + 10);

    tc._brcBottom[0] = Utils.convertBytesToShort(array, offset + 12);
    tc._brcBottom[1] = Utils.convertBytesToShort(array, offset + 14);

    tc._brcRight[0] = Utils.convertBytesToShort(array, offset + 16);
    tc._brcRight[1] = Utils.convertBytesToShort(array, offset + 18);

    return tc;