www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@table2plot/table2plot.m

    function obj = table2plot(varargin)
%TABLE2PLOT Constructor for table2 plot component
%
% obj = cgsurfview.table2plot('Parent',parent);

%  Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


if nargin && isa(varargin{1}, 'cgsurfview.table2plot')
   obj = varargin{1};
   varargin(1) = [];
else
   obj = cgsurfview.table2plot;
end

% Call parent class constructor
if length(varargin)
    obj.abstractlayoutcomponent(varargin{:});
else
    obj.abstractlayoutcomponent;
end

modelView = com.mathworks.toolbox.mbc.gui.peer.ConstrainedNumericTablePeer;
obj.Table = mbcwidgets.Table2D(modelView,...
    'parent', obj.Parent,...
    'visible',obj.Visible);
obj.Table.Peer.setBorder([]);
obj.Display = xregborderlayout(obj.Parent,...
    'center',obj.Table,...
    'visible',obj.Visible);