public override Object Clone() { LineFormatRecord rec = new LineFormatRecord(); rec.field_1_lineColor = field_1_lineColor; rec.field_2_linePattern = field_2_linePattern; rec.field_3_weight = field_3_weight; rec.field_4_format = field_4_format; rec.field_5_colourPaletteIndex = field_5_colourPaletteIndex; return(rec); }
public FrameAggregate(RecordStream rs, ChartRecordAggregate container) : base(RuleName_FRAME, container) { frame = (FrameRecord)rs.GetNext(); rs.GetNext();//BeginRecord lineFormat = (LineFormatRecord)rs.GetNext(); areaFormat = (AreaFormatRecord)rs.GetNext(); if (rs.PeekNextChartSid() == GelFrameRecord.sid) { gelFrame = new GelFrameAggregate(rs, this); } if (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid) { shapeProps = new ShapePropsAggregate(rs, this); } Record r = rs.GetNext();//EndRecord Debug.Assert(r.GetType() == typeof(EndRecord)); }
public SSAggregate(RecordStream rs, ChartRecordAggregate container) : base(RuleName_SS, container) { dataFormat = (DataFormatRecord)rs.GetNext(); rs.GetNext(); if (rs.PeekNextChartSid() == Chart3DBarShapeRecord.sid) chart3DBarShape = (Chart3DBarShapeRecord)rs.GetNext(); if (rs.PeekNextChartSid() == LineFormatRecord.sid) { lineFormat = (LineFormatRecord)rs.GetNext(); areaFormat = (AreaFormatRecord)rs.GetNext(); pieFormat = (PieFormatRecord)rs.GetNext(); } if(rs.PeekNextChartSid()==SerFmtRecord.sid) serFmt = (SerFmtRecord)rs.GetNext(); if (rs.PeekNextChartSid() == GelFrameRecord.sid) gelFrame = new GelFrameAggregate(rs, this); if (rs.PeekNextChartSid() == MarkerFormatRecord.sid) markerFormat = (MarkerFormatRecord)rs.GetNext(); if (rs.PeekNextChartSid() == AttachedLabelRecord.sid) attachedLabel = (AttachedLabelRecord)rs.GetNext(); if (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid) shapeProps1 = new ShapePropsAggregate(rs, this); if (rs.PeekNextChartSid() == ShapePropsStreamRecord.sid) shapeProps2 = new ShapePropsAggregate(rs, this); if (rs.PeekNextChartSid() == CrtMlFrtRecord.sid) crtMlFrt = new CrtMlFrtAggregate(rs, this); Record r = rs.GetNext();//EndRecord Debug.Assert(r.GetType() == typeof(EndRecord)); }
public override Object Clone() { LineFormatRecord rec = new LineFormatRecord(); rec.field_1_lineColor = field_1_lineColor; rec.field_2_linePattern = field_2_linePattern; rec.field_3_weight = field_3_weight; rec.field_4_format = field_4_format; rec.field_5_colourPaletteIndex = field_5_colourPaletteIndex; return rec; }