Mapping Toolbox | ![]() ![]() |
Get handles of graphics objects
Syntax
handlem handlem('taglist') handlem('prompt') handlem('object',axesh) handlem('object',axesh,'searchmethod') h = handlem(object) h = handlem(handles)
Description
handlem or handlem('taglist') displays a dialog box for selecting the objects for which handles are desired.
h = handlem('prompt') displays another dialog box, which allows greater control of object selection.
h = handlem(object
) returns the handles of those objects specified by the input string. The options for the object
string are:
Or any user-defined object tag string.
A prefix of 'all'
can be applied to strings defining a Handle Graphics Object type ('allimage'
, 'allline'
, 'allsurface'
, 'allpatch'
, 'alltext'
) to determine all object handles that meet the type criteria. Without the 'all'
prefix, those objects named by the user with the tagm
command are not included (e.g., a line with the tag 'route'
would not be included for a object string 'line'
, but would be for 'allline'
).
handlem('object
',axesh) searches within the axes specified by the input handle axesh.
handlem('object
',axesh,'searchmethod
') controls the method used to match the 'str'
input. If omitted, 'exact'
is assumed. Search method 'strmatch'
searches for matches at the beginning of the tag, similar to the MATLAB STRMATCH
function. Search method 'findstr'
searches within the tag, similar to the MATLAB FINDSTR
function.
h = handlem(handles) returns those elements of an input vector of handles that are still valid.
See Also
clma |
Clear current map |
clmo |
Clear specified graphics objects |
hidem |
Hide specified graphics objects |
namem |
Determine names of valid graphics objects |
showm |
Show specified graphics objects |
tagm |
Assign a name to graphics object tag property |
![]() | gtextm | hidem | ![]() |