public static void setStyles(List<ShapeRecord> shapeRecords,
int lineStyleIndex, int fillStyle0Index, int fillStyle1Index)
{
if (shapeRecords != null && shapeRecords.size() > 0)
{
ShapeRecord firstRecord = shapeRecords.get(0);
if (firstRecord instanceof StyleChangeRecord)
{
StyleChangeRecord scr = (StyleChangeRecord)firstRecord;
if (fillStyle0Index > 0)