Class DataBrowser

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
ij.gui.ImageWindow
ij.gui.StackWindow
loci.plugins.util.DataBrowser
All Implemented Interfaces:
ActionListener, AdjustmentListener, FocusListener, MouseWheelListener, WindowListener, WindowStateListener, ImageObserver, MenuContainer, Serializable, Runnable, EventListener, Accessible

public class DataBrowser extends ij.gui.StackWindow
Extension of StackWindow with additional UI trimmings for animation, virtual stack caching options, metadata, and general beautification.
See Also:
  • Field Details

    • MIN_BROWSER_WIDTH

      protected static final int MIN_BROWSER_WIDTH
      See Also:
    • fpsSpin

      protected JSpinner fpsSpin
    • animate

      protected Button animate
    • options

      protected Button options
    • metadata

      protected Button metadata
    • anim

      protected boolean anim
    • allowShow

      protected boolean allowShow
    • metaWindow

      protected XMLWindow metaWindow
    • optionsWindow

      protected BrowserOptionsWindow optionsWindow
    • xml

      protected String xml
    • zScroll

      protected Scrollbar zScroll
    • cScroll

      protected Scrollbar cScroll
    • tScroll

      protected Scrollbar tScroll
    • cSliders

      protected Scrollbar[] cSliders
    • cLengths

      protected int[] cLengths
    • cIndex

      protected int[] cIndex
  • Constructor Details

    • DataBrowser

      public DataBrowser(ij.ImagePlus imp)
    • DataBrowser

      public DataBrowser(ij.ImagePlus imp, ij.gui.ImageCanvas ic, String[] channels, int[] cLengths)
    • DataBrowser

      public DataBrowser(ij.ImagePlus imp, ij.gui.ImageCanvas ic, String[] channels, int[] cLengths, XMLWindow xmlWindow)
  • Method Details

    • setXML

      public void setXML(String xml)
      Sets XML block associated with this window. This information will be displayed in a tree structure when the Metadata button is clicked.
    • toggleAnimation

      public void toggleAnimation()
      Toggles whether the data browser is animating.
    • showOptionsWindow

      public void showOptionsWindow()
      Displays the caching options window onscreen.
    • showMetadataWindow

      public void showMetadataWindow()
      Displays the OME-XML metadata window onscreen.
    • pack

      public void pack()
      Overridden pack method to allow us to delay initial window sizing.
      Overrides:
      pack in class Window
    • setVisible

      public void setVisible(boolean b)
      Overridden show method to allow us to delay initial window display.
      Overrides:
      setVisible in class Window
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class ij.gui.StackWindow
    • adjustmentValueChanged

      public void adjustmentValueChanged(AdjustmentEvent e)
      Specified by:
      adjustmentValueChanged in interface AdjustmentListener
      Overrides:
      adjustmentValueChanged in class ij.gui.StackWindow
    • mouseWheelMoved

      public void mouseWheelMoved(MouseWheelEvent event)
      Specified by:
      mouseWheelMoved in interface MouseWheelListener
      Overrides:
      mouseWheelMoved in class ij.gui.StackWindow
    • syncPlane

      private void syncPlane()
      Updates the ImagePlus's displayed plane to match the slider values.
    • syncSliders

      private void syncSliders()
      Updates the slider values to match the ImagePlus's displayed plane.
    • makeDummySlider

      protected static Scrollbar makeDummySlider()
    • makeHeavyPanel

      protected static Panel makeHeavyPanel(Component c)
      Makes AWT play nicely with Swing components.