This is a static copy of a profile reportHome
scribe.legend.schema (1 call, 0.011 sec)
Generated 05-Aug-2011 13:03:43 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/schema.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
legend | function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
22 | if isempty(findtype('LegendUni... | 1 | 0.011 s | 100.0% |  |
183 | pl.Visible='off'; | 1 | 0 s | 0% |  |
182 | pl.AccessFlags.PublicSet = 'of... | 1 | 0 s | 0% |  |
181 | pl.AccessFlags.PublicGet = 'of... | 1 | 0 s | 0% |  |
180 | pl.AccessFlags.Serialize = 'of... | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 183 |
Non-code lines (comments, blank lines) | 183 |
Code lines (lines that can run) | 0 |
Code lines that did run | 122 |
Code lines that did not run | 0 |
Coverage (did run/can run) | N/A |
Function listing
time calls line
1 function schema()
2 %SCHEMA defines the scribe.LEGEND schema
3 %
4 % See also PLOTEDIT
5
6 % Copyright 1984-2005 The MathWorks, Inc.
7
1 8 pkg = findpackage('scribe'); % Scribe package
1 9 hgPk = findpackage('hg'); % Handle Graphics package
1 10 h = schema.class(pkg, 'legend', hgPk.findclass('axes'));
1 11 if isempty(findtype('LegendLocationPreset'))
1 12 schema.EnumType('LegendLocationPreset',{...
13 'North','South','East','West',...
14 'NorthEast','SouthEast','NorthWest','SouthWest',...
15 'NorthOutside','SouthOutside',...
16 'EastOutside','WestOutside',...
17 'NorthEastOutside','SouthEastOutside',...
18 'NorthWestOutside','SouthWestOutside',...
19 'Best','BestOutside',...
20 'none'});
1 21 end
0.01 1 22 if isempty(findtype('LegendUnits'))
1 23 schema.EnumType('LegendUnits',{'normalized','pixels'});
1 24 end
1 25 if isempty(findtype('LegendOrientation'))
1 26 schema.EnumType('LegendOrientation',{'horizontal','vertical'});
1 27 end
1 28 if isempty(findtype('LegendTextLocation'))
1 29 schema.EnumType('LegendTextLocation',{'left','right','top','bottom'});
1 30 end
31
1 32 schema.event(h,'LegendInfoChanged');
1 33 schema.event(h,'LegendConstructorDone');
34
1 35 p = schema.prop(h,'Ready','on/off');
1 36 p.AccessFlags.Serialize = 'off';
1 37 p.AccessFlags.PublicSet = 'off';
1 38 p.AccessFlags.PublicGet = 'on';
1 39 p.AccessFlags.Init = 'on';
1 40 p.FactoryValue = 'off';
1 41 p.Visible = 'off';
42
43 % end of common properties
44
45 % LegendInfoChildren is on if PlotChildren are legendinfo objects rather
46 % than hg objects.
1 47 p = schema.prop(h,'LegendInfoChildren','on/off');
1 48 p.AccessFlags.Serialize = 'off';
1 49 p.AccessFlags.Init = 'on';
1 50 p.FactoryValue = 'off';
1 51 p.Visible='off';
52
1 53 p = schema.prop(h,'PlotChildListen','on/off');
1 54 p.AccessFlags.Serialize = 'on';
1 55 p.AccessFlags.PublicSet = 'off';
1 56 p.AccessFlags.PublicGet = 'on';
1 57 p.AccessFlags.Init = 'on';
1 58 p.FactoryValue = 'on';
1 59 p.Visible='off';
60
61 % for possible legend background
1 62 p = schema.prop(h,'Image','MATLAB array');
1 63 p.AccessFlags.Init = 'on';
1 64 p.FactoryValue = [];
1 65 p.Visible = 'off';
66
1 67 p = schema.prop(h,'ObservePos','on/off');
1 68 p.AccessFlags.Serialize = 'off';
1 69 p.AccessFlags.Init = 'on';
1 70 p.FactoryValue = 'on';
1 71 p.Visible='off';
72
1 73 p = schema.prop(h,'Location','LegendLocationPreset');
1 74 p.AccessFlags.Init = 'on';
1 75 p.FactoryValue = 'NorthEast';
76
1 77 p = schema.prop(h,'Orientation','LegendOrientation');
1 78 p.AccessFlags.Init = 'on';
1 79 p.FactoryValue = 'vertical';
80
1 81 p = schema.prop(h,'ItemTextLocation','LegendTextLocation');
1 82 p.AccessFlags.Init = 'on';
1 83 p.FactoryValue = 'left';
1 84 p.Visible = 'off';
85
86 %width,height of item patches,lines (largest in size sublegend) in points
1 87 p = schema.prop(h,'ItemTokenSize','NReals');
1 88 p.AccessFlags.Init = 'on';
1 89 p.FactoryValue = [30,18];
1 90 p.Visible = 'off';
91
92 % delete proxy for peer axes
1 93 p = schema.prop(h,'DeleteProxy','handle');
1 94 p.AccessFlags.Serialize = 'off';
1 95 p.Visible = 'off';
96
97 % COMPONENTS
98 % peer axes
1 99 p = schema.prop(h,'Axes','handle');
1 100 p.AccessFlags.Serialize = 'off';
1 101 p.AccessFlags.Init = 'on';
1 102 p.FactoryValue = [];
1 103 p.Visible='off';
104
105 % handle vector to plot lines surfs and patches
1 106 p = schema.prop(h,'Plotchildren','handle vector');
1 107 p.AccessFlags.Serialize = 'off';
1 108 p.AccessFlags.Init = 'on';
1 109 p.FactoryValue = [];
1 110 p.Visible='off';
111 % item patches and lines patches
1 112 p = schema.prop(h,'ItemTokens','handle vector');
1 113 p.AccessFlags.Serialize = 'off';
1 114 p.AccessFlags.Init = 'on';
1 115 p.FactoryValue = [];
1 116 p.Visible='off';
117 % line text
1 118 p = schema.prop(h,'ItemText','handle vector');
1 119 p.AccessFlags.Serialize = 'off';
1 120 p.AccessFlags.Init = 'on';
1 121 p.FactoryValue = [];
1 122 p.Visible='off';
123
124 % show style sublegend (default)
1 125 p = schema.prop(h,'StyleLegend','on/off');
1 126 p.AccessFlags.Init = 'on';
1 127 p.FactoryValue = 'on';
1 128 p.Visible='off';
129
130 % STYLE PROPERTIES
1 131 p = schema.prop(h,'ObserveStyle','on/off');
1 132 p.AccessFlags.Serialize = 'off';
1 133 p.AccessFlags.Init = 'on';
1 134 p.FactoryValue = 'on';
1 135 p.Visible='off';
136
1 137 p = schema.prop(h,'EdgeColor','axesXColorType');
1 138 p.AccessFlags.Init = 'on';
1 139 p.FactoryValue = get(0,'DefaultAxesXColor');
1 140 p.SetFunction = @edgeColorSetter;
141
142 % ITEM TEXT PROPERTIES
1 143 p = schema.prop(h,'ObserveText','on/off');
1 144 p.AccessFlags.Init = 'on';
1 145 p.FactoryValue = 'on';
1 146 p.Visible='off';
147
1 148 p = schema.prop(h,'TextColor','textColorType');
1 149 p.AccessFlags.Init = 'on';
1 150 p.FactoryValue = get(0,'DefaultTextColor');
151
1 152 p = schema.prop(h,'Interpreter','textInterpreterType');
1 153 p.AccessFlags.Init = 'on';
1 154 p.FactoryValue = get(0,'DefaultTextInterpreter');
155
1 156 p = schema.prop(h,'TextEditing','on/off');
1 157 p.AccessFlags.Serialize = 'off';
1 158 p.AccessFlags.Init = 'on';
1 159 p.FactoryValue = 'off';
1 160 p.Visible='off';
161
162 % Strings should really be NStrings but we want to allow multi-line
163 % legend entries and so it is a generic MATLAB array.
1 164 p = schema.prop(h,'String','MATLAB array');
1 165 p.AccessFlags.Init = 'on';
1 166 p.FactoryValue = {};
167
168 % LEGEND TITLE TEXT PROPERTIES (TBD)
169
170 % LEGEND FOOTNOTE TEXT PROPERTIES (TBD)
171
172 % LEGEND LISTENERS
173
1 174 pl = schema.prop(h, 'PropertyListeners', 'handle vector');
1 175 pl.AccessFlags.Serialize = 'off';
1 176 pl.AccessFlags.PublicSet = 'off';
1 177 pl.Visible='off';
178
1 179 pl = schema.prop(h, 'DeleteListener', 'handle');
1 180 pl.AccessFlags.Serialize = 'off';
1 181 pl.AccessFlags.PublicGet = 'off';
1 182 pl.AccessFlags.PublicSet = 'off';
1 183 pl.Visible='off';
Other subfunctions in this file are not included in this listing.