This is a static copy of a profile report

Home

scribe.colorbar.schema (1 call, 0.000 sec)
Generated 05-Aug-2011 13:03:43 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@colorbar/schema.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
legendfunction1
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
129
p.Visible = 'off';
10 s0%
128
pl.AccessFlags.PublicSet = 'of...
10 s0%
127
pl.AccessFlags.PublicGet = 'of...
10 s0%
126
pl.AccessFlags.Serialize = 'of...
10 s0%
125
pl = schema.prop(h, 'DeleteLis...
10 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function129
Non-code lines (comments, blank lines)129
Code lines (lines that can run)0
Code lines that did run83
Code lines that did not run0
Coverage (did run/can run)N/A
Function listing
   time   calls  line
1 function schema
2 %SCHEMA defines the scribe.COLORBAR schema
3 %
4 % See also PLOTEDIT
5
6 % Copyright 1984-2008 The MathWorks, Inc.
7 % $Revision: 1.1.6.14 $ $ $
8
1 9 pkg = findpackage('scribe'); % Scribe package
1 10 hgPk = findpackage('hg'); % Handle Graphics package
1 11 h = schema.class(pkg, 'colorbar', hgPk.findclass('axes'));
12
13 % ENUM TYPES
1 14 if isempty(findtype('ColorbarLocationPreset'))
1 15 schema.EnumType('ColorbarLocationPreset',{...
16 'North','South','East','West', ...
17 'NorthOutside','SouthOutside','EastOutside','WestOutside', ...
18 'manual'});
1 19 end
1 20 if isempty(findtype('ColorbarOrientationPreset'))
1 21 schema.EnumType('ColorbarOrientationPreset',...
22 {'HorizontalTop','HorizontalBottom','VerticalLeft','VerticalRight'});
1 23 end
24
25 % STYLE PROPERTIES
1 26 p = schema.prop(h,'EdgeColor','axesColorType');
1 27 p.AccessFlags.Init = 'on';
1 28 p.FactoryValue = get(0,'DefaultAxesXColor');
1 29 p.Visible = 'off';
30
1 31 p = schema.prop(h,'Image','MATLAB array');
1 32 p.AccessFlags.Init = 'on';
1 33 p.FactoryValue = [];
1 34 p.Visible = 'off';
35
1 36 p = schema.prop(h,'ColormapMoveInitialMap','MATLAB array');
1 37 p.AccessFlags.Init = 'off';
1 38 p.Visible = 'off';
39
1 40 p = schema.prop(h,'BaseColormap','MATLAB array');
1 41 p.AccessFlags.Init = 'off';
1 42 p.Visible = 'off';
43
1 44 p = schema.prop(h,'CmapNodeIndices','NReals');
1 45 p.AccessFlags.Init = 'off';
1 46 p.Visible = 'off';
47
1 48 p = schema.prop(h,'CmapNodeFrx','NReals');
1 49 p.AccessFlags.Init = 'off';
1 50 p.Visible = 'off';
51
1 52 p = schema.prop(h,'MovingNodeIndex','NReals');
1 53 p.AccessFlags.Init = 'off';
1 54 p.Visible = 'off';
55
1 56 p = schema.prop(h,'MovingNodeFrx','NReals');
1 57 p.AccessFlags.Init = 'off';
1 58 p.Visible = 'off';
59
1 60 p = schema.prop(h,'Location','ColorbarLocationPreset');
1 61 p.AccessFlags.AbortSet = 'off';
1 62 p.AccessFlags.Init = 'on';
1 63 p.FactoryValue = 'EastOutside';
1 64 p.SetFunction = @localSetLocation;
65
66 % implement orientation prop using new HG
67 % model for handling modes with public access to
68 % propName and propNameMode, but private
69 % access to propNameI, which maintains the true
70 % state of the property for internal object use.
1 71 p = schema.prop(h,'Orientation','ColorbarOrientationPreset');
1 72 p.AccessFlags.AbortSet = 'off';
1 73 p.AccessFlags.Serialize = 'off'; %only serialize the internal property and the Mode
1 74 p.AccessFlags.Init = 'off'; %GET queries OrienationI, so no need to init.
1 75 p.SetFunction = @localSetOrientation;
1 76 p.GetFunction = @localGetOrientation;
1 77 p.Visible = 'off';
78
1 79 p = schema.prop(h,'OrientationI','ColorbarOrientationPreset');
1 80 p.AccessFlags.AbortSet = 'off';
1 81 p.AccessFlags.Init = 'off'; % Location setter will set this on construction in scribe.colorbar
1 82 p.AccessFlags.PublicGet = 'off';
1 83 p.AccessFlags.PublicSet = 'off';
1 84 p.Visible = 'off';
85
1 86 p = schema.prop(h,'OrientationMode','axesXLimModeType');
1 87 p.AccessFlags.Init = 'on';
1 88 p.FactoryValue = 'auto';
1 89 p.Visible = 'off';
90
91 % Keeping track of whether the user changed the X and Y Colors:
1 92 p = schema.prop(h,'XColorMode','axesXLimModeType');
1 93 p.Visible = 'off';
1 94 p.FactoryValue = 'auto';
95
96 % Keeping track of whether the user changed the X and Y Colors:
1 97 p = schema.prop(h,'YColorMode','axesXLimModeType');
1 98 p.Visible = 'off';
1 99 p.FactoryValue = 'auto';
100
101 % Keeping track of whether the user changed the X and Y Colors:
1 102 p = schema.prop(h,'EdgeColorMode','axesXLimModeType');
1 103 p.Visible = 'off';
1 104 p.FactoryValue = 'auto';
105
106 % editing colormap from colorbar
1 107 p = schema.prop(h,'Editing','on/off');
1 108 p.AccessFlags.Init = 'on';
1 109 p.FactoryValue = 'off';
1 110 p.Visible = 'off';
111
112 % peer axes
1 113 p = schema.prop(h,'Axes','handle');
1 114 p.Visible = 'off';
115
116 % delete proxy for peer axes
1 117 p = schema.prop(h,'DeleteProxy','handle');
1 118 p.Visible = 'off';
119
1 120 pl = schema.prop(h, 'PropertyListeners', 'handle vector');
1 121 pl.AccessFlags.Serialize = 'off';
1 122 pl.AccessFlags.PublicSet = 'off';
1 123 pl.Visible = 'off';
124
1 125 pl = schema.prop(h, 'DeleteListener', 'handle');
1 126 pl.AccessFlags.Serialize = 'off';
1 127 pl.AccessFlags.PublicGet = 'off';
1 128 pl.AccessFlags.PublicSet = 'off';
1 129 p.Visible = 'off';

Other subfunctions in this file are not included in this listing.