jxl.biff.drawing
abstract class: EscherRecord [javadoc |
source]
java.lang.Object
jxl.biff.drawing.EscherRecord
Direct Known Subclasses:
SplitMenuColors, EscherAtom, Spgr, Dgg, BStoreContainer, ClientData, Opt, Dg, Sp, ClientTextBox, ClientAnchor, DggContainer, BlipStoreEntry, SpgrContainer, EscherContainer, SpContainer, DgContainer
The base class for all escher records. This class contains
the common header data and is basically a wrapper for the EscherRecordData
object
| Field Summary |
|---|
| protected static final int | HEADER_LENGTH | The length of the escher header on all records |
| Method from jxl.biff.drawing.EscherRecord Summary: |
|---|
|
getBytes, getData, getEscherData, getEscherStream, getInstance, getLength, getPos, getStreamLength, getType, setContainer, setHeaderData, setInstance, setVersion |
| Method from jxl.biff.drawing.EscherRecord Detail: |
byte[] getBytes() {
return data.getBytes();
}
Gets the data that was read in, excluding the header data |
abstract byte[] getData()
Abstract method used to retrieve the generated escher data when writing
out image information |
protected EscherRecordData getEscherData() {
return data;
}
Used by the EscherDisplay class to retrieve the data |
protected final EscherStream getEscherStream() {
return data.getEscherStream();
}
Accessor for the escher stream |
protected final int getInstance() {
return data.getInstance();
}
Accessor for the instance |
public int getLength() {
return data.getLength() + HEADER_LENGTH;
}
Gets the entire length of the record, including the header |
protected final int getPos() {
return data.getPos();
}
The position of this escher record in the stream |
protected int getStreamLength() {
return data.getStreamLength();
}
Accessor for the stream length |
public EscherRecordType getType() {
return data.getType();
}
Accessor for the escher type |
protected void setContainer(boolean cont) {
data.setContainer(cont);
}
Identifies whether this item is a container |
final byte[] setHeaderData(byte[] d) {
return data.setHeaderData(d);
}
Prepends the standard header data to the first eight bytes of the array
and returns it |
protected final void setInstance(int i) {
data.setInstance(i);
}
Sets the instance number when writing out the escher data |
protected final void setVersion(int v) {
data.setVersion(v);
}
Sets the version when writing out the escher data |