public class TickRecord extends Record
Modifier and Type | Field and Description |
---|---|
private BitField |
autorotate |
private BitField |
autoTextBackground |
private BitField |
autoTextColor |
private byte |
field_1_majorTickType |
private short |
field_10_options |
private short |
field_11_tickColor |
private short |
field_12_zero5 |
private byte |
field_2_minorTickType |
private byte |
field_3_labelPosition |
private byte |
field_4_background |
private int |
field_5_labelColorRgb |
private int |
field_6_zero1 |
private int |
field_7_zero2 |
private int |
field_8_zero3 |
private int |
field_9_zero4 |
private BitField |
rotation |
static short |
sid |
Constructor and Description |
---|
TickRecord() |
TickRecord(RecordInputStream in)
Constructs a Tick 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.
|
byte |
getBackground()
Get the background field for the Tick record.
|
int |
getLabelColorRgb()
Get the label color rgb field for the Tick record.
|
byte |
getLabelPosition()
Get the label position field for the Tick record.
|
byte |
getMajorTickType()
Get the major tick type field for the Tick record.
|
byte |
getMinorTickType()
Get the minor tick type field for the Tick record.
|
short |
getOptions()
Get the options field for the Tick record.
|
int |
getRecordSize()
Size of record (exluding 4 byte header)
|
short |
getRotation()
rotate text (0=none, 1=normal, 2=90 degrees counterclockwise, 3=90 degrees clockwise)
|
short |
getSid()
return the non static version of the id for this record.
|
short |
getTickColor()
Get the tick color field for the Tick record.
|
int |
getZero1()
Get the zero 1 field for the Tick record.
|
int |
getZero2()
Get the zero 2 field for the Tick record.
|
short |
getZero3()
Get the zero 3 field for the Tick record.
|
boolean |
isAutorotate()
automatically rotate the text
|
boolean |
isAutoTextBackground()
use the quote unquote automatic color for text background
|
boolean |
isAutoTextColor()
use the quote unquote automatic color for text
|
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setAutorotate(boolean value)
Sets the autorotate field value.
|
void |
setAutoTextBackground(boolean value)
Sets the auto text background field value.
|
void |
setAutoTextColor(boolean value)
Sets the auto text color field value.
|
void |
setBackground(byte field_4_background)
Set the background field for the Tick record.
|
void |
setLabelColorRgb(int field_5_labelColorRgb)
Set the label color rgb field for the Tick record.
|
void |
setLabelPosition(byte field_3_labelPosition)
Set the label position field for the Tick record.
|
void |
setMajorTickType(byte field_1_majorTickType)
Set the major tick type field for the Tick record.
|
void |
setMinorTickType(byte field_2_minorTickType)
Set the minor tick type field for the Tick record.
|
void |
setOptions(short field_10_options)
Set the options field for the Tick record.
|
void |
setRotation(short value)
Sets the rotation field value.
|
void |
setTickColor(short field_11_tickColor)
Set the tick color field for the Tick record.
|
void |
setZero1(int field_6_zero1)
Set the zero 1 field for the Tick record.
|
void |
setZero2(int field_7_zero2)
Set the zero 2 field for the Tick record.
|
void |
setZero3(short field_12_zero3)
Set the zero 3 field for the Tick record.
|
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 byte field_1_majorTickType
private byte field_2_minorTickType
private byte field_3_labelPosition
private byte field_4_background
private int field_5_labelColorRgb
private int field_6_zero1
private int field_7_zero2
private int field_8_zero3
private int field_9_zero4
private short field_10_options
private BitField autoTextColor
private BitField autoTextBackground
private BitField rotation
private BitField autorotate
private short field_11_tickColor
private short field_12_zero5
public TickRecord()
public TickRecord(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 byte getMajorTickType()
public void setMajorTickType(byte field_1_majorTickType)
public byte getMinorTickType()
public void setMinorTickType(byte field_2_minorTickType)
public byte getLabelPosition()
public void setLabelPosition(byte field_3_labelPosition)
public byte getBackground()
public void setBackground(byte field_4_background)
public int getLabelColorRgb()
public void setLabelColorRgb(int field_5_labelColorRgb)
public int getZero1()
public void setZero1(int field_6_zero1)
public int getZero2()
public void setZero2(int field_7_zero2)
public short getOptions()
public void setOptions(short field_10_options)
public short getTickColor()
public void setTickColor(short field_11_tickColor)
public short getZero3()
public void setZero3(short field_12_zero3)
public void setAutoTextColor(boolean value)
public boolean isAutoTextColor()
public void setAutoTextBackground(boolean value)
public boolean isAutoTextBackground()
public void setRotation(short value)
public short getRotation()
public void setAutorotate(boolean value)
public boolean isAutorotate()
Copyright © 2016 Open Microscopy Environment