I wrote an own node class (derived from GoNode). It contains a
background resizable and reshapable shape (GoRectange). The background
shape is the selectable object. The node class also has some other
elements (e.g. a movable label and an optional image).
And when a node is selected and i press
key only the selected background shape is being deleted.
If i understand it correctly there are three possible ways:
- Drop all GoObjects in (override) MyNodeClass.Remove for selectable background shape.
- Use an event of my GoView to delete node.
- Is there a tool class i can modify to do this.
What is the best practice to delete the whole node once user presses