public override Object Clone() { CatSerRangeRecord rec = new CatSerRangeRecord(); rec.field_1_catCross = field_1_catCross; rec.field_2_catLabel = field_2_catLabel; rec.field_3_catMark = field_3_catMark; rec.field_4_options = field_4_options; return(rec); }
public void TestLoad() { CatSerRangeRecord record = new CatSerRangeRecord(TestcaseRecordInputStream.Create((short)0x1020, data)); Assert.AreEqual(1, record.CrossPoint); Assert.AreEqual(1, record.LabelInterval); Assert.AreEqual(1, record.MarkInterval); Assert.AreEqual(1, record.Options); Assert.AreEqual(true, record.IsBetween); Assert.AreEqual(false, record.IsMaxCross); Assert.AreEqual(false, record.IsReverse); Assert.AreEqual(4 + 8, record.RecordSize); }
public SeriesAxisAggregate(RecordStream rs, ChartRecordAggregate container) : base("SERIESAXIS", container) { axis = (AxisRecord)rs.GetNext(); rs.GetNext(); if (rs.PeekNextChartSid() == CatSerRangeRecord.sid) catSerRange = (CatSerRangeRecord)rs.GetNext(); axs = new AXSAggregate(rs, this); if (rs.PeekNextChartSid() == CrtMlFrtRecord.sid) crtmlfrt = new CrtMlFrtAggregate(rs, this); Record r = rs.GetNext();//EndRecord Debug.Assert(r.GetType() == typeof(EndRecord)); }
public void TestStore() { CatSerRangeRecord record = new CatSerRangeRecord(); record.CrossPoint = ((short)1); record.LabelInterval = ((short)1); record.MarkInterval = ((short)1); record.IsBetween = (true); record.IsMaxCross = (false); record.IsReverse = (false); 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 IVAxisAggregate(RecordStream rs, ChartRecordAggregate container, AxisRecord axis) : base(RuleName_IVAXIS, container) { this.axis = axis; if (rs.PeekNextChartSid() == CatSerRangeRecord.sid) catSerRange = (CatSerRangeRecord)rs.GetNext(); Debug.Assert(rs.PeekNextChartSid() == AxcExtRecord.sid); axcExt = (AxcExtRecord)rs.GetNext(); if (rs.PeekNextChartSid() == CatLabRecord.sid) catLab = (CatLabRecord)rs.GetNext(); axs = new AXSAggregate(rs, this); while (rs.PeekNextChartSid() == CrtMlFrtRecord.sid) crtmlfrtList.Add(new CrtMlFrtAggregate(rs, this)); Record r = rs.GetNext();//EndRecord Debug.Assert(r.GetType() == typeof(EndRecord)); }
private CatSerRangeRecord CreateCategorySeriesAxisRecord() { CatSerRangeRecord r = new CatSerRangeRecord(); r.CrossPoint = ((short)1); r.LabelInterval = ((short)1); r.MarkInterval = ((short)1); r.IsBetween = (true); r.IsMaxCross = (false); r.IsReverse = (false); return r; }
public override Object Clone() { CatSerRangeRecord rec = new CatSerRangeRecord(); rec.field_1_catCross = field_1_catCross; rec.field_2_catLabel = field_2_catLabel; rec.field_3_catMark = field_3_catMark; rec.field_4_options = field_4_options; return rec; }