Ticket #110 (closed defect: worksforme)
Opened 2007-04-12T13:56:24-05:00
Last modified 2007-06-26T17:55:45-05:00
Make invisible overlay objects automatically delete themselves
Reported by: | sorber | Owned by: | sorber |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | visbio | Severity: | |
Keywords: | overlays | Cc: | |
Blocked By: | Blocking: |
Description
Invisible (zero area, zero length, or fewer than two nodes) should be automatically deleted. Right now, OverlayNodedObjects are automatically deleted, but the logic is divided between the corresponding tools and the OverlayNodedObject class. Invisible Boxes, Ovals, Lines, and Arrows should also be deleted.
- OverlayTool subclasses should automatically delete an object if at mouseUp the object has zero area, zero length, or one or zero nodes.
- To determine whether to delete an object, OverlayTool subclasses should call a method in OverlayObject subclasses which returns whether the object has a nonzero size, nonzero length, or more than one node.
Change History
comment:1 Changed 2007-04-12T15:39:58-05:00 by sorber
comment:2 Changed 2007-06-26T17:55:45-05:00 by sorber
- Status changed from new to closed
- Resolution set to worksforme
My fix for this problem is a piecemeal solution: sometimes the objects remove themselves, sometimes the tools do. The solution design could be better encapsulated.
Accomplished both points above for all but OverlayNodedObjects.