time | Calls | line |
---|
< 0.001 | 16 | 1 | classdef PrintBehavior < matlab.graphics.internal.HGBehavior
|
| | 2 | % This is an undocumented class and may be removed in a future release.
|
| | 3 |
|
| | 4 | % Copyright 2013-2018 The MathWorks, Inc.
|
| | 5 |
|
| | 6 | properties (Constant)
|
| | 7 | %NAME Property
|
| | 8 | Name = 'Print';
|
| | 9 | end
|
| | 10 |
|
| | 11 | properties
|
| | 12 | PrePrintCallback = [];
|
| | 13 | PostPrintCallback = [];
|
| | 14 |
|
| | 15 | %WARNONCUSTOMRESIZEFCN Property should be either 'on/off' string
|
| | 16 | WarnOnCustomResizeFcn = 'on';
|
| | 17 |
|
| | 18 | % CheckDataDescriptorBehavior 'on' tells the print and export code
|
| | 19 | % to skip the object when applying style changes if the object
|
| | 20 | % has a *disabled* DataDescriptor behavior. Set the value to 'off'
|
| | 21 | % to apply printing style changes to an object even if the
|
| | 22 | % DataDescriptor behavior is disabled.
|
| | 23 | CheckDataDescriptorBehavior = 'on';
|
| | 24 | end
|
| | 25 |
|
| | 26 |
|
| | 27 | properties (Transient)
|
| | 28 | %SERIALIZE Property
|
| | 29 | Serialize = true;
|
| | 30 | end
|
| | 31 |
|
| | 32 | methods
|
| | 33 | function set.WarnOnCustomResizeFcn(obj,value)
|
| | 34 | % values = 'on/off'
|
| | 35 | validatestring(value,{'on','off'},'','WarnOnCustomResizeFcn');
|
| | 36 | obj.WarnOnCustomResizeFcn = value;
|
| | 37 | end
|
| | 38 |
|
| | 39 | function thisSerialize = saveobj(this)
|
| | 40 | if this.Serialize
|
| | 41 | thisSerialize = this;
|
| | 42 | else
|
| | 43 | thisSerialize = [];
|
| | 44 | end
|
| | 45 | end
|
| | 46 |
|
| | 47 | end % set and get functions
|
| | 48 |
|
| | 49 | methods
|
| | 50 | function ret = dosupport(~,hTarget)
|
| | 51 | % only allowed on Figure, Axes, and ScribeGrid
|
| | 52 | ret = ishghandle(hTarget, 'Figure') || ...
|
| | 53 | ishghandle(hTarget, 'Axes') || ...
|
| | 54 | ishghandle(hTarget, 'polaraxes') || ...
|
| | 55 | ishghandle(hTarget, 'geoaxes') || ...
|
| | 56 | ishghandle(hTarget, 'Legend') || ...
|
| | 57 | (ishghandle(hTarget) && ...
|
| | 58 | (isa(hTarget, 'matlab.graphics.shape.internal.ScribeGrid') || ...
|
| | 59 | isa(hTarget, 'matlab.graphics.chart.Chart') || ...
|
| | 60 | isa(hTarget, 'matlab.graphics.controls.AxesToolbar') || ...
|
| | 61 | isa(hTarget, 'bigimageshow') || ...
|
| | 62 | isa(hTarget, 'matlab.graphics.shape.internal.PointDataTip')) || ...
|
| | 63 | isa(hTarget, 'matlab.graphics.primitive.world.CompositeMarker'));
|
| | 64 |
|
| | 65 | end
|
| | 66 | end
|
| | 67 |
|
| | 68 | end % classdef
|
| | 69 |
|
| | 70 |
|