Package org.apache.poi.hssf.record
Class TextObjectRecord
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.cont.ContinuableRecord
org.apache.poi.hssf.record.TextObjectRecord
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord
The TXO record (0x01B6) is used to define the properties of a text box. It is
followed by two or more continue records unless there is no actual text. The
first continue records contain the text data and the last continue record
contains the formatting runs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()intshortgetSid()return the non static version of the id for this record.getStr()intGet the text orientation field for the TextObjectBase record.intbooleanvoidsetHorizontalTextAlignment(int value) Sets the Horizontal text alignment field value.voidsetStr(HSSFRichTextString str) voidsetTextLocked(boolean value) Sets the text locked field value.voidsetTextOrientation(int textOrientation) Set the text orientation field for the TextObjectBase record.voidsetVerticalTextAlignment(int value) Sets the Vertical text alignment field value.Methods inherited from class org.apache.poi.hssf.record.cont.ContinuableRecord
getRecordSize, serializeMethods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, serialize, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Field Details
-
sid
public static final short sid- See Also:
-
HORIZONTAL_TEXT_ALIGNMENT_LEFT_ALIGNED
public static final short HORIZONTAL_TEXT_ALIGNMENT_LEFT_ALIGNED- See Also:
-
HORIZONTAL_TEXT_ALIGNMENT_CENTERED
public static final short HORIZONTAL_TEXT_ALIGNMENT_CENTERED- See Also:
-
HORIZONTAL_TEXT_ALIGNMENT_RIGHT_ALIGNED
public static final short HORIZONTAL_TEXT_ALIGNMENT_RIGHT_ALIGNED- See Also:
-
HORIZONTAL_TEXT_ALIGNMENT_JUSTIFIED
public static final short HORIZONTAL_TEXT_ALIGNMENT_JUSTIFIED- See Also:
-
VERTICAL_TEXT_ALIGNMENT_TOP
public static final short VERTICAL_TEXT_ALIGNMENT_TOP- See Also:
-
VERTICAL_TEXT_ALIGNMENT_CENTER
public static final short VERTICAL_TEXT_ALIGNMENT_CENTER- See Also:
-
VERTICAL_TEXT_ALIGNMENT_BOTTOM
public static final short VERTICAL_TEXT_ALIGNMENT_BOTTOM- See Also:
-
VERTICAL_TEXT_ALIGNMENT_JUSTIFY
public static final short VERTICAL_TEXT_ALIGNMENT_JUSTIFY- See Also:
-
TEXT_ORIENTATION_NONE
public static final short TEXT_ORIENTATION_NONE- See Also:
-
TEXT_ORIENTATION_TOP_TO_BOTTOM
public static final short TEXT_ORIENTATION_TOP_TO_BOTTOM- See Also:
-
TEXT_ORIENTATION_ROT_RIGHT
public static final short TEXT_ORIENTATION_ROT_RIGHT- See Also:
-
TEXT_ORIENTATION_ROT_LEFT
public static final short TEXT_ORIENTATION_ROT_LEFT- See Also:
-
-
Constructor Details
-
TextObjectRecord
public TextObjectRecord() -
TextObjectRecord
-
TextObjectRecord
-
-
Method Details
-
getSid
public short getSid()Description copied from class:Recordreturn the non static version of the id for this record. -
setHorizontalTextAlignment
public void setHorizontalTextAlignment(int value) Sets the Horizontal text alignment field value.- Parameters:
value- The horizontal alignment, use one of the HORIZONTAL_TEXT_ALIGNMENT_... constants in this class
-
getHorizontalTextAlignment
public int getHorizontalTextAlignment()- Returns:
- the Horizontal text alignment field value.
-
setVerticalTextAlignment
public void setVerticalTextAlignment(int value) Sets the Vertical text alignment field value.- Parameters:
value- The vertical alignment, use one of the VERTIUCAL_TEST_ALIGNMENT_... constants in this class
-
getVerticalTextAlignment
public int getVerticalTextAlignment()- Returns:
- the Vertical text alignment field value.
-
setTextLocked
public void setTextLocked(boolean value) Sets the text locked field value.- Parameters:
value- If the text should be locked
-
isTextLocked
public boolean isTextLocked()- Returns:
- the text locked field value.
-
getTextOrientation
public int getTextOrientation()Get the text orientation field for the TextObjectBase record.- Returns:
- One of TEXT_ORIENTATION_NONE TEXT_ORIENTATION_TOP_TO_BOTTOM TEXT_ORIENTATION_ROT_RIGHT TEXT_ORIENTATION_ROT_LEFT
-
setTextOrientation
public void setTextOrientation(int textOrientation) Set the text orientation field for the TextObjectBase record.- Parameters:
textOrientation- One of TEXT_ORIENTATION_NONE TEXT_ORIENTATION_TOP_TO_BOTTOM TEXT_ORIENTATION_ROT_RIGHT TEXT_ORIENTATION_ROT_LEFT
-
getStr
-
setStr
-
getLinkRefPtg
-
copy
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classRecord
-
getGenericProperties
-