I extended the functionality of a line object using a class which takes a line handle as an input argument to its constructor. This class then creates a WindowMouseMotion
listener to detect a mouseover the line which highlights the line and displays a panel containing controls for setting some line/data properties. This is working well.
I am now trying to make this class detect and respond to the line being deleted by listening for the line's ObjectBeingDestroyed
event. My question is whether linking this class to the line object by storing the line's handle is the best solution or is it possible to extend the line class by inheriting from it? I have looked through the MATLAB documentation and searched online but can't find definitive information on inheriting from graphics classes.