Package qupath.lib.gui.panes
Class ServerSelector
java.lang.Object
qupath.lib.gui.panes.ServerSelector
Helper class for selecting one image server out of a collection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSelector
create
(Collection<? extends ImageServer<BufferedImage>> servers) static ServerSelector
createFromBuilders
(Collection<? extends ImageServerBuilder.ServerBuilder<BufferedImage>> builders) promptToSelectImage
(String prompt, boolean alwaysShow) Prompt to select a singleImageServer
.promptToSelectImages
(String prompt) Prompt to select multiple ImageServers.
-
Method Details
-
createFromBuilders
public static ServerSelector createFromBuilders(Collection<? extends ImageServerBuilder.ServerBuilder<BufferedImage>> builders) -
create
-
promptToSelectImage
Prompt to select a singleImageServer
.- Parameters:
prompt
- a one-word prompt to use in the title or button; typically "Open", "Import" or "Select"alwaysShow
- if true, always show the prompt; if false, it won't be shown if it isn't necessary (i.e. there are 0 or 1 servers).- Returns:
- the selected server, or null if no server was selected
-
promptToSelectImages
Prompt to select multiple ImageServers.- Parameters:
prompt
- a one-word prompt to use in the title or button; typically "Open", "Import" or "Select"- Returns:
- the selected servers, or empty list if no servers were selected
-