public final class TextObjectRecord extends ContinuableRecord
Modifier and Type | Field and Description |
---|---|
static short |
HORIZONTAL_TEXT_ALIGNMENT_CENTERED |
static short |
HORIZONTAL_TEXT_ALIGNMENT_JUSTIFIED |
static short |
HORIZONTAL_TEXT_ALIGNMENT_LEFT_ALIGNED |
static short |
HORIZONTAL_TEXT_ALIGNMENT_RIGHT_ALIGNED |
static short |
sid |
static short |
TEXT_ORIENTATION_NONE |
static short |
TEXT_ORIENTATION_ROT_LEFT |
static short |
TEXT_ORIENTATION_ROT_RIGHT |
static short |
TEXT_ORIENTATION_TOP_TO_BOTTOM |
static short |
VERTICAL_TEXT_ALIGNMENT_BOTTOM |
static short |
VERTICAL_TEXT_ALIGNMENT_CENTER |
static short |
VERTICAL_TEXT_ALIGNMENT_JUSTIFY |
static short |
VERTICAL_TEXT_ALIGNMENT_TOP |
Constructor and Description |
---|
TextObjectRecord() |
TextObjectRecord(RecordInputStream in) |
TextObjectRecord(TextObjectRecord other) |
Modifier and Type | Method and Description |
---|---|
TextObjectRecord |
copy() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getHorizontalTextAlignment() |
Ptg |
getLinkRefPtg() |
short |
getSid()
return the non static version of the id for this record.
|
HSSFRichTextString |
getStr() |
int |
getTextOrientation()
Get the text orientation field for the TextObjectBase record.
|
int |
getVerticalTextAlignment() |
boolean |
isTextLocked() |
protected void |
serialize(ContinuableRecordOutput out)
Serializes this record's content to the supplied data output.
|
void |
setHorizontalTextAlignment(int value)
Sets the Horizontal text alignment field value.
|
void |
setStr(HSSFRichTextString str) |
void |
setTextLocked(boolean value)
Sets the text locked field value.
|
void |
setTextOrientation(int textOrientation)
Set the text orientation field for the TextObjectBase record.
|
void |
setVerticalTextAlignment(int value)
Sets the Vertical text alignment field value.
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public static final short HORIZONTAL_TEXT_ALIGNMENT_LEFT_ALIGNED
public static final short HORIZONTAL_TEXT_ALIGNMENT_CENTERED
public static final short HORIZONTAL_TEXT_ALIGNMENT_RIGHT_ALIGNED
public static final short HORIZONTAL_TEXT_ALIGNMENT_JUSTIFIED
public static final short VERTICAL_TEXT_ALIGNMENT_TOP
public static final short VERTICAL_TEXT_ALIGNMENT_CENTER
public static final short VERTICAL_TEXT_ALIGNMENT_BOTTOM
public static final short VERTICAL_TEXT_ALIGNMENT_JUSTIFY
public static final short TEXT_ORIENTATION_NONE
public static final short TEXT_ORIENTATION_TOP_TO_BOTTOM
public static final short TEXT_ORIENTATION_ROT_RIGHT
public static final short TEXT_ORIENTATION_ROT_LEFT
public TextObjectRecord()
public TextObjectRecord(TextObjectRecord other)
public TextObjectRecord(RecordInputStream in)
public short getSid()
Record
protected void serialize(ContinuableRecordOutput out)
ContinuableRecord
The standard BIFF header (ushort sid, ushort size) has been handled by the superclass, so
only BIFF data should be written by this method. Simple data types can be written with the
standard LittleEndianOutput
methods. Methods from ContinuableRecordOutput
can be used to serialize strings (with ContinueRecord
s being written as required).
If necessary, implementors can explicitly start ContinueRecord
s (regardless of the
amount of remaining space).
serialize
in class ContinuableRecord
out
- a data output streampublic void setHorizontalTextAlignment(int value)
value
- The horizontal alignment, use one of the HORIZONTAL_TEXT_ALIGNMENT_... constants in this classpublic int getHorizontalTextAlignment()
public void setVerticalTextAlignment(int value)
value
- The vertical alignment, use one of the VERTIUCAL_TEST_ALIGNMENT_... constants in this classpublic int getVerticalTextAlignment()
public void setTextLocked(boolean value)
value
- If the text should be lockedpublic boolean isTextLocked()
public int getTextOrientation()
public void setTextOrientation(int textOrientation)
textOrientation
- One of TEXT_ORIENTATION_NONE TEXT_ORIENTATION_TOP_TO_BOTTOM
TEXT_ORIENTATION_ROT_RIGHT TEXT_ORIENTATION_ROT_LEFTpublic HSSFRichTextString getStr()
public void setStr(HSSFRichTextString str)
public Ptg getLinkRefPtg()
public TextObjectRecord copy()
copy
in interface Duplicatable
copy
in class Record
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface GenericRecord
getGenericRecordType
in class Record
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.