www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@MultiViewPanel/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.
%  MultiViewPanel prints the selected view when it is printed.

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


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