Package org.apache.poi.hwpf.model.types
Class TCAbstractType
java.lang.Object
org.apache.poi.hwpf.model.types.TCAbstractType
- Direct Known Subclasses:
TableCellDescriptor
Table Cell Descriptor.
NOTE: This source is automatically generated please do not modify this file. Either subclass or remove the record in src/types/definitions.
This class is internal. It content or properties may change without notice due to changes in our knowledge of internal Microsoft Word binary structures.
- Author:
- S. Ryan Ackley. Field descriptions are quoted from Microsoft Office Word 97-2007 Binary File Format (.doc) Specification
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected short
protected byte
protected byte
protected short
protected short
protected short
protected short
protected byte
protected byte
protected byte
protected byte
protected short
protected BorderCode
protected BorderCode
protected BorderCode
protected BorderCode
protected ShadingDescriptor
protected short
protected short
protected short
protected short
protected byte
protected byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBottom border.Left border.Right border.Top border.byte
Bottom cell margin/padding units.byte
Left cell margin/padding units.byte
Right cell margin/padding units.byte
Top cell margin/padding units.byte
Bottom cell spacing units.byte
Left cell spacing units.byte
Right cell spacing units.byte
Top cell spacing units.byte
Units for wWidthbyte
Not usedshort
getRgf()
Get the rgf field for the TC record.getShd()
Cell shading.byte
Specifies the alignment of the cell contents relative to text flow (e.g.short
Bottom cell margin/padding.short
Left cell margin/padding.short
Right cell margin/padding.short
Top cell margin/padding.short
Bottom cell spacing.short
Left cell spacing.short
Right cell spacing.short
Top cell spacing.short
Preferred cell width.boolean
For a vertical table cell, text flow is bottom to top when 1 and is bottom to top when 0boolean
When 1, cell is first cell of a range of cells that have been merged.boolean
When 1, make the text fit the table cellboolean
When 1, cell has been merged with preceding cellboolean
When 1, do not allow text to wrap in the table cellboolean
When 1, cell has rotated characters (i.e.boolean
When 1, cell has vertical text flowboolean
When 1, cell is vertically merged with the cell(s) above and/or below.boolean
When 1, the cell is the first of a set of vertically merged cells.void
setBrcBottom
(BorderCode field_22_brcBottom) Bottom border.void
setBrcLeft
(BorderCode field_21_brcLeft) Left border.void
setBrcRight
(BorderCode field_23_brcRight) Right border.void
setBrcTop
(BorderCode field_20_brcTop) Top border.void
setFBackward
(boolean value) Sets the fBackward field value.void
setFFirstMerged
(boolean value) Sets the fFirstMerged field value.void
setFFitText
(boolean value) Sets the fFitText field value.void
setFMerged
(boolean value) Sets the fMerged field value.void
setFNoWrap
(boolean value) Sets the fNoWrap field value.void
setFRotateFont
(boolean value) Sets the fRotateFont field value.void
setFtsCellPaddingBottom
(byte field_10_ftsCellPaddingBottom) Bottom cell margin/padding units.void
setFtsCellPaddingLeft
(byte field_8_ftsCellPaddingLeft) Left cell margin/padding units.void
setFtsCellPaddingRight
(byte field_11_ftsCellPaddingRight) Right cell margin/padding units.void
setFtsCellPaddingTop
(byte field_9_ftsCellPaddingTop) Top cell margin/padding units.void
setFtsCellSpacingBottom
(byte field_18_ftsCellSpacingBottom) Bottom cell spacing units.void
setFtsCellSpacingLeft
(byte field_16_ftsCellSpacingLeft) Left cell spacing units.void
setFtsCellSpacingRight
(byte field_19_ftsCellSpacingRight) Right cell spacing units.void
setFtsCellSpacingTop
(byte field_17_ftsCellSpacingTop) Top cell spacing units.void
setFtsWidth
(byte value) Sets the ftsWidth field value.void
setFUnused
(byte value) Sets the fUnused field value.void
setFVertical
(boolean value) Sets the fVertical field value.void
setFVertMerge
(boolean value) Sets the fVertMerge field value.void
setFVertRestart
(boolean value) Sets the fVertRestart field value.void
setRgf
(short field_1_rgf) Set the rgf field for the TC record.void
setShd
(ShadingDescriptor field_3_shd) Cell shading.void
setVertAlign
(byte value) Sets the vertAlign field value.void
setWCellPaddingBottom
(short field_6_wCellPaddingBottom) Bottom cell margin/padding.void
setWCellPaddingLeft
(short field_4_wCellPaddingLeft) Left cell margin/padding.void
setWCellPaddingRight
(short field_7_wCellPaddingRight) Right cell margin/padding.void
setWCellPaddingTop
(short field_5_wCellPaddingTop) Top cell margin/padding.void
setWCellSpacingBottom
(short field_14_wCellSpacingBottom) Bottom cell spacing.void
setWCellSpacingLeft
(short field_12_wCellSpacingLeft) Left cell spacing.void
setWCellSpacingRight
(short field_15_wCellSpacingRight) Right cell spacing.void
setWCellSpacingTop
(short field_13_wCellSpacingTop) Top cell spacing.void
setWWidth
(short field_2_wWidth) Preferred cell width.toString()
-
Field Details
-
field_1_rgf
protected short field_1_rgf -
field_2_wWidth
protected short field_2_wWidth -
field_3_shd
-
field_4_wCellPaddingLeft
protected short field_4_wCellPaddingLeft -
field_5_wCellPaddingTop
protected short field_5_wCellPaddingTop -
field_6_wCellPaddingBottom
protected short field_6_wCellPaddingBottom -
field_7_wCellPaddingRight
protected short field_7_wCellPaddingRight -
field_8_ftsCellPaddingLeft
protected byte field_8_ftsCellPaddingLeft -
field_9_ftsCellPaddingTop
protected byte field_9_ftsCellPaddingTop -
field_10_ftsCellPaddingBottom
protected byte field_10_ftsCellPaddingBottom -
field_11_ftsCellPaddingRight
protected byte field_11_ftsCellPaddingRight -
field_12_wCellSpacingLeft
protected short field_12_wCellSpacingLeft -
field_13_wCellSpacingTop
protected short field_13_wCellSpacingTop -
field_14_wCellSpacingBottom
protected short field_14_wCellSpacingBottom -
field_15_wCellSpacingRight
protected short field_15_wCellSpacingRight -
field_16_ftsCellSpacingLeft
protected byte field_16_ftsCellSpacingLeft -
field_17_ftsCellSpacingTop
protected byte field_17_ftsCellSpacingTop -
field_18_ftsCellSpacingBottom
protected byte field_18_ftsCellSpacingBottom -
field_19_ftsCellSpacingRight
protected byte field_19_ftsCellSpacingRight -
field_20_brcTop
-
field_21_brcLeft
-
field_22_brcBottom
-
field_23_brcRight
-
-
Constructor Details
-
TCAbstractType
protected TCAbstractType()
-
-
Method Details
-
toString
-
getRgf
Get the rgf field for the TC record. -
setRgf
Set the rgf field for the TC record. -
getWWidth
Preferred cell width. -
setWWidth
Preferred cell width. -
getShd
Cell shading. -
setShd
Cell shading. -
getWCellPaddingLeft
Left cell margin/padding. -
setWCellPaddingLeft
Left cell margin/padding. -
getWCellPaddingTop
Top cell margin/padding. -
setWCellPaddingTop
Top cell margin/padding. -
getWCellPaddingBottom
Bottom cell margin/padding. -
setWCellPaddingBottom
Bottom cell margin/padding. -
getWCellPaddingRight
Right cell margin/padding. -
setWCellPaddingRight
Right cell margin/padding. -
getFtsCellPaddingLeft
Left cell margin/padding units. -
setFtsCellPaddingLeft
Left cell margin/padding units. -
getFtsCellPaddingTop
Top cell margin/padding units. -
setFtsCellPaddingTop
Top cell margin/padding units. -
getFtsCellPaddingBottom
Bottom cell margin/padding units. -
setFtsCellPaddingBottom
Bottom cell margin/padding units. -
getFtsCellPaddingRight
Right cell margin/padding units. -
setFtsCellPaddingRight
Right cell margin/padding units. -
getWCellSpacingLeft
Left cell spacing. -
setWCellSpacingLeft
Left cell spacing. -
getWCellSpacingTop
Top cell spacing. -
setWCellSpacingTop
Top cell spacing. -
getWCellSpacingBottom
Bottom cell spacing. -
setWCellSpacingBottom
Bottom cell spacing. -
getWCellSpacingRight
Right cell spacing. -
setWCellSpacingRight
Right cell spacing. -
getFtsCellSpacingLeft
Left cell spacing units. -
setFtsCellSpacingLeft
Left cell spacing units. -
getFtsCellSpacingTop
Top cell spacing units. -
setFtsCellSpacingTop
Top cell spacing units. -
getFtsCellSpacingBottom
Bottom cell spacing units. -
setFtsCellSpacingBottom
Bottom cell spacing units. -
getFtsCellSpacingRight
Right cell spacing units. -
setFtsCellSpacingRight
Right cell spacing units. -
getBrcTop
Top border. -
setBrcTop
Top border. -
getBrcLeft
Left border. -
setBrcLeft
Left border. -
getBrcBottom
Bottom border. -
setBrcBottom
Bottom border. -
getBrcRight
Right border. -
setBrcRight
Right border. -
setFFirstMerged
Sets the fFirstMerged field value. When 1, cell is first cell of a range of cells that have been merged. When a cell is merged, the display areas of the merged cells are consolidated and the text within the cells is interpreted as belonging to one text stream for purposes of calculating line breaks. -
isFFirstMerged
When 1, cell is first cell of a range of cells that have been merged. When a cell is merged, the display areas of the merged cells are consolidated and the text within the cells is interpreted as belonging to one text stream for purposes of calculating line breaks.- Returns:
- the fFirstMerged field value.
-
setFMerged
Sets the fMerged field value. When 1, cell has been merged with preceding cell -
isFMerged
When 1, cell has been merged with preceding cell- Returns:
- the fMerged field value.
-
setFVertical
Sets the fVertical field value. When 1, cell has vertical text flow -
isFVertical
When 1, cell has vertical text flow- Returns:
- the fVertical field value.
-
setFBackward
Sets the fBackward field value. For a vertical table cell, text flow is bottom to top when 1 and is bottom to top when 0 -
isFBackward
For a vertical table cell, text flow is bottom to top when 1 and is bottom to top when 0- Returns:
- the fBackward field value.
-
setFRotateFont
Sets the fRotateFont field value. When 1, cell has rotated characters (i.e. uses @font) -
isFRotateFont
When 1, cell has rotated characters (i.e. uses @font)- Returns:
- the fRotateFont field value.
-
setFVertMerge
Sets the fVertMerge field value. When 1, cell is vertically merged with the cell(s) above and/or below. When cells are vertically merged, the display area of the merged cells are consolidated. The consolidated area is used to display the contents of the first vertically merged cell (the cell with fVertRestart set to 1), and all other vertically merged cells (those with fVertRestart set to 0) must be empty. Cells can only be merged vertically if their left and right boundaries are (nearly) identical (i.e. if corresponding entries in rgdxaCenter of the table rows differ by at most 3). -
isFVertMerge
When 1, cell is vertically merged with the cell(s) above and/or below. When cells are vertically merged, the display area of the merged cells are consolidated. The consolidated area is used to display the contents of the first vertically merged cell (the cell with fVertRestart set to 1), and all other vertically merged cells (those with fVertRestart set to 0) must be empty. Cells can only be merged vertically if their left and right boundaries are (nearly) identical (i.e. if corresponding entries in rgdxaCenter of the table rows differ by at most 3).- Returns:
- the fVertMerge field value.
-
setFVertRestart
Sets the fVertRestart field value. When 1, the cell is the first of a set of vertically merged cells. The contents of a cell with fVertStart set to 1 are displayed in the consolidated area belonging to the entire set of vertically merged cells. Vertically merged cells with fVertRestart set to 0 must be empty. -
isFVertRestart
When 1, the cell is the first of a set of vertically merged cells. The contents of a cell with fVertStart set to 1 are displayed in the consolidated area belonging to the entire set of vertically merged cells. Vertically merged cells with fVertRestart set to 0 must be empty.- Returns:
- the fVertRestart field value.
-
setVertAlign
Sets the vertAlign field value. Specifies the alignment of the cell contents relative to text flow (e.g. in a cell with bottom to top text flow and bottom vertical alignment, the text is shifted horizontally to match the cell's right boundary) -
getVertAlign
Specifies the alignment of the cell contents relative to text flow (e.g. in a cell with bottom to top text flow and bottom vertical alignment, the text is shifted horizontally to match the cell's right boundary)- Returns:
- the vertAlign field value.
-
setFtsWidth
Sets the ftsWidth field value. Units for wWidth -
getFtsWidth
Units for wWidth- Returns:
- the ftsWidth field value.
-
setFFitText
Sets the fFitText field value. When 1, make the text fit the table cell -
isFFitText
When 1, make the text fit the table cell- Returns:
- the fFitText field value.
-
setFNoWrap
Sets the fNoWrap field value. When 1, do not allow text to wrap in the table cell -
isFNoWrap
When 1, do not allow text to wrap in the table cell- Returns:
- the fNoWrap field value.
-
setFUnused
Sets the fUnused field value. Not used -
getFUnused
Not used- Returns:
- the fUnused field value.
-