images.ui.graphics.events.ObjectInfoEventData Class
R2026bNamespace: images.ui.graphics.events
Superclasses: event.EventData
Event data is passed when an object in the viewer is interactively clicked
Since R2026b
Description
The images.ui.graphics.events.ObjectInfoEventData class is the class passed
to listeners when an object in a Viewer is
interactively clicked. When the object triggers an event using the notify handle class method, MATLAB® assigns values to the properties of an ObjectInfoEventData object
and passes that object to the listener callback function (the event handler).
In the callback function, use the Object property to determine what
was clicked, the ClickType property to distinguish click types, and the
Position property to use the click location.
The images.ui.graphics.events.ObjectInfoEventData class is a handle class.
Class Attributes
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
The notify handle class method creates an
ObjectInfoEventData object when called to trigger an event.
Properties
Examples
Version History
Introduced in R2026b