time | Calls | line |
---|
| | 1 | function useOrig = useOriginalHGPrinting( varargin )
|
| | 2 | % This undocumented helper function is for internal use.
|
| | 3 |
|
| | 4 | %USEORIGINALHGPRINTING checks for HG objects and isSLorSF to see whether to
|
| | 5 | % use "Original" or "Latest" printing
|
| | 6 | %
|
| | 7 | % Ex:
|
| | 8 | % useOriginal = USEORIGINALHGPRINTING();
|
| | 9 | %
|
| | 10 | % See also PRINT, PRINTOPT, INPUTCHECK, VALIDATE.
|
| | 11 |
|
| | 12 | % Copyright 2008-2020 The MathWorks, Inc.
|
| | 13 |
|
0.002 | 68 | 14 | if nargin && ~isempty(varargin{1})
|
| | 15 | % if given something to print, check it
|
| | 16 | % only HG objects go through new print pipeline.
|
| | 17 | % Stateflow, even with a figure that use the new MATLAB graphics
|
| | 18 | % system introduced in Release 2014b, goes through their own
|
| | 19 | % printing pipeline.
|
| | 20 | % the figure itself isn't printed; there's a "portal" object that
|
| | 21 | % holds a reference to a chart that is.
|
0.002 | 68 | 22 | check.Handles = varargin(1);
|
1.154 | 68 | 23 | if ~all(ishghandle(varargin{1})) || matlab.graphics.internal.isSLorSF(check)
|
| | 24 | useOrig = true;
|
< 0.001 | 68 | 25 | else
|
< 0.001 | 68 | 26 | useOrig = false;
|
< 0.001 | 68 | 27 | end
|
| | 28 | else
|
| | 29 | % no args, or an empty arg list
|
| | 30 | useOrig = false;
|
< 0.001 | 68 | 31 | end
|
< 0.001 | 68 | 32 | end
|
Other subfunctions in this file are not included in this listing.