Package qupath.lib.images.servers
Class JsonImageServerBuilder
java.lang.Object
qupath.lib.images.servers.JsonImageServerBuilder
- All Implemented Interfaces:
ImageServerBuilder<BufferedImage>
ImageServerBuilder that constructs an ImageServer from a JSON representation.
- Author:
- Pete Bankhead
-
Nested Class Summary
Nested classes/interfaces inherited from interface qupath.lib.images.servers.ImageServerBuilder
ImageServerBuilder.AbstractServerBuilder<T>, ImageServerBuilder.DefaultImageServerBuilder<T>, ImageServerBuilder.ServerBuilder<T>, ImageServerBuilder.UriImageSupport<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildServer
(URI uri, String... args) Attempt to createImageServer<T>
from the specified path.checkImageSupport
(URI uri, String... args) Check whether a URI is supported by this builder.Get a short, human-readable description for display in a GUI.Returns the base class for the images supported by this server.getName()
Get a human-readable name for the kind of ImageServer this builds.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface qupath.lib.images.servers.ImageServerBuilder
matchClassName
-
Constructor Details
-
JsonImageServerBuilder
public JsonImageServerBuilder()
-
-
Method Details
-
checkImageSupport
Description copied from interface:ImageServerBuilder
Check whether a URI is supported by this builder.This can be used to gain an estimate of how well the format is supported, and the number of images found.
- Specified by:
checkImageSupport
in interfaceImageServerBuilder<BufferedImage>
- Parameters:
uri
-args
- optional String args (may be ignored)- Returns:
-
buildServer
Description copied from interface:ImageServerBuilder
Attempt to createImageServer<T>
from the specified path.- Specified by:
buildServer
in interfaceImageServerBuilder<BufferedImage>
- Parameters:
uri
-args
- optional String arguments that may be used by the builder.- Returns:
- Throws:
Exception
-
getName
Description copied from interface:ImageServerBuilder
Get a human-readable name for the kind of ImageServer this builds.- Specified by:
getName
in interfaceImageServerBuilder<BufferedImage>
- Returns:
-
getDescription
Description copied from interface:ImageServerBuilder
Get a short, human-readable description for display in a GUI.- Specified by:
getDescription
in interfaceImageServerBuilder<BufferedImage>
- Returns:
-
getImageType
Description copied from interface:ImageServerBuilder
Returns the base class for the images supported by this server. Typically this is BufferedImage.class.- Specified by:
getImageType
in interfaceImageServerBuilder<BufferedImage>
- Returns:
-