stringBuilder.append( " isContainer: " );
stringBuilder.append( isContainerRecord() );
stringBuilder.append( nl );
- stringBuilder.append( " options: 0x" );
- stringBuilder.append( HexDump.toHex( getOptions() ) );
+ stringBuilder.append( " version: 0x" );
+ stringBuilder.append( HexDump.toHex( getVersion() ) );
+ stringBuilder.append( nl );
+ stringBuilder.append( " instance: 0x" );
+ stringBuilder.append( HexDump.toHex( getInstance() ) );
stringBuilder.append( nl );
stringBuilder.append( " recordId: 0x" );
stringBuilder.append( HexDump.toHex( getRecordId() ) );
String extraData = _remainingData == null ? null : HexDump.toHex(_remainingData, 32);
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex( RECORD_ID ) + '\n' +
- " Options: 0x" + HexDump.toHex( getOptions() ) + '\n' +
+ " Version: 0x" + HexDump.toHex( getVersion() ) + '\n' +
+ " Instance: 0x" + HexDump.toHex( getInstance() ) + '\n' +
" BlipTypeWin32: " + field_1_blipTypeWin32 + '\n' +
" BlipTypeMacOS: " + field_2_blipTypeMacOS + '\n' +
" SUID: " + (field_3_uid == null ? "" : HexDump.toHex(field_3_uid)) + '\n' +
}
return getClass().getName() + ":" + nl +
" RecordId: 0x" + HexDump.toHex( getRecordId() ) + nl +
- " Options: 0x" + HexDump.toHex( getOptions() ) + nl +
+ " Version: 0x" + HexDump.toHex( getVersion() ) + nl +
+ " Instance: 0x" + HexDump.toHex( getInstance() ) + nl +
" UID: 0x" + HexDump.toHex( field_1_UID ) + nl +
" Marker: 0x" + HexDump.toHex( field_2_marker ) + nl +
" Extra Data:" + nl + extraData;
String extraData = HexDump.toHex(field_pictureData, 32);
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex( getRecordId() ) + '\n' +
- " Options: 0x" + HexDump.toHex( getOptions() ) + '\n' +
+ " Version: 0x" + HexDump.toHex( getVersion() ) + '\n' +
+ " Instance: 0x" + HexDump.toHex( getInstance() ) + '\n' +
" Extra Data:" + '\n' + extraData;
}
}
}
return getClass().getName() + ":" + nl +
" RecordId: 0x" + HexDump.toHex( getRecordId() ) + nl +
- " Options: 0x" + HexDump.toHex( getOptions() ) + nl +
+ " Version: 0x" + HexDump.toHex( getVersion() ) + nl +
+ " Instance: 0x" + HexDump.toHex( getInstance() ) + nl +
" Secondary UID: " + HexDump.toHex( field_1_secondaryUID ) + nl +
" CacheOfSize: " + field_2_cacheOfSize + nl +
" BoundaryTop: " + field_3_boundaryTop + nl +
return getClass().getName() + ":" + nl +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + nl +
- " Options: 0x" + HexDump.toHex(getOptions()) + nl +
+ " Version: 0x" + HexDump.toHex(getVersion()) + nl +
+ " Instance: 0x" + HexDump.toHex(getInstance()) + nl +
" X1: " + field_1_dx1 + nl +
" Y1: " + field_2_dy1 + nl +
" X2: " + field_3_dx2 + nl +
}
return getClass().getName() + ":" + nl +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + nl +
- " Options: 0x" + HexDump.toHex(getOptions()) + nl +
+ " Version: 0x" + HexDump.toHex(getVersion()) + nl +
+ " Instance: 0x" + HexDump.toHex(getInstance()) + nl +
" Flag: " + field_1_flag + nl +
" Col1: " + field_2_col1 + nl +
" DX1: " + field_3_dx1 + nl +
}
return getClass().getName() + ":" + nl +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + nl +
- " Options: 0x" + HexDump.toHex(getOptions()) + nl +
+ " Version: 0x" + HexDump.toHex(getVersion()) + nl +
+ " Instance: 0x" + HexDump.toHex(getInstance()) + nl +
" Extra Data:" + nl +
extraData;
return getClass().getName() + " (" + getRecordName() + "):" + nl
+ " isContainer: " + isContainerRecord() + nl
- + " options: 0x" + HexDump.toHex( getOptions() ) + nl
+ + " version: 0x" + HexDump.toHex( getVersion() ) + nl
+ + " instance: 0x" + HexDump.toHex( getInstance() ) + nl
+ " recordId: 0x" + HexDump.toHex( getRecordId() ) + nl
+ " numchildren: " + _childRecords.size() + nl
+ children.toString();
public String toString() {
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + '\n' +
- " Options: 0x" + HexDump.toHex(getOptions()) + '\n' +
+ " Version: 0x" + HexDump.toHex(getVersion()) + '\n' +
+ " Instance: 0x" + HexDump.toHex(getInstance()) + '\n' +
" NumShapes: " + field_1_numShapes + '\n' +
" LastMSOSPID: " + field_2_lastMSOSPID + '\n';
}
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + '\n' +
- " Options: 0x" + HexDump.toHex(getOptions()) + '\n' +
+ " Version: 0x" + HexDump.toHex(getVersion()) + '\n' +
+ " Instance: 0x" + HexDump.toHex(getInstance()) + '\n' +
" ShapeIdMax: " + field_1_shapeIdMax + '\n' +
" NumIdClusters: " + getNumIdClusters() + '\n' +
" NumShapesSaved: " + field_3_numShapesSaved + '\n' +
String extraData = "";//HexDump.toHex(field_pictureData, 32);
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex( getRecordId() ) + '\n' +
- " Options: 0x" + HexDump.toHex( getOptions() ) + '\n' +
+ " Version: 0x" + HexDump.toHex( getVersion() ) + '\n' +
+ " Instance: 0x" + HexDump.toHex( getInstance() ) + '\n' +
" UID: 0x" + HexDump.toHex( field_1_UID ) + '\n' +
(field_2_UID == null ? "" : (" UID2: 0x" + HexDump.toHex( field_2_UID ) + '\n')) +
" Uncompressed Size: " + HexDump.toHex( field_2_cb ) + '\n' +
String extraData = HexDump.toHex(field_pictureData, 32);
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex( getRecordId() ) + '\n' +
- " Options: 0x" + HexDump.toHex( getOptions() ) + '\n' +
+ " Version: 0x" + HexDump.toHex( getVersion() ) + '\n' +
+ " Instance: 0x" + HexDump.toHex( getInstance() ) + '\n' +
" UID: 0x" + HexDump.toHex( field_1_UID ) + '\n' +
" Uncompressed Size: " + HexDump.toHex( field_2_cb ) + '\n' +
" Bounds: " + getBounds() + '\n' +
return getClass().getName() + ":" + nl +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + nl +
- " Options: 0x" + HexDump.toHex(getOptions()) + nl +
+ " Version: 0x" + HexDump.toHex(getVersion()) + nl +
+ " ShapeType: 0x" + HexDump.toHex(getShapeType()) + nl +
" ShapeId: " + field_1_shapeId + nl +
" Flags: " + decodeFlags(field_2_flags) + " (0x" + HexDump.toHex(field_2_flags) + ")" + nl;
{
this.field_2_flags = field_2_flags;
}
+
+ /**
+ * Returns shape type. Must be one of MSOSPT values (see [MS-ODRAW] for
+ * details).
+ *
+ * @return shape type
+ */
+ public short getShapeType()
+ {
+ return getInstance();
+ }
+
+ /**
+ * Sets shape type. Must be one of MSOSPT values (see [MS-ODRAW] for
+ * details).
+ *
+ * @param value
+ * new shape type
+ */
+ public void setShapeType( short value )
+ {
+ setInstance( value );
+ }
}
public String toString() {
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + '\n' +
- " Options: 0x" + HexDump.toHex(getOptions()) + '\n' +
+ " Version: 0x" + HexDump.toHex(getVersion()) + '\n' +
+ " Instance: 0x" + HexDump.toHex(getInstance()) + '\n' +
" RectX: " + field_1_rectX1 + '\n' +
" RectY: " + field_2_rectY1 + '\n' +
" RectWidth: " + field_3_rectX2 + '\n' +
public String toString() {
return getClass().getName() + ":" + '\n' +
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + '\n' +
- " Options: 0x" + HexDump.toHex(getOptions()) + '\n' +
+ " Version: 0x" + HexDump.toHex(getVersion()) + '\n' +
+ " Instance: 0x" + HexDump.toHex(getInstance()) + '\n' +
" Color1: 0x" + HexDump.toHex(field_1_color1) + '\n' +
" Color2: 0x" + HexDump.toHex(field_2_color2) + '\n' +
" Color3: 0x" + HexDump.toHex(field_3_color3) + '\n' +
return getClass().getName() + ":" + nl +
" isContainer: " + isContainerRecord() + nl +
- " options: 0x" + HexDump.toHex( getOptions() ) + nl +
+ " version: 0x" + HexDump.toHex( getVersion() ) + nl +
+ " instance: 0x" + HexDump.toHex( getInstance() ) + nl +
" recordId: 0x" + HexDump.toHex( getRecordId() ) + nl +
" numchildren: " + getChildRecords().size() + nl +
theDumpHex;
return getClass().getName() + ":" + '\n' +
" isContainer: " + isContainerRecord() + '\n' +
- " options: 0x" + HexDump.toHex( getOptions() ) + '\n' +
+ " version: 0x" + HexDump.toHex( getVersion() ) + '\n' +
+ " instance: 0x" + HexDump.toHex( getInstance() ) + '\n' +
" recordId: 0x" + HexDump.toHex( getRecordId() ) + '\n' +
" numchildren: " + getChildRecords().size() + '\n' +
theDumpHex +
{
EscherSpRecord spRecord = shapeContainer
.getChildById( EscherSpRecord.RECORD_ID );
- int type = spRecord.getOptions() >> 4;
+ int type = spRecord.getShapeType();
switch (type)
{
*/
public int getShapeType(){
EscherSpRecord spRecord = _escherContainer.getChildById(EscherSpRecord.RECORD_ID);
- return spRecord.getOptions() >> 4;
+ return spRecord.getShapeType();
}
/**
*/
public void setShapeType(int type){
EscherSpRecord spRecord = _escherContainer.getChildById(EscherSpRecord.RECORD_ID);
- spRecord.setOptions((short)(type << 4 | 0x2));
+ spRecord.setShapeType( (short) type );
+ spRecord.setVersion( (short) 0x2 );
}
/**
Shape shape = null;
EscherSpRecord spRecord = spContainer.getChildById(EscherSpRecord.RECORD_ID);
- int type = spRecord.getOptions() >> 4;
+ int type = spRecord.getShapeType();
switch (type){
case ShapeTypes.TextBox:
shape = new TextBox(spContainer, parent);