示例#1
0
        private AnnAutomationObject CreateNorberg()
        {
            AnnAutomationObject automationObj = new AnnAutomationObject();

            AnnNorbergObject annCobbAngleObject = new AnnNorbergObject();

            automationObj.Id               = annCobbAngleObject.Id;
            automationObj.Name             = "Norberg";
            automationObj.DrawDesignerType = typeof(AnnNorbergDrawer);
            automationObj.EditDesignerType = typeof(AnnPolylineEditDesigner);
            automationObj.RunDesignerType  = typeof(AnnRunDesigner);
            automationObj.ObjectTemplate   = annCobbAngleObject;

            IAnnObjectRenderer renderer = new AnnNorbergObjectRenderer();

            renderer.LocationsThumbStyle     = CreateLocationThumbStyle();
            renderer.RotateCenterThumbStyle  = CreateRotateCenterThumbStyle();
            renderer.RotateGripperThumbStyle = CreateRotateGripperThumbStyle();

            automationObj.Renderer = renderer;

            CreateToolBarItem(automationObj, "Norberg");

            return(automationObj);
        }
示例#2
0
 public AnnNorbergDrawer(IAnnAutomationControl automationControl, AnnContainer container, AnnNorbergObject annNorbergObject)
     : base(automationControl, container, _objectTemplate)
 {
     _annNorbergObject = annNorbergObject;
 }