Class CacheIndicator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, CacheListener

public class CacheIndicator extends JComponent implements CacheListener
Indicator GUI component showing which planes are currently in the cache for a given dimensional axis at a particular dimensional position.
See Also:
  • Field Details

    • COMPONENT_WIDTH

      private static final int COMPONENT_WIDTH
      See Also:
    • COMPONENT_HEIGHT

      private static final int COMPONENT_HEIGHT
      See Also:
    • cache

      private Cache cache
    • axis

      private int axis
    • comp

      private Component comp
    • lPad

      private int lPad
    • rPad

      private int rPad
  • Constructor Details

    • CacheIndicator

      public CacheIndicator(Cache cache, int axis)
      Creates a new cache indicator for the given cache.
    • CacheIndicator

      public CacheIndicator(Cache cache, int axis, Component comp, int lPad, int rPad)
      Creates a new cache indicator. The component was designed to sit directly below an AWT Scrollbar or Swing JScrollBar, but any component can be given, and the indicator will mimic its width (minus padding).
  • Method Details