www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@factorselector2d/factorselector2d.m
function obj = factorselector2d(varargin) %FACTORSELECTOR2D constructor for the abstractDataView object % % OBJ = FACTORSELECTOR2D % OBJ = FACTORSELECTOR2D(OBJ) % OBJ = FACTORSELECTOR2D('Property', Value) % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. % Is the first input argument a udd object derived from me? If it is then % we are being called as a super class constructor and don't have to % construct an object if nargin && isa(varargin{1}, 'mbcwidgets.factorselector2d') obj = varargin{1}; varargin(1) = []; else obj = mbcwidgets.factorselector2d; end % Call the inherited constructor factorselector(obj, varargin{:}); % Create the display obj.pCreateDisplay; % Set up property listeners obj.addPropertyListeners( ... { ... 'Factors', ... 'SelectionType', ... 'UIContextMenu' ... 'BackgroundColor', ... }, ... { ... @pPostSetFactors, ... @pPostSetSelectionType, ... @pPostSetUIContextMenu, ... @pPostSetBackgroundColor, ... } ... ); % Assume that we might have had some factors in the constructor obj.pPostSetFactors;