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.
(返回此记录的 id 的非静态版本。)
|
HSSFRichTextString |
getStr() |
int |
getTextOrientation()
Get the text orientation field for the TextObjectBase record.
(获取 TextObjectBase 记录的文本方向字段。)
|
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.
(设置 TextObjectBase 记录的文本方向字段。)
|
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
(在类 ContinuableRecord 中序列化)
out
- a data output stream
(out - 数据输出流)
public void setHorizontalTextAlignment(int value)
value
- The horizontal alignment, use one of the HORIZONTAL_TEXT_ALIGNMENT_... constants in this class
(value - 水平对齐方式,使用此类中的 HORIZONTAL_TEXT_ALIGNMENT_... 常量之一)
public int getHorizontalTextAlignment()
public void setVerticalTextAlignment(int value)
value
- The vertical alignment, use one of the VERTIUCAL_TEST_ALIGNMENT_... constants in this class
(value - 垂直对齐,使用此类中的 VERTIUCAL_TEST_ALIGNMENT_... 常量之一)
public int getVerticalTextAlignment()
public void setTextLocked(boolean value)
value
- If the text should be locked
(value - 如果文本应该被锁定)
public 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_LEFT
(textOrientation - TEXT_ORIENTATION_NONE TEXT_ORIENTATION_TOP_TO_BOTTOM TEXT_ORIENTATION_ROT_RIGHT TEXT_ORIENTATION_ROT_LEFT 之一)
public HSSFRichTextString getStr()
public void setStr(HSSFRichTextString str)
public Ptg getLinkRefPtg()
public TextObjectRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
Record
(复制课堂记录)
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in class
Record
(类 Record 中的 getGenericRecordType)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.