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 |
---|---|
protected boolean |
authorIsMultibyte()
For unit testing only!
|
NoteRecord |
clone()
Deprecated.
|
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.
|
int |
getRow()
Return the row that contains the comment
|
int |
getShapeId()
Object id for OBJ record that contains the comment
|
short |
getSid()
return the non static version of the id for this record.
|
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
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
|
java.lang.String |
toString()
Convert this record to string.
|
getRecordSize, serialize
cloneViaReserialise, serialize
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 valuespublic NoteRecord(NoteRecord other)
public NoteRecord(RecordInputStream in)
RecordInputStream
in
- the RecordInputStream to read frompublic 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
out
- the output objectprotected int getDataSize()
getDataSize
in class StandardRecord
public java.lang.String toString()
public int getRow()
public void setRow(int row)
row
- the row that contains the commentpublic int getColumn()
public void setColumn(int col)
col
- the column that contains the commentpublic short getFlags()
NOTE_VISIBLE
,
NOTE_HIDDEN
public void setFlags(short flags)
flags
- the options flagNOTE_VISIBLE
,
NOTE_HIDDEN
protected boolean authorIsMultibyte()
public int getShapeId()
public void setShapeId(int id)
id
- the Object id for OBJ record that contains the commentpublic java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- the name of the original author of the comment@Deprecated @Removal(version="5.0.0") public NoteRecord clone()
clone
in class java.lang.Object
public NoteRecord copy()
copy
in interface Duplicatable
copy
in class StandardRecord
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.