FileDocCategorySizeDatePackage
TCAbstractType.javaAPI DocApache Poi 3.0.110282Mon Jan 01 18:55:32 GMT 2007org.apache.poi.hwpf.model.types

TCAbstractType

public abstract class TCAbstractType extends Object implements HDFType
Table Cell Descriptor. NOTE: This source is automatically generated please do not modify this file. Either subclass or remove the record in src/records/definitions.
author
S. Ryan Ackley

Fields Summary
protected short
field_1_rgf
private static BitField
fFirstMerged
private static BitField
fMerged
private static BitField
fVertical
private static BitField
fBackward
private static BitField
fRotateFont
private static BitField
fVertMerge
private static BitField
fVertRestart
private static BitField
vertAlign
protected short
field_2_unused
protected BorderCode
field_3_brcTop
protected BorderCode
field_4_brcLeft
protected BorderCode
field_5_brcBottom
protected BorderCode
field_6_brcRight
Constructors Summary
public TCAbstractType()



     
    

    
Methods Summary
protected voidfillFields(byte[] data, int offset)

        field_1_rgf                     = LittleEndian.getShort(data, 0x0 + offset);
        field_2_unused                  = LittleEndian.getShort(data, 0x2 + offset);
        field_3_brcTop                  = new BorderCode(data, 0x4 + offset);
        field_4_brcLeft                 = new BorderCode(data, 0x8 + offset);
        field_5_brcBottom               = new BorderCode(data, 0xc + offset);
        field_6_brcRight                = new BorderCode(data, 0x10 + offset);

    
public org.apache.poi.hwpf.usermodel.BorderCodegetBrcBottom()
Get the brcBottom field for the TC record.

        return field_5_brcBottom;
    
public org.apache.poi.hwpf.usermodel.BorderCodegetBrcLeft()
Get the brcLeft field for the TC record.

        return field_4_brcLeft;
    
public org.apache.poi.hwpf.usermodel.BorderCodegetBrcRight()
Get the brcRight field for the TC record.

        return field_6_brcRight;
    
public org.apache.poi.hwpf.usermodel.BorderCodegetBrcTop()
Get the brcTop field for the TC record.

        return field_3_brcTop;
    
public shortgetRgf()
Get the rgf field for the TC record.

        return field_1_rgf;
    
public intgetSize()
Size of record (exluding 4 byte header)

        return 4 +  + 2 + 2 + 4 + 4 + 4 + 4;
    
public shortgetUnused()
Get the unused field for the TC record.

        return field_2_unused;
    
public bytegetVertAlign()

return
the vertAlign field value.

        return ( byte )vertAlign.getValue(field_1_rgf);
        
    
public booleanisFBackward()

return
the fBackward field value.

        return fBackward.isSet(field_1_rgf);
        
    
public booleanisFFirstMerged()

return
the fFirstMerged field value.

        return fFirstMerged.isSet(field_1_rgf);
        
    
public booleanisFMerged()

return
the fMerged field value.

        return fMerged.isSet(field_1_rgf);
        
    
public booleanisFRotateFont()

return
the fRotateFont field value.

        return fRotateFont.isSet(field_1_rgf);
        
    
public booleanisFVertMerge()

return
the fVertMerge field value.

        return fVertMerge.isSet(field_1_rgf);
        
    
public booleanisFVertRestart()

return
the fVertRestart field value.

        return fVertRestart.isSet(field_1_rgf);
        
    
public booleanisFVertical()

return
the fVertical field value.

        return fVertical.isSet(field_1_rgf);
        
    
public voidserialize(byte[] data, int offset)

        LittleEndian.putShort(data, 0x0 + offset, (short)field_1_rgf);;
        LittleEndian.putShort(data, 0x2 + offset, (short)field_2_unused);;
        field_3_brcTop.serialize(data, 0x4 + offset);;
        field_4_brcLeft.serialize(data, 0x8 + offset);;
        field_5_brcBottom.serialize(data, 0xc + offset);;
        field_6_brcRight.serialize(data, 0x10 + offset);;

    
