示例#1
0
        private void InternalInitialize()
        {
            _context = _doc.GetPropertyContext();

            AxisStyleController = new AxisStyleController()
            {
                UseDocumentCopy = UseDocument.Directly
            };
            AxisStyleController.MadeDirty += EhAxisStyleControllerDirty;

            MajorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMajorLabel, RemoveMajorLabel)
            {
                UseDocumentCopy = UseDocument.Directly
            };
            MinorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMinorLabel, RemoveMinorLabel)
            {
                UseDocumentCopy = UseDocument.Directly
            };

            AxisStyleController.InitializeDocument(_doc);
            if (_doc.AreMajorLabelsEnabled)
            {
                MajorLabelCondController.InitializeDocument(_doc.MajorLabelStyle);
            }
            if (_doc.AreMinorLabelsEnabled)
            {
                MinorLabelCondController.InitializeDocument(_doc.MinorLabelStyle);
            }
        }
示例#2
0
 private void RemoveMinorLabel()
 {
     _doc.HideMinorLabels();
     AxisStyleController.AnnounceExternalChangeOfMajorOrMinorLabelState();
 }
示例#3
0
 private AxisLabelStyle CreateMinorLabel()
 {
     _doc.ShowMinorLabels(_context);
     AxisStyleController.AnnounceExternalChangeOfMajorOrMinorLabelState();
     return(_doc.MinorLabelStyle);
 }