time | Calls | line |
---|
| | 1 | function markFigure(objs)
|
| | 2 | %markFigure Mark an editor figure as changed
|
| | 3 |
|
| | 4 | % Copyright 2015 The MathWorks, Inc.
|
| | 5 |
|
< 0.001 | 2 | 6 | for obj = objs(:)'
|
< 0.001 | 2 | 7 | if isgraphics(obj)
|
< 0.001 | 2 | 8 | fig = ancestor(obj,'figure');
|
< 0.001 | 2 | 9 | if ~isempty(fig) && isappdata(fig, 'EDITOR_APPDATA')
|
| | 10 | % toggling Color to mark the figure as changed
|
| | 11 | color = get(fig,'Color');
|
| | 12 | newcolor = 1-color;
|
| | 13 | if isequal(color, newcolor)
|
| | 14 | newcolor = [0 0 0];
|
| | 15 | end
|
| | 16 | set(fig,'Color',newcolor);
|
| | 17 | set(fig,'Color',color);
|
| | 18 | end
|
< 0.001 | 2 | 19 | end
|
< 0.001 | 2 | 20 | end
|
Other subfunctions in this file are not included in this listing.