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

    function obj = table1plot(varargin)
%TABLE1PLOT Constructor for table1 plot component
%
% obj = cgsurfview.table1plot('Parent',parent);

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


if nargin && isa(varargin{1}, 'cgsurfview.table1plot')
   obj = varargin{1};
   varargin(1) = [];
else
   obj = cgsurfview.table1plot;
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);