www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/+xregdesgui/DesignView2d.m
classdef DesignView2d < xregdesgui.DesignProjView %xregdesgui.DesignView2d class % xregdesgui.DesignView2d extends xregdesgui.designprojview. % % xregdesgui.DesignView2d properties: % Parent - Property is of type 'MATLAB array' % Position - Property is of type 'rect' % Enable - Property is of type 'on/off' % Visible - Property is of type 'on/off' % UserData - Property is of type 'MATLAB array' % Tag - Property is of type 'string' % Display - Property is of type 'MATLAB array' (read only) % MessageService - Property is of type 'handle' % Options - Property is of type 'handle vector' % Actions - Property is of type 'handle vector' % UIContextMenu - Property is of type 'MATLAB array' % % xregdesgui.DesignView2d methods: % createDisplay - Create the graph object for the view % gettitle - Return a suitable title for a window % Copyright 2015 The MathWorks, Inc. and Ford Global Technologies, Inc. methods % constructor block function obj = DesignView2d(varargin) %DESIGNVIEW2D Constructor for DesignView2d % % OBJ = DESIGNVIEW2D(PROP, VALUE, ...) obj@xregdesgui.DesignProjView(varargin{ : }); % converted super class constructor call end % designview2d end % constructor block methods % public methods %---------------------------------------- function G = createDisplay(obj) %CREATEDISPLAY Create the graph object for the view % G = CREATEDISPLAY(OBJ) creates the nD graph object that is used for the % display. G = mvgraph2d(obj.Parent, ... 'visible', obj.Visible, ... 'position', obj.Position, ... 'frame','off', ... 'grid','on',... 'factorselection','exclusive', ... 'hittest','off'); end % createDisplay %---------------------------------------- function s = gettitle(obj) %#ok<MANU> %GETTITLE Return a suitable title for a window % GETTITLE(OBJ) returns a string that can be used as a title for the view. s = '2D Design Projection'; end % gettitle end % public methods end % classdef