Package org.apache.poi.hwpf.model.types
Class FSPAAbstractType
- java.lang.Object
-
- org.apache.poi.hwpf.model.types.FSPAAbstractType
-
-
Field Summary
Fields Modifier and Type Field Description protected intfield_1_spidprotected intfield_2_xaLeftprotected intfield_3_yaTopprotected intfield_4_xaRightprotected intfield_5_yaBottomprotected shortfield_6_flagsprotected intfield_7_cTxbx
-
Constructor Summary
Constructors Modifier Constructor Description protectedFSPAAbstractType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillFields(byte[] data, int offset)bytegetBx()X position of shape relative to anchor CPbytegetBy()Y position of shape relative to anchor CPintgetCTxbx()Count of textboxes in shape (undo doc only).shortgetFlags()Get the flags field for the FSPA record.static intgetSize()Size of recordintgetSpid()Shape Identifier.bytegetWr()Text wrapping modebytegetWrk()Text wrapping mode type (valid only for wrapping modes 2 and 4intgetXaLeft()Left of rectangle enclosing shape relative to the origin of the shape.intgetXaRight()Right of rectangle enclosing shape relative to the origin of the shape.intgetYaBottom()Bottom of the rectangle enclosing shape relative to the origin of the shape.intgetYaTop()Top of rectangle enclosing shape relative to the origin of the shape.booleanisFAnchorLock()booleanisFBelowText()booleanisFHdr()1 in the undo doc when shape is from the header doc, 0 otherwise (undefined when not in the undo doc)booleanisFRcaSimple()When set, temporarily overrides bx, by, forcing the xaLeft, xaRight, yaTop, and yaBottom fields to all be page relative.voidserialize(byte[] data, int offset)voidsetBx(byte value)Sets the bx field value.voidsetBy(byte value)Sets the by field value.voidsetCTxbx(int field_7_cTxbx)Count of textboxes in shape (undo doc only).voidsetFAnchorLock(boolean value)Sets the fAnchorLock field value.voidsetFBelowText(boolean value)Sets the fBelowText field value.voidsetFHdr(boolean value)Sets the fHdr field value.voidsetFlags(short field_6_flags)Set the flags field for the FSPA record.voidsetFRcaSimple(boolean value)Sets the fRcaSimple field value.voidsetSpid(int field_1_spid)Shape Identifier.voidsetWr(byte value)Sets the wr field value.voidsetWrk(byte value)Sets the wrk field value.voidsetXaLeft(int field_2_xaLeft)Left of rectangle enclosing shape relative to the origin of the shape.voidsetXaRight(int field_4_xaRight)Right of rectangle enclosing shape relative to the origin of the shape.voidsetYaBottom(int field_5_yaBottom)Bottom of the rectangle enclosing shape relative to the origin of the shape.voidsetYaTop(int field_3_yaTop)Top of rectangle enclosing shape relative to the origin of the shape.StringtoString()
-
-
-
Field Detail
-
field_1_spid
protected int field_1_spid
-
field_2_xaLeft
protected int field_2_xaLeft
-
field_3_yaTop
protected int field_3_yaTop
-
field_4_xaRight
protected int field_4_xaRight
-
field_5_yaBottom
protected int field_5_yaBottom
-
field_6_flags
protected short field_6_flags
-
field_7_cTxbx
protected int field_7_cTxbx
-
-
Method Detail
-
fillFields
protected void fillFields(byte[] data, int offset)
-
serialize
public void serialize(byte[] data, int offset)
-
getSize
public static int getSize()
Size of record
-
getSpid
@Internal public int getSpid()
Shape Identifier. Used in conjunction with the office art data (found via fcDggInfo in the FIB) to find the actual data for this shape.
-
setSpid
@Internal public void setSpid(int field_1_spid)
Shape Identifier. Used in conjunction with the office art data (found via fcDggInfo in the FIB) to find the actual data for this shape.
-
getXaLeft
@Internal public int getXaLeft()
Left of rectangle enclosing shape relative to the origin of the shape.
-
setXaLeft
@Internal public void setXaLeft(int field_2_xaLeft)
Left of rectangle enclosing shape relative to the origin of the shape.
-
getYaTop
@Internal public int getYaTop()
Top of rectangle enclosing shape relative to the origin of the shape.
-
setYaTop
@Internal public void setYaTop(int field_3_yaTop)
Top of rectangle enclosing shape relative to the origin of the shape.
-
getXaRight
@Internal public int getXaRight()
Right of rectangle enclosing shape relative to the origin of the shape.
-
setXaRight
@Internal public void setXaRight(int field_4_xaRight)
Right of rectangle enclosing shape relative to the origin of the shape.
-
getYaBottom
@Internal public int getYaBottom()
Bottom of the rectangle enclosing shape relative to the origin of the shape.
-
setYaBottom
@Internal public void setYaBottom(int field_5_yaBottom)
Bottom of the rectangle enclosing shape relative to the origin of the shape.
-
getFlags
@Internal public short getFlags()
Get the flags field for the FSPA record.
-
setFlags
@Internal public void setFlags(short field_6_flags)
Set the flags field for the FSPA record.
-
getCTxbx
@Internal public int getCTxbx()
Count of textboxes in shape (undo doc only).
-
setCTxbx
@Internal public void setCTxbx(int field_7_cTxbx)
Count of textboxes in shape (undo doc only).
-
setFHdr
@Internal public void setFHdr(boolean value)
Sets the fHdr field value. 1 in the undo doc when shape is from the header doc, 0 otherwise (undefined when not in the undo doc)
-
isFHdr
@Internal public boolean isFHdr()
1 in the undo doc when shape is from the header doc, 0 otherwise (undefined when not in the undo doc)- Returns:
- the fHdr field value.
-
setBx
@Internal public void setBx(byte value)
Sets the bx field value. X position of shape relative to anchor CP
-
getBx
@Internal public byte getBx()
X position of shape relative to anchor CP- Returns:
- the bx field value.
-
setBy
@Internal public void setBy(byte value)
Sets the by field value. Y position of shape relative to anchor CP
-
getBy
@Internal public byte getBy()
Y position of shape relative to anchor CP- Returns:
- the by field value.
-
setWr
@Internal public void setWr(byte value)
Sets the wr field value. Text wrapping mode
-
getWr
@Internal public byte getWr()
Text wrapping mode- Returns:
- the wr field value.
-
setWrk
@Internal public void setWrk(byte value)
Sets the wrk field value. Text wrapping mode type (valid only for wrapping modes 2 and 4
-
getWrk
@Internal public byte getWrk()
Text wrapping mode type (valid only for wrapping modes 2 and 4- Returns:
- the wrk field value.
-
setFRcaSimple
@Internal public void setFRcaSimple(boolean value)
Sets the fRcaSimple field value. When set, temporarily overrides bx, by, forcing the xaLeft, xaRight, yaTop, and yaBottom fields to all be page relative.
-
isFRcaSimple
@Internal public boolean isFRcaSimple()
When set, temporarily overrides bx, by, forcing the xaLeft, xaRight, yaTop, and yaBottom fields to all be page relative.- Returns:
- the fRcaSimple field value.
-
setFBelowText
@Internal public void setFBelowText(boolean value)
Sets the fBelowText field value.
-
isFBelowText
@Internal public boolean isFBelowText()
- Returns:
- the fBelowText field value.
-
setFAnchorLock
@Internal public void setFAnchorLock(boolean value)
Sets the fAnchorLock field value.
-
isFAnchorLock
@Internal public boolean isFAnchorLock()
- Returns:
- the fAnchorLock field value.
-
-