public final class NoteRecord extends StandardRecord
Modifier and Type | Field and Description |
---|---|
static NoteRecord[] |
EMPTY_ARRAY |
static short |
NOTE_HIDDEN
Flag indicating that the comment is hidden (default)
(指示评论被隐藏的标志(默认))
|
static short |
NOTE_VISIBLE
Flag indicating that the comment is visible
(指示评论可见的标志)
|
static short |
sid |
Constructor and Description |
---|
NoteRecord()
Construct a new
NoteRecord and fill its data with the default values
|
NoteRecord(NoteRecord other) |
NoteRecord(RecordInputStream in)
Read the record data from the supplied
RecordInputStream
|
Modifier and Type | Method and Description |
---|---|
NoteRecord |
copy() |
java.lang.String |
getAuthor()
Name of the original comment author
(原评论作者姓名)
|
int |
getColumn()
Return the column that contains the comment
(返回包含评论的列)
|
protected int |
getDataSize() |
short |
getFlags()
Options flags.
(选项标志。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getRow()
Return the row that contains the comment
(返回包含评论的行)
|
int |
getShapeId()
Object id for OBJ record that contains the comment
(包含评论的 OBJ 记录的对象 ID)
|
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
(写入此 BIFF 记录的数据内容。)
|
void |
setAuthor(java.lang.String author)
Name of the original comment author
(原评论作者姓名)
|
void |
setColumn(int col)
Specify the column that contains the comment
(指定包含注释的列)
|
void |
setFlags(short flags)
Options flag
(选项标志)
|
void |
setRow(int row)
Specify the row that contains the comment
(指定包含注释的行)
|
void |
setShapeId(int id)
Object id for OBJ record that contains the comment
(包含评论的 OBJ 记录的对象 ID)
|
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public static final NoteRecord[] EMPTY_ARRAY
public static final short NOTE_HIDDEN
public static final short NOTE_VISIBLE
public NoteRecord()
NoteRecord
and fill its data with the default values
(构造一个新的 NoteRecord 并用默认值填充它的数据)
public NoteRecord(NoteRecord other)
public NoteRecord(RecordInputStream in)
RecordInputStream
(从提供的 RecordInputStream 中读取记录数据)
in
- the RecordInputStream to read from
(in - 要读取的 RecordInputStream)
public short getSid()
Record
public void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by RecordBase.getRecordSize()
} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).
serialize
in class
StandardRecord
(在 StandardRecord 类中序列化)
out
- the output object
(out - 输出对象)
protected int getDataSize()
getDataSize
in class
StandardRecord
(类 StandardRecord 中的 getDataSize)
public int getRow()
public void setRow(int row)
row
- the row that contains the comment
(row - 包含评论的行)
public int getColumn()
public void setColumn(int col)
col
- the column that contains the comment
(col - 包含评论的列)
public short getFlags()
NOTE_VISIBLE
,
NOTE_HIDDEN
public void setFlags(short flags)
flags
- the options flag
(flags - 选项标志)
NOTE_VISIBLE
,
NOTE_HIDDEN
public int getShapeId()
public void setShapeId(int id)
id
- the Object id for OBJ record that contains the comment
(id - 包含评论的 OBJ 记录的对象 ID)
public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- the name of the original author of the comment
(author - 评论原作者的姓名)
public NoteRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
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.