A record which merely holds the OBJ data. Used when copying files which
contain images
Field Summary |
---|
public static final ObjType | GROUP | |
public static final ObjType | LINE | |
public static final ObjType | RECTANGLE | |
public static final ObjType | OVAL | |
public static final ObjType | ARC | |
public static final ObjType | CHART | |
public static final ObjType | TEXT | |
public static final ObjType | BUTTON | |
public static final ObjType | PICTURE | |
public static final ObjType | POLYGON | |
public static final ObjType | CHECKBOX | |
public static final ObjType | OPTION | |
public static final ObjType | EDITBOX | |
public static final ObjType | LABEL | |
public static final ObjType | DIALOGUEBOX | |
public static final ObjType | SPINBOX | |
public static final ObjType | SCROLLBAR | |
public static final ObjType | LISTBOX | |
public static final ObjType | GROUPBOX | |
public static final ObjType | COMBOBOX | |
public static final ObjType | MSOFFICEDRAWING | |
public static final ObjType | FORMCONTROL | |
public static final ObjType | EXCELNOTE | |
public static final ObjType | UNKNOWN | |
Constructor: |
public ObjRecord(Record t) {
super(t);
byte[] data = t.getData();
int objtype = IntegerHelper.getInt(data[4], data[5]);
read = true;
type = ObjType.getType(objtype);
if (type == UNKNOWN)
{
logger.warn("unknown object type code " + objtype);
}
objectId = IntegerHelper.getInt(data[6], data[7]);
}
Constructs this object from the raw data Parameters:
t - the raw data
|
ObjRecord(int objId,
ObjType t) {
super(Type.OBJ);
objectId = objId;
type = t;
}
Parameters:
objId - the object id
t - the object type
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from jxl.biff.drawing.ObjRecord Detail: |
public byte[] getData() {
if (read)
{
return getRecord().getData();
}
if (type == PICTURE || type == CHART)
{
return getPictureData();
}
else if (type == EXCELNOTE)
{
return getNoteData();
}
else if (type == COMBOBOX)
{
return getComboBoxData();
}
else
{
Assert.verify(false);
}
return null;
}
Expose the protected function to the SheetImpl in this package |
public int getObjectId() {
return objectId;
}
Accessor for the object id |
public Record getRecord() {
return super.getRecord();
}
Expose the protected function to the SheetImpl in this package |
public ObjType getType() {
return type;
}
Accessor for the object type |