Пример #1
0
        public void TestLoad()
        {
            SeriesTextRecord record = new SeriesTextRecord(TestcaseRecordInputStream.Create(0x100d, SIMPLE_DATA));

            Assert.AreEqual((short)0, record.Id);
            Assert.AreEqual((byte)0x0C, record.Text.Length);

            Assert.AreEqual("Value Number", record.Text);


            Assert.AreEqual(SIMPLE_DATA.Length + 4, record.RecordSize);
        }
Пример #2
0
        public void TestLoad()
        {
            SeriesTextRecord record = new SeriesTextRecord(TestcaseRecordInputStream.Create(0x100d, SIMPLE_DATA));

            Assert.AreEqual((short)0, record.Id);
            Assert.AreEqual((byte)0x0C, record.Text.Length);

            Assert.AreEqual("Value Number", record.Text);


            Assert.AreEqual(SIMPLE_DATA.Length+4, record.RecordSize);
        }
Пример #3
0
        public void TestStore()
        {
            SeriesTextRecord record = new SeriesTextRecord();



            record.Id   = 0;
            record.Text = ("Value Number");


            byte[] recordBytes = record.Serialize();
            TestcaseRecordInputStream.ConfirmRecordEncoding(SeriesTextRecord.sid, SIMPLE_DATA, recordBytes);
        }
Пример #4
0
        public void TestStore()
        {
            SeriesTextRecord record = new SeriesTextRecord();



            record.Id = 0;
            record.Text = ("Value Number");


            byte[] recordBytes = record.Serialize();
            TestcaseRecordInputStream.ConfirmRecordEncoding(SeriesTextRecord.sid, SIMPLE_DATA,recordBytes);
        }
Пример #5
0
        public AttachedLabelAggregate(RecordStream rs, ChartRecordAggregate container)
            : base(RuleName_ATTACHEDLABEL, container)
        {
            ChartSheetAggregate cs = GetContainer <ChartSheetAggregate>(ChartRecordAggregate.RuleName_CHARTSHEET);

            _isFirst = cs.AttachLabelCount == 0;
            cs.AttachLabelCount++;
            text = (TextRecord)rs.GetNext();
            rs.GetNext();//BeginRecord
            pos = (PosRecord)rs.GetNext();
            if (rs.PeekNextChartSid() == FontXRecord.sid)
            {
                fontX = (FontXRecord)rs.GetNext();
            }
            if (rs.PeekNextChartSid() == AlRunsRecord.sid)
            {
                alRuns = (AlRunsRecord)rs.GetNext();
            }
            brai = (BRAIRecord)rs.GetNext();
            if (rs.PeekNextChartSid() == SeriesTextRecord.sid)
            {
                seriesText = (SeriesTextRecord)rs.GetNext();
            }
            if (rs.PeekNextChartSid() == FrameRecord.sid)
            {
                frame = new FrameAggregate(rs, this);
            }
            if (rs.PeekNextChartSid() == ObjectLinkRecord.sid)
            {
                objectLink = (ObjectLinkRecord)rs.GetNext();
            }
            if (rs.PeekNextChartSid() == DataLabExtContentsRecord.sid)
            {
                dataLab = (DataLabExtContentsRecord)rs.GetNext();
            }
            if (rs.PeekNextChartSid() == CrtLayout12Record.sid)
            {
                crtLayout = (CrtLayout12Record)rs.GetNext();
            }
            if (rs.PeekNextChartSid() == TextPropsStreamRecord.sid)
            {
                textProps = new TextPropsAggregate(rs, this);
            }
            if (rs.PeekNextChartSid() == CrtMlFrtRecord.sid)
            {
                crtMlFrt = new CrtMlFrtAggregate(rs, this);
            }
            Record r = rs.GetNext();//EndRecord

            Debug.Assert(r.GetType() == typeof(EndRecord));
        }
Пример #6
0
 internal void SetSeriesTitleText(SeriesTextRecord seriesTitleText)
 {
     this.seriesTitleText = seriesTitleText;
 }
Пример #7
0
		/* package */ void SetSeriesTitleText(SeriesTextRecord seriesTitleText)
		{
			this.seriesTitleText = seriesTitleText;
		}