www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtools/@cgbrowser/print.m

    function print(h)
%PRINT Print current node
%
%  PRINT(CGB) prints the current node by calling its print method if it
%  supports printing.

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


if h.GUIExists
    p = h.SelNode;
    if ~isnull(p)
        % Check p supports printing
        if h.getBrowserOptions('print')
            p.print(h);
        end
    end
end