Package qupath.lib.gui.commands
Class MiniViewers.MiniViewerManager
java.lang.Object
qupath.lib.gui.commands.MiniViewers.MiniViewerManager
- All Implemented Interfaces:
EventListener
,EventHandler<MouseEvent>
- Enclosing class:
MiniViewers
public static class MiniViewers.MiniViewerManager
extends Object
implements EventHandler<MouseEvent>
A manager for one or more mini-viewers, where the 'more' means a separate viewer per channel.
-
Constructor Summary
ConstructorDescriptionMiniViewerManager
(QuPathViewer mainViewer, Collection<? extends ChannelDisplayInfo> channels) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the downsample used within the mini viewers.getPane()
Get the pane containing all mini viewers, which can be added to a scene for display.void
handle
(MouseEvent event) void
setDownsample
(double downsample) Set the downsample to use within the mini viewers.
-
Constructor Details
-
MiniViewerManager
@Deprecated public MiniViewerManager(QuPathViewer mainViewer, Collection<? extends ChannelDisplayInfo> channels) Deprecated.useMiniViewers.createManager(QuPathViewer, Collection)
instead.Constructor specifying a primary viewer and number of channels.- Parameters:
mainViewer
- the viewer that the mini viewers relate to (i.e. tracking the cursor location)channels
- the channels to include
-
-
Method Details
-
getDownsample
public double getDownsample()Get the downsample used within the mini viewers.- Returns:
-
setDownsample
public void setDownsample(double downsample) Set the downsample to use within the mini viewers.- Parameters:
downsample
-
-
getPane
Get the pane containing all mini viewers, which can be added to a scene for display.- Returns:
-
handle
- Specified by:
handle
in interfaceEventHandler<MouseEvent>
-
MiniViewers.createManager(QuPathViewer, Collection)
instead.