bug in deleting legends from UI. syncing problems for threads in LegendMouseListener's isClickInInplaceEditor function.