www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcgraph/@legend/getHandles.m

    function h = getHandles(obj)
%GETHANDLES Return the item handles that are in the legend
%
%  GETHANDLES(OBJ) returns a vector of handles to items that are being
%  included in the legend.  These are returned in the same order as the
%  strings from GETSTRINGS.

%  Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc.


if isempty(obj.hLegend)
    h = [];
else
    ud = get(obj.hLegend, 'UserData');
    h = ud.handles;
end