Skip to content

nexus_legend_entry

matlab_compat · scripts/matlab_compat/nexus_legend_entry.m

NEXUS_LEGEND_ENTRY The LegendInformation of a graphics object’s Annotation.

MATLAB gives this class the name matlab.graphics.eventdata.LegendEntry. It carries one property, IconDisplayStyle, which decides whether the object it belongs to gets an entry in the legend:

"on" always show an entry "off" never show one "children" show entries for the object’s children instead

It is a handle object because that is how callers reach it – they fetch it and write through it without assigning anything back:

set (get (get (h, ’Annotation’), ’LegendInformation’), ... ’IconDisplayStyle’, ’off’);

A value object would make that line silently do nothing, which is what Nexus used to do.