Package qupath.lib.gui.viewer
Class QuPathViewerPlus
java.lang.Object
qupath.lib.gui.viewer.QuPathViewer
qupath.lib.gui.viewer.QuPathViewerPlus
- All Implemented Interfaces:
- EventListener,- TileListener<BufferedImage>,- PathObjectHierarchyListener,- PathObjectSelectionListener
A whole slide viewer with optional extras... i.e. an overview, scalebar, location string...
- 
Property SummaryProperties inherited from class qupath.lib.gui.viewer.QuPathViewergamma, imageData, placeholderText, rotation, tPosition, zPosition
- 
Field SummaryFields inherited from class qupath.lib.gui.viewer.QuPathViewerimageUpdated, locationUpdated
- 
Constructor SummaryConstructorsConstructorDescriptionQuPathViewerPlus(DefaultImageRegionStore regionStore, OverlayOptions overlayOptions, ViewerPlusDisplayOptions viewerDisplayOptions) Create a new viewer.
- 
Method SummaryModifier and TypeMethodDescriptionvoidRequest that this viewer is closed.voidinitializeForServer(ImageServer<BufferedImage> server) booleanReturns true if the cursor location is visible, false otherwise.booleanReturns true if the image overview is visible, false otherwise.booleanReturns true if the scalebar is visible, false otherwise.voidRequest that the entire image is repainted, including the thumbnail.voidsetSpinnersPosition(boolean down) Sets the Z and T spinner' position to allow space for command barprotected voidMethods inherited from class qupath.lib.gui.viewer.QuPathVieweraddViewerListener, centerImage, centerROI, componentContains, componentPointToImagePoint, componentPointToImagePoint, fireImageDataChanged, fireVisibleRegionChangedEvent, forceOverlayUpdate, gammaProperty, getActiveTool, getAllSelectedObjects, getAllThumbnails, getBorderColor, getCenterPixelX, getCenterPixelY, getCurrentROI, getCursor, getCustomOverlayLayers, getCustomPixelLayerOverlay, getDefaultZoomFactor, getDisplayedClipShape, getDisplayedRegionShape, getDownsampleFactor, getFullLocationString, getFullMagnification, getGamma, getGammaOp, getHierarchy, getImageData, getImageDisplay, getImageObjectClassificationString, getImagePlane, getImageRegionStore, getMagnification, getMaxDownsample, getMaxROIHandleSize, getMinDownsample, getMousePosition, getObjectClassificationString, getOverlayLayers, getOverlayOptions, getRenderer, getRGBThumbnail, getROIEditor, getRotation, getSelectedObject, getServer, getServerBounds, getServerHeight, getServerWidth, getThumbnail, getTPosition, getView, getZoomToFitDownsampleFactor, getZPosition, hasServer, hierarchyChanged, imageDataProperty, imagePointToComponentPoint, isImageDataChanging, isRotated, isShowing, isSpaceDown, paintComponent, paintViewer, placeholderTextProperty, removeViewerListener, repaint, repaintTimestamp, requestCancelDirection, requestDecelerate, requestStartMoving, requestStopMoving, requiresTileRegion, resetCustomPixelLayerOverlay, resetImageData, resetMinimumRepaintSpacingMillis, rotationProperty, selectedPathObjectChanged, setActiveTool, setBorderColor, setCenterPixelLocation, setCursor, setCustomPixelLayerOverlay, setDoFasterRepaint, setDownsampleFactor, setDownsampleFactor, setDownsampleFactor, setGamma, setImageData, setMagnification, setMinimumRepaintSpacingMillis, setRotation, setSelectedObject, setSelectedObject, setSpaceDown, setTPosition, setZPosition, tileAvailable, toString, tPositionProperty, updateCursor, zoomIn, zoomIn, zoomOut, zoomOut, zoomToFit, zPositionProperty
- 
Constructor Details- 
QuPathViewerPluspublic 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- Overrides:
- initializeForServerin class- QuPathViewer
 
- 
isLocationVisiblepublic boolean isLocationVisible()Returns true if the cursor location is visible, false otherwise.- Returns:
 
- 
isScalebarVisiblepublic boolean isScalebarVisible()Returns true if the scalebar is visible, false otherwise.- Returns:
 
- 
isOverviewVisiblepublic boolean isOverviewVisible()Returns true if the image overview is visible, false otherwise.- Returns:
 
- 
setSpinnersPositionpublic void setSpinnersPosition(boolean down) Sets the Z and T spinner' position to allow space for command bar- Parameters:
- down-
 
- 
closeViewerpublic void closeViewer()Description copied from class:QuPathViewerRequest that this viewer is closed. This unbinds the viewer from any properties it may be observing, and also triggersQuPathViewerListener.viewerClosed(QuPathViewer)calls for any viewer listeners.- Overrides:
- closeViewerin class- QuPathViewer
 
- 
updateAffineTransformprotected void updateAffineTransform()- Overrides:
- updateAffineTransformin class- QuPathViewer
 
- 
repaintEntireImagepublic void repaintEntireImage()Description copied from class:QuPathViewerRequest 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:
- repaintEntireImagein class- QuPathViewer
- See Also:
 
 
-