addNode("VertLineFlag", crecord.getVertLineFlag());
addNode("DeltaX", crecord.getDeltaX());
addNode("DeltaY", crecord.getDeltaY());
}
else if (shapeRecord instanceof StyleChangeRecord4) {
final StyleChangeRecord4 crecord = (StyleChangeRecord4) shapeRecord;
addNode("TypeFlag", crecord.getTypeFlag());
addNode("StateNewStyles", crecord.getStateNewStyles());
addNode("StateLineStyle", crecord.getStateLineStyle());
addNode("FillStyle1", crecord.getFillStyle1());
addNode("FillStyle0", crecord.getFillStyle0());
addNode("StateMoveTo", crecord.getStateMoveTo());
addNode("MoveBits", crecord.getMoveBits());
addNode("MoveDeltaX", crecord.getMoveDeltaX());
addNode("MoveDeltaY", crecord.getMoveDeltaY());
addNode("FillStyle0", crecord.getFillStyle0());
addNode("FillStyle1", crecord.getFillStyle1());
addNode("LineStyle", crecord.getLineStyle());
addNode("FillStyles", crecord.getFillStyles());
addNode("LineStyles", crecord.getLineStyles());
addNode("TypeFlag", crecord.getNumFillBits());
addNode("TypeFlag", crecord.getNumLineBits());
}
else if (shapeRecord instanceof EndShapeRecord) {
final EndShapeRecord crecord = (EndShapeRecord) shapeRecord;
addNode("TypeFlag", crecord.getTypeFlag());
addNode("EndOfShape", crecord.getEndOfShape());
}
else {
throw new IllegalStateException("Unknown shape record");
}
}