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)); }
private static LineFormatRecord CreateLineFormatRecord(bool drawTicks) { LineFormatRecord r = new LineFormatRecord(); r.LineColor = (0); r.LinePattern = (LineFormatRecord.LINE_PATTERN_SOLID); r.Weight = ((short)-1); r.IsAuto = (true); r.IsDrawTicks = (drawTicks); r.ColourPaletteIndex = ((short)77); // what colour is this? return(r); }
private static LineFormatRecord CreateLineFormatRecord2() { LineFormatRecord r = new LineFormatRecord(); r.LineColor = (0x00808080); r.LinePattern = LineFormatRecord.LINE_PATTERN_SOLID; r.Weight = ((short)0); r.IsAuto = (false); r.IsDrawTicks = (false); r.IsUnknown = (false); r.ColourPaletteIndex = ((short)23); return(r); }
public void TestLoad() { LineFormatRecord record = new LineFormatRecord(TestcaseRecordInputStream.Create((short)0x1007, data)); Assert.AreEqual(0, record.LineColor); Assert.AreEqual(0, record.LinePattern); Assert.AreEqual(0, record.Weight); Assert.AreEqual(1, record.Format); Assert.AreEqual(true, record.IsAuto); Assert.AreEqual(false, record.IsDrawTicks); Assert.AreEqual(0x4d, record.ColourPaletteIndex); Assert.AreEqual(16, record.RecordSize); }
public void TestStore() { LineFormatRecord record = new LineFormatRecord(); record.LineColor=(0); record.LinePattern=((short)0); record.Weight=((short)0); record.IsAuto=(true); record.IsDrawTicks=(false); record.ColourPaletteIndex=((short)0x4d); byte[] recordBytes = record.Serialize(); Assert.AreEqual(recordBytes.Length - 4, data.Length); for (int i = 0; i < data.Length; i++) Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i); }
public void TestStore() { LineFormatRecord record = new LineFormatRecord(); record.LineColor = (0); record.LinePattern = ((short)0); record.Weight = ((short)0); record.IsAuto = (true); record.IsDrawTicks = (false); record.ColourPaletteIndex = ((short)0x4d); byte[] recordBytes = record.Serialize(); Assert.AreEqual(recordBytes.Length - 4, data.Length); for (int i = 0; i < data.Length; i++) { Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i); } }
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)); }
private LineFormatRecord CreateLineFormatRecord2() { LineFormatRecord r = new LineFormatRecord(); r.LineColor = (0x00808080); r.LinePattern = ((short)0); r.Weight = ((short)0); r.IsAuto = (false); r.IsDrawTicks = (false); r.IsUnknown = (false); r.ColourPaletteIndex = ((short)23); return r; }
private LineFormatRecord CreateLineFormatRecord(bool drawTicks) { LineFormatRecord r = new LineFormatRecord(); r.LineColor = (0); r.LinePattern = (LineFormatRecord.LINE_PATTERN_SOLID); r.Weight = ((short)-1); r.IsAuto = (true); r.IsDrawTicks = (drawTicks); r.ColourPaletteIndex = ((short)77); // what colour is this? return r; }
private LineFormatRecord CreateLineFormatRecord2() { LineFormatRecord r = new LineFormatRecord(); r.SetLineColor( 0x00808080 ); r.SetLinePattern( (short) 0 ); r.SetWeight( (short) 0 ); r.SetAuto( false ); r.SetDrawTicks( false ); r.SetUnknown( false ); r.SetColourPaletteIndex( (short) 23 ); return r; }
private LineFormatRecord CreateLineFormatRecord( bool drawTicks ) { LineFormatRecord r = new LineFormatRecord(); r.SetLineColor( 0 ); r.SetLinePattern( LineFormatRecord.LINE_PATTERN_SOLID ); r.SetWeight( (short) -1 ); r.SetAuto( true ); r.SetDrawTicks( drawTicks ); r.SetColourPaletteIndex( (short) 77 ); // what colour is this? return r; }