Methods Summary |
---|
protected void | fillFields(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.BorderCode | getBrcBottom()Get the brcBottom field for the TC record.
return field_5_brcBottom;
|
public org.apache.poi.hwpf.usermodel.BorderCode | getBrcLeft()Get the brcLeft field for the TC record.
return field_4_brcLeft;
|
public org.apache.poi.hwpf.usermodel.BorderCode | getBrcRight()Get the brcRight field for the TC record.
return field_6_brcRight;
|
public org.apache.poi.hwpf.usermodel.BorderCode | getBrcTop()Get the brcTop field for the TC record.
return field_3_brcTop;
|
public short | getRgf()Get the rgf field for the TC record.
return field_1_rgf;
|
public int | getSize()Size of record (exluding 4 byte header)
return 4 + + 2 + 2 + 4 + 4 + 4 + 4;
|
public short | getUnused()Get the unused field for the TC record.
return field_2_unused;
|
public byte | getVertAlign()
return ( byte )vertAlign.getValue(field_1_rgf);
|
public boolean | isFBackward()
return fBackward.isSet(field_1_rgf);
|
public boolean | isFFirstMerged()
return fFirstMerged.isSet(field_1_rgf);
|
public boolean | isFMerged()
return fMerged.isSet(field_1_rgf);
|
public boolean | isFRotateFont()
return fRotateFont.isSet(field_1_rgf);
|
public boolean | isFVertMerge()
return fVertMerge.isSet(field_1_rgf);
|
public boolean | isFVertRestart()
return fVertRestart.isSet(field_1_rgf);
|
public boolean | isFVertical()
return fVertical.isSet(field_1_rgf);
|
public void | serialize(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 void | setBrcBottom(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 void | setBrcLeft(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 void | setBrcRight(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 void | setBrcTop(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 void | setFBackward(boolean value)Sets the fBackward field value.
field_1_rgf = (short)fBackward.setBoolean(field_1_rgf, value);
|
public void | setFFirstMerged(boolean value)Sets the fFirstMerged field value.
field_1_rgf = (short)fFirstMerged.setBoolean(field_1_rgf, value);
|
public void | setFMerged(boolean value)Sets the fMerged field value.
field_1_rgf = (short)fMerged.setBoolean(field_1_rgf, value);
|
public void | setFRotateFont(boolean value)Sets the fRotateFont field value.
field_1_rgf = (short)fRotateFont.setBoolean(field_1_rgf, value);
|
public void | setFVertMerge(boolean value)Sets the fVertMerge field value.
field_1_rgf = (short)fVertMerge.setBoolean(field_1_rgf, value);
|
public void | setFVertRestart(boolean value)Sets the fVertRestart field value.
field_1_rgf = (short)fVertRestart.setBoolean(field_1_rgf, value);
|
public void | setFVertical(boolean value)Sets the fVertical field value.
field_1_rgf = (short)fVertical.setBoolean(field_1_rgf, value);
|
public void | setRgf(short field_1_rgf)Set the rgf field for the TC record.
this.field_1_rgf = field_1_rgf;
|
public void | setUnused(short field_2_unused)Set the unused field for the TC record.
this.field_2_unused = field_2_unused;
|
public void | setVertAlign(byte value)Sets the vertAlign field value.
field_1_rgf = (short)vertAlign.setValue(field_1_rgf, value);
|
public java.lang.String | toString()
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();
|