www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@ViewContainer/printcopy.m

    function newobj = printcopy(obj, fig)
%PRINTCOPY Create a new component for printing the component display 
%
%  NEWOBJ = PRINTCOPY(OBJ, FIG) creates and returns a handle to a new
%  component, NEWOBJ, parented by the specified figure, FIG.  The new
%  object will be used for printing a copy of the component OBJ.

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


if ~isempty(obj.View)
    newobj = obj.View.printcopy(fig);
else
    newobj = obj.super('printcopy', fig);
end