Contains the various biff records used to copy a ComboBox (from the
Form toolbox) between workbook
Method from jxl.biff.drawing.ComboBox Detail: |
public final int getBlipId() {
if (!initialized)
{
initialize();
}
return blipId;
}
|
public int getColumn() {
return 0;
}
|
public DrawingGroup getDrawingGroup() {
return drawingGroup;
}
Accessor for the drawing group |
public double getHeight() {
if (!initialized)
{
initialize();
}
return height;
}
Accessor for the height of this drawing |
public byte[] getImageBytes() {
Assert.verify(false);
return null;
}
Accessor for the image data |
public byte[] getImageData() {
Assert.verify(origin == Origin.READ || origin == Origin.READ_WRITE);
if (!initialized)
{
initialize();
}
return drawingGroup.getImageData(blipId);
}
Accessor for the image data |
public String getImageFilePath() {
Assert.verify(false);
return null;
}
Accessor for the image file path. Normally this is the absolute path
of a file on the directory system, but if this drawing was constructed
using an byte[] then the blip id is returned |
public MsoDrawingRecord getMsoDrawingRecord() {
return msoDrawingRecord;
}
Gets the drawing record which was read in |
public final int getObjectId() {
if (!initialized)
{
initialize();
}
return objectId;
}
Accessor for the object id |
public Origin getOrigin() {
return origin;
}
Gets the origin of this drawing |
public int getReferenceCount() {
return referenceCount;
}
Accessor for the reference count on this drawing |
public int getRow() {
return 0;
}
|
public final int getShapeId() {
if (!initialized)
{
initialize();
}
return shapeId;
}
Accessor for the shape id |
public EscherContainer getSpContainer() {
if (!initialized)
{
initialize();
}
if (origin == Origin.READ)
{
return getReadSpContainer();
}
SpContainer spc = new SpContainer();
Sp sp = new Sp(type, shapeId, 2560);
spc.add(sp);
Opt opt = new Opt();
opt.addProperty(127, false, false, 17039620);
opt.addProperty(191, false, false, 524296);
opt.addProperty(511, false, false, 524288);
opt.addProperty(959, false, false, 131072);
// opt.addProperty(260, true, false, blipId);
// opt.addProperty(261, false, false, 36);
spc.add(opt);
ClientAnchor clientAnchor = new ClientAnchor(column,
row,
column + 1,
row + 1,
0x1);
spc.add(clientAnchor);
ClientData clientData = new ClientData();
spc.add(clientData);
return spc;
}
Creates the main Sp container for the drawing |
public ShapeType getType() {
return type;
}
|
public double getWidth() {
if (!initialized)
{
initialize();
}
return width;
}
Accessor for the width of this drawing |
public double getX() {
if (!initialized)
{
initialize();
}
return column;
}
Accessor for the column of this drawing |
public double getY() {
if (!initialized)
{
initialize();
}
return row;
}
Accessor for the row of this drawing |
public int hashCode() {
return getClass().getName().hashCode();
}
|
public boolean isFirst() {
return msoDrawingRecord.isFirst();
}
Accessor for the first drawing on the sheet. This is used when
copying unmodified sheets to indicate that this drawing contains
the first time Escher gubbins |
public boolean isFormObject() {
return false;
}
Queries whether this object is a form object. Form objects have their
drawings records spread over TXO and CONTINUE records and
require special handling |
public void setDrawingGroup(DrawingGroup dg) {
drawingGroup = dg;
}
Sets the drawing group for this drawing. Called by the drawing group
when this drawing is added to it |
public void setHeight(double h) {
if (origin == Origin.READ)
{
if (!initialized)
{
initialize();
}
origin = Origin.READ_WRITE;
}
height = h;
}
Accessor for the height of this drawing |
public final void setObjectId(int objid,
int bip,
int sid) {
objectId = objid;
blipId = bip;
shapeId = sid;
if (origin == Origin.READ)
{
origin = Origin.READ_WRITE;
}
}
Sets the object id. Invoked by the drawing group when the object is
added to id |
public void setReferenceCount(int r) {
referenceCount = r;
}
Sets the new reference count on the drawing |
public void setWidth(double w) {
if (origin == Origin.READ)
{
if (!initialized)
{
initialize();
}
origin = Origin.READ_WRITE;
}
width = w;
}
|
public void setX(double x) {
if (origin == Origin.READ)
{
if (!initialized)
{
initialize();
}
origin = Origin.READ_WRITE;
}
column = (int) x;
}
Sets the column position of this drawing. Used when inserting/removing
columns from the spreadsheet |
public void setY(double y) {
if (origin == Origin.READ)
{
if (!initialized)
{
initialize();
}
origin = Origin.READ_WRITE;
}
row = (int) y;
}
Accessor for the row of the drawing |
public void writeAdditionalRecords(File outputFile) throws IOException {
if (origin == Origin.READ)
{
outputFile.write(objRecord);
return;
}
// Create the obj record
ObjRecord objrec = new ObjRecord(objectId,
ObjRecord.COMBOBOX);
outputFile.write(objrec);
}
Writes out the additional records for a combo box |
public void writeTailRecords(File outputFile) {
}
Writes any records that need to be written after all the drawing group
objects have been written
Writes out all the note records |