public class EscherClientAnchorRecord extends EscherRecord
EscherChildAnchorRecord
EscherRecord.EscherRecordHeader
Modifier and Type | Field and Description |
---|---|
private short |
field_1_flag |
private short |
field_2_col1 |
private short |
field_3_dx1 |
private short |
field_4_row1 |
private short |
field_5_dy1 |
private short |
field_6_col2 |
private short |
field_7_dx2 |
private short |
field_8_row2 |
private short |
field_9_dy2 |
static String |
RECORD_DESCRIPTION |
static short |
RECORD_ID |
private byte[] |
remainingData |
private boolean |
shortRecord |
Constructor and Description |
---|
EscherClientAnchorRecord() |
Modifier and Type | Method and Description |
---|---|
int |
fillFields(byte[] data,
int offset,
EscherRecordFactory recordFactory)
This method deserializes the record from a byte array.
|
short |
getCol1()
The column number for the top-left position.
|
short |
getCol2()
The column of the bottom right corner of this shape.
|
short |
getDx1()
The x offset within the top-left cell.
|
short |
getDx2()
The x offset withing the cell for the bottom-right corner of this shape.
|
short |
getDy1()
The y offset within the top-left corner of the current shape.
|
short |
getDy2()
The y offset withing the cell for the bottom-right corner of this shape.
|
short |
getFlag()
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.
|
short |
getRecordId()
The record id for this record.
|
String |
getRecordName()
The short name for this record
|
int |
getRecordSize()
Returns the number of bytes that are required to serialize this record.
|
byte[] |
getRemainingData()
Any remaining data in the record
|
short |
getRow1()
The row number for the top-left corner of the shape.
|
short |
getRow2()
The row number for the bottom-right corner of the current shape.
|
int |
serialize(int offset,
byte[] data,
EscherSerializationListener listener)
This method serializes this escher record into a byte array.
|
void |
setCol1(short field_2_col1)
The column number for the top-left position.
|
void |
setCol2(short field_6_col2)
The column of the bottom right corner of this shape.
|
void |
setDx1(short field_3_dx1)
The x offset within the top-left cell.
|
void |
setDx2(short field_7_dx2)
The x offset withing the cell for the bottom-right corner of this shape.
|
void |
setDy1(short field_5_dy1)
The y offset within the top-left corner of the current shape.
|
void |
setDy2(short field_9_dy2)
The y offset withing the cell for the bottom-right corner of this shape.
|
void |
setFlag(short field_1_flag)
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.
|
void |
setRemainingData(byte[] remainingData)
Any remaining data in the record
|
void |
setRow1(short field_4_row1)
The row number for the top-left corner of the shape.
|
void |
setRow2(short field_8_row2)
The row number for the bottom-right corner of the current shape.
|
String |
toString()
Returns the string representation for this record.
|
clone, display, fillFields, getChild, getChildRecords, getInstance, getOptions, isContainerRecord, readHeader, serialize, serialize, setChildRecords, setOptions, setRecordId
public static final short RECORD_ID
public static final String RECORD_DESCRIPTION
private short field_1_flag
private short field_2_col1
private short field_3_dx1
private short field_4_row1
private short field_5_dy1
private short field_6_col2
private short field_7_dx2
private short field_8_row2
private short field_9_dy2
private byte[] remainingData
private boolean shortRecord
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
fillFields
in class EscherRecord
data
- The byte array containing the escher record informationoffset
- The starting offset into data
.recordFactory
- May be null since this is not a container record.public int serialize(int offset, byte[] data, EscherSerializationListener listener)
serialize
in class EscherRecord
offset
- The offset into data
to start writing the record data to.data
- The byte array to serialize to.listener
- A listener to retrieve start and end callbacks. Use a NullEscherSerailizationListener
to ignore these events.NullEscherSerializationListener
public int getRecordSize()
getRecordSize
in class EscherRecord
public short getRecordId()
getRecordId
in class EscherRecord
public String getRecordName()
getRecordName
in class EscherRecord
public String toString()
public short getFlag()
public void setFlag(short field_1_flag)
public short getCol1()
public void setCol1(short field_2_col1)
public short getDx1()
public void setDx1(short field_3_dx1)
public short getRow1()
public void setRow1(short field_4_row1)
public short getDy1()
public void setDy1(short field_5_dy1)
public short getCol2()
public void setCol2(short field_6_col2)
public short getDx2()
public void setDx2(short field_7_dx2)
public short getRow2()
public void setRow2(short field_8_row2)
public short getDy2()
public void setDy2(short field_9_dy2)
public byte[] getRemainingData()
public void setRemainingData(byte[] remainingData)
Copyright © 2016 Open Microscopy Environment