public class NoteRecord extends Record
| Modifier and Type | Field and Description | 
|---|---|
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(RecordInputStream in)
Constructs a  
NoteRecord and fills its fields
 from the supplied RecordInputStream. | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
fillFields(RecordInputStream in)
Read the record data from the supplied  
RecordInputStream | 
String | 
getAuthor()
Name of the original comment author 
 | 
short | 
getColumn()
Return the column that contains the comment 
 | 
short | 
getFlags()
Options flags. 
 | 
int | 
getRecordSize()
Size of record 
 | 
short | 
getRow()
Return the row that contains the comment 
 | 
short | 
getShapeId()
Object id for OBJ record that contains the comment 
 | 
short | 
getSid()
return the non static version of the id for this record. 
 | 
int | 
serialize(int offset,
         byte[] data)
Serialize the record data into the supplied array of bytes 
 | 
void | 
setAuthor(String author)
Name of the original comment author 
 | 
void | 
setColumn(short col)
Specify the column that contains the comment 
 | 
void | 
setFlags(short flags)
Options flag 
 | 
void | 
setRow(short row)
Specify the row that contains the comment 
 | 
void | 
setShapeId(short id)
Object id for OBJ record that contains the comment 
 | 
String | 
toString()
Convert this record to string. 
 | 
protected void | 
validateSid(short id)
Checks the sid matches the expected side for this record 
 | 
clone, isInValueSection, isValue, serializepublic static final short sid
public static final short NOTE_HIDDEN
public static final short NOTE_VISIBLE
public NoteRecord()
NoteRecord and
 fill its data with the default valuespublic NoteRecord(RecordInputStream in)
NoteRecord and fills its fields
 from the supplied RecordInputStream.in - the stream to read frompublic short getSid()
Recordprotected void validateSid(short id)
validateSid in class Recordid - the expected sid.protected void fillFields(RecordInputStream in)
RecordInputStreamfillFields in class Recordin - the RecordInputstream to read the record frompublic int serialize(int offset,
            byte[] data)
public int getRecordSize()
getRecordSize in class Recordpublic String toString()
public short getRow()
public void setRow(short row)
row - the row that contains the commentpublic short getColumn()
public void setColumn(short col)
col - the column that contains the commentpublic short getFlags()
NOTE_VISIBLE, 
NOTE_HIDDENpublic void setFlags(short flags)
flags - the options flagNOTE_VISIBLE, 
NOTE_HIDDENpublic short getShapeId()
public void setShapeId(short id)
public String getAuthor()
public void setAuthor(String author)
author - the name of the original author of the commentCopyright © 2014 Open Microscopy Environment