Module org.jpo

Class NonFocussedCaret

All Implemented Interfaces:
FocusListener, MouseListener, MouseMotionListener, Shape, Serializable, Cloneable, EventListener, Caret

public class NonFocussedCaret extends DefaultCaret
This class overrides the adjustVisibility method of the DefaultCaret class. This beast took me quite a while to figure out: when a group was being displayed the thumbnails would appear one after the other, and then they would all scroll to the last one automatically. The cause of this was the invisible caret in the last description. This was requesting to be made visible and everything went to hell.
See Also:
  • Constructor Details

    • NonFocussedCaret

      public NonFocussedCaret()
  • Method Details

    • adjustVisibility

      protected void adjustVisibility(Rectangle nloc)
      All we do in this class is to override this method with nothing so that scrolling doesn't happen.
      Overrides:
      adjustVisibility in class DefaultCaret
      Parameters:
      nloc - rectangle