public class TextObjectBaseRecord extends Record
Constructor and Description |
---|
TextObjectBaseRecord() |
TextObjectBaseRecord(RecordInputStream in)
Constructs a TextObjectBase record and sets its fields appropriately.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
short |
getFormattingRunLength()
Get the formatting run length field for the TextObjectBase record.
|
short |
getHorizontalTextAlignment() |
short |
getOptions()
Get the options field for the TextObjectBase record.
|
int |
getRecordSize()
Size of record (exluding 4 byte header)
|
short |
getReserved2() |
short |
getReserved3() |
short |
getReserved4()
Get the reserved4 field for the TextObjectBase record.
|
short |
getReserved5()
Get the reserved5 field for the TextObjectBase record.
|
short |
getReserved6()
Get the reserved6 field for the TextObjectBase record.
|
int |
getReserved7()
Get the reserved7 field for the TextObjectBase record.
|
short |
getSid()
return the non static version of the id for this record.
|
short |
getTextLength()
Get the text length field for the TextObjectBase record.
|
short |
getTextOrientation()
Get the text orientation field for the TextObjectBase record.
|
short |
getVerticalTextAlignment() |
boolean |
isReserved1()
reserved field
|
boolean |
isTextLocked()
Text has been locked
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setFormattingRunLength(short field_7_formattingRunLength)
Set the formatting run length field for the TextObjectBase record.
|
void |
setHorizontalTextAlignment(short value)
Sets the Horizontal text alignment field value.
|
void |
setOptions(short field_1_options)
Set the options field for the TextObjectBase record.
|
void |
setReserved1(boolean value)
Sets the reserved1 field value.
|
void |
setReserved2(short value)
Sets the reserved2 field value.
|
void |
setReserved3(short value)
Sets the reserved3 field value.
|
void |
setReserved4(short field_3_reserved4)
Set the reserved4 field for the TextObjectBase record.
|
void |
setReserved5(short field_4_reserved5)
Set the reserved5 field for the TextObjectBase record.
|
void |
setReserved6(short field_5_reserved6)
Set the reserved6 field for the TextObjectBase record.
|
void |
setReserved7(int field_8_reserved7)
Set the reserved7 field for the TextObjectBase record.
|
void |
setTextLength(short field_6_textLength)
Set the text length field for the TextObjectBase record.
|
void |
setTextLocked(boolean value)
Sets the text locked field value.
|
void |
setTextOrientation(short field_2_textOrientation)
Set the text orientation field for the TextObjectBase record.
|
void |
setVerticalTextAlignment(short value)
Sets the Vertical text alignment field value.
|
String |
toString()
get a string representation of the record (for biffview/debugging)
|
protected void |
validateSid(short id)
Checks the sid matches the expected side for this record
|
isInValueSection, isValue, serialize
public static final short sid
private short field_1_options
private BitField reserved1
private BitField HorizontalTextAlignment
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
private BitField VerticalTextAlignment
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
private BitField reserved2
private BitField textLocked
private BitField reserved3
private short field_2_textOrientation
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
private short field_3_reserved4
private short field_4_reserved5
private short field_5_reserved6
private short field_6_textLength
private short field_7_formattingRunLength
private int field_8_reserved7
public TextObjectBaseRecord()
public TextObjectBaseRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected void validateSid(short id)
validateSid
in class Record
id
- the expected sid.protected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic String toString()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
getRecordSize
in class Record
public short getSid()
Record
public short getOptions()
public void setOptions(short field_1_options)
public short getTextOrientation()
public void setTextOrientation(short field_2_textOrientation)
field_2_textOrientation
- One of
TEXT_ORIENTATION_NONE
TEXT_ORIENTATION_TOP_TO_BOTTOM
TEXT_ORIENTATION_ROT_RIGHT
TEXT_ORIENTATION_ROT_LEFTpublic short getReserved4()
public void setReserved4(short field_3_reserved4)
public short getReserved5()
public void setReserved5(short field_4_reserved5)
public short getReserved6()
public void setReserved6(short field_5_reserved6)
public short getTextLength()
public void setTextLength(short field_6_textLength)
public short getFormattingRunLength()
public void setFormattingRunLength(short field_7_formattingRunLength)
public int getReserved7()
public void setReserved7(int field_8_reserved7)
public void setReserved1(boolean value)
public boolean isReserved1()
public void setHorizontalTextAlignment(short value)
public short getHorizontalTextAlignment()
public void setVerticalTextAlignment(short value)
public short getVerticalTextAlignment()
public void setReserved2(short value)
public short getReserved2()
public void setTextLocked(boolean value)
public boolean isTextLocked()
public void setReserved3(short value)
public short getReserved3()
Copyright © 2015 Open Microscopy Environment