public voidsetBrcBottom(org.apache.poi.hwpf.usermodel.BorderCode field_5_brcBottom)
Set the brcBottom field for the TC record.

        this.field_5_brcBottom = field_5_brcBottom;
    
public voidsetBrcLeft(org.apache.poi.hwpf.usermodel.BorderCode field_4_brcLeft)
Set the brcLeft field for the TC record.

        this.field_4_brcLeft = field_4_brcLeft;
    
public voidsetBrcRight(org.apache.poi.hwpf.usermodel.BorderCode field_6_brcRight)
Set the brcRight field for the TC record.

        this.field_6_brcRight = field_6_brcRight;
    
public voidsetBrcTop(org.apache.poi.hwpf.usermodel.BorderCode field_3_brcTop)
Set the brcTop field for the TC record.

        this.field_3_brcTop = field_3_brcTop;
    
public voidsetFBackward(boolean value)
Sets the fBackward field value.

        field_1_rgf = (short)fBackward.setBoolean(field_1_rgf, value);

        
    
public voidsetFFirstMerged(boolean value)
Sets the fFirstMerged field value.

        field_1_rgf = (short)fFirstMerged.setBoolean(field_1_rgf, value);

        
    
public voidsetFMerged(boolean value)
Sets the fMerged field value.

        field_1_rgf = (short)fMerged.setBoolean(field_1_rgf, value);

        
    
public voidsetFRotateFont(boolean value)
Sets the fRotateFont field value.

        field_1_rgf = (short)fRotateFont.setBoolean(field_1_rgf, value);

        
    
public voidsetFVertMerge(boolean value)
Sets the fVertMerge field value.

        field_1_rgf = (short)fVertMerge.setBoolean(field_1_rgf, value);

        
    
public voidsetFVertRestart(boolean value)
Sets the fVertRestart field value.

        field_1_rgf = (short)fVertRestart.setBoolean(field_1_rgf, value);

        
    
public voidsetFVertical(boolean value)
Sets the fVertical field value.

        field_1_rgf = (short)fVertical.setBoolean(field_1_rgf, value);

        
    
public voidsetRgf(short field_1_rgf)
Set the rgf field for the TC record.

        this.field_1_rgf = field_1_rgf;
    
public voidsetUnused(short field_2_unused)
Set the unused field for the TC record.

        this.field_2_unused = field_2_unused;
    
public voidsetVertAlign(byte value)
Sets the vertAlign field value.

        field_1_rgf = (short)vertAlign.setValue(field_1_rgf, value);

        
    
public java.lang.StringtoString()

        StringBuffer buffer = new StringBuffer();

        buffer.append("[TC]\n");

        buffer.append("    .rgf                  = ");
        buffer.append(" (").append(getRgf()).append(" )\n");
        buffer.append("         .fFirstMerged             = ").append(isFFirstMerged()).append('\n");
        buffer.append("         .fMerged                  = ").append(isFMerged()).append('\n");
        buffer.append("         .fVertical                = ").append(isFVertical()).append('\n");
        buffer.append("         .fBackward                = ").append(isFBackward()).append('\n");
        buffer.append("         .fRotateFont              = ").append(isFRotateFont()).append('\n");
        buffer.append("         .fVertMerge               = ").append(isFVertMerge()).append('\n");
        buffer.append("         .fVertRestart             = ").append(isFVertRestart()).append('\n");
        buffer.append("         .vertAlign                = ").append(getVertAlign()).append('\n");

        buffer.append("    .unused               = ");
        buffer.append(" (").append(getUnused()).append(" )\n");

        buffer.append("    .brcTop               = ");
        buffer.append(" (").append(getBrcTop()).append(" )\n");

        buffer.append("    .brcLeft              = ");
        buffer.append(" (").append(getBrcLeft()).append(" )\n");

        buffer.append("    .brcBottom            = ");
        buffer.append(" (").append(getBrcBottom()).append(" )\n");

        buffer.append("    .brcRight             = ");
        buffer.append(" (").append(getBrcRight()).append(" )\n");

        buffer.append("[/TC]\n");
        return buffer.toString();