Make device logging safer, just in case

Prevent crash in a very unlikely case.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13901 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Fix bug causing cursor in comments text to constantly move to front of box.

Actual fix is to avoid generating spurious "image display has changed" events,
which in turn were causing the comments textbox to pointlessly refresh,
reseting the cursor position. Now we only generate those events if at least
one axis of the dataset has changed position. Additionally we don't keep a
Timer around for animation if none of the axes are actually animated.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13902 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Bar creation of new timers when the window is about to close.

This shouldn't usually be necessary, but without it there's a tiny window
between prepareForClose() and when the ScrollerPanel is actually rendered
inaccessible in which an animation timer could get created, resulting in a
memory leak.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13903 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Reduce a memory leak when closing VirtualAcquisitionDisplays.

Remove the display's canvas object from the CanvasPaintPending system
as part of the onWindowClose event handler.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13904 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
Remove LiveModeListener on display close.

git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@13905 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd