public class EscherClientAnchorRecord extends EscherRecord
EscherChildAnchorRecord
Modifier and Type | Field and Description |
---|---|
static short |
RECORD_ID |
Constructor and Description |
---|
EscherClientAnchorRecord() |
EscherClientAnchorRecord(EscherClientAnchorRecord other) |
Modifier and Type | Method and Description |
---|---|
EscherClientAnchorRecord |
copy() |
int |
fillFields(byte[] data,
int offset,
EscherRecordFactory recordFactory)
The contract of this method is to deserialize an escher record including
it's children.
|
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.
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
java.lang.Enum |
getGenericRecordType() |
short |
getRecordId()
Return the current record id.
|
java.lang.String |
getRecordName()
Subclasses should return the short name for this escher record.
|
int |
getRecordSize()
Subclasses should effeciently return the number of bytes required to
serialize the 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)
Serializes the record to an existing 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 of 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.
|
display, fillFields, getChild, getChildRecords, getGenericChildren, getInstance, getOptions, getVersion, isContainerRecord, readHeader, readInstance, serialize, serialize, setChildRecords, setInstance, setOptions, setRecordId, setVersion, toString, toXml, toXml
public EscherClientAnchorRecord()
public EscherClientAnchorRecord(EscherClientAnchorRecord other)
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
EscherRecord
fillFields
in class EscherRecord
data
- The byte array containing the serialized escher
records.offset
- The offset into the byte array.recordFactory
- A factory for creating new escher records.public int serialize(int offset, byte[] data, EscherSerializationListener listener)
EscherRecord
serialize
in class EscherRecord
offset
- the offset within the byte arraydata
- the data array to serialize tolistener
- a listener for begin and end serialization events. This
is useful because the serialization is
hierarchical/recursive and sometimes you need to be able
break into that.public int getRecordSize()
EscherRecord
getRecordSize
in class EscherRecord
public short getRecordId()
EscherRecord
getRecordId
in class EscherRecord
public java.lang.String getRecordName()
EscherRecord
getRecordName
in class EscherRecord
public short getFlag()
public void setFlag(short field_1_flag)
field_1_flag
- the move/size flagpublic short getCol1()
public void setCol1(short field_2_col1)
field_2_col1
- the column number of the top-left cornerpublic short getDx1()
public void setDx1(short field_3_dx1)
field_3_dx1
- the x offset of the top-left cornerpublic short getRow1()
public void setRow1(short field_4_row1)
field_4_row1
- the row number of the top-left cornerpublic short getDy1()
public void setDy1(short field_5_dy1)
field_5_dy1
- the y offset of the top-left cornerpublic short getCol2()
public void setCol2(short field_6_col2)
field_6_col2
- the column of the bottom right cornerpublic short getDx2()
public void setDx2(short field_7_dx2)
field_7_dx2
- the x offset of the bottom-right cornerpublic short getRow2()
public void setRow2(short field_8_row2)
field_8_row2
- the row number for the bottom-right cornerpublic short getDy2()
public void setDy2(short field_9_dy2)
field_9_dy2
- the y offset of the bottom-right cornerpublic byte[] getRemainingData()
public void setRemainingData(byte[] remainingData)
remainingData
- the remaining bytespublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
getGenericProperties
in class EscherRecord
public java.lang.Enum getGenericRecordType()
public EscherClientAnchorRecord copy()
copy
in interface Duplicatable
copy
in class EscherRecord
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.