Class QuPathViewerPlus

java.lang.Object
qupath.lib.gui.viewer.QuPathViewer
qupath.lib.gui.viewer.QuPathViewerPlus
All Implemented Interfaces:
EventListener, TileListener<BufferedImage>, PathObjectHierarchyListener, PathObjectSelectionListener

public class QuPathViewerPlus extends QuPathViewer
A whole slide viewer with optional extras... i.e. an overview, scalebar, location string...
Author:
Pete Bankhead
  • Constructor Details

    • QuPathViewerPlus

      public QuPathViewerPlus(DefaultImageRegionStore regionStore, OverlayOptions overlayOptions, ViewerPlusDisplayOptions viewerDisplayOptions)
      Create a new viewer.
      Parameters:
      regionStore - store used to tile caching
      overlayOptions - overlay options to control the viewer display
      viewerDisplayOptions - viewer options to control additional panes and labels
  • Method Details

    • initializeForServer

      public void initializeForServer(ImageServer<BufferedImage> server)
      Overrides:
      initializeForServer in class QuPathViewer
    • isLocationVisible

      public boolean isLocationVisible()
      Returns true if the cursor location is visible, false otherwise.
      Returns:
    • isScalebarVisible

      public boolean isScalebarVisible()
      Returns true if the scalebar is visible, false otherwise.
      Returns:
    • isOverviewVisible

      public boolean isOverviewVisible()
      Returns true if the image overview is visible, false otherwise.
      Returns:
    • setSlidersPosition

      public void setSlidersPosition(boolean down)
      Sets the Z and T sliders' position to allow space for command bar
      Parameters:
      down -
    • closeViewer

      public void closeViewer()
      Description copied from class: QuPathViewer
      Request that this viewer is closed. This unbinds the viewer from any properties it may be observing, and also triggers QuPathViewerListener.viewerClosed(QuPathViewer) calls for any viewer listeners.
      Overrides:
      closeViewer in class QuPathViewer
    • updateAffineTransform

      protected void updateAffineTransform()
      Overrides:
      updateAffineTransform in class QuPathViewer
    • repaintEntireImage

      public void repaintEntireImage()
      Description copied from class: QuPathViewer
      Request that the entire image is repainted, including the thumbnail. This should be called whenever a major change in display is triggered, such as changing the brightness/contrast or lookup table. Otherwise, QuPathViewer.repaint() is preferable.
      Overrides:
      repaintEntireImage in class QuPathViewer
      See Also: