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.
-
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
Constructors -
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, waitMethods inherited from interface qupath.lib.images.servers.ImageServerBuilder
matchClassName
-
Constructor Details
-
JsonImageServerBuilder
public JsonImageServerBuilder()
-
-
Method Details
-
checkImageSupport
Description copied from interface:ImageServerBuilderCheck 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:
checkImageSupportin interfaceImageServerBuilder<BufferedImage>- Parameters:
uri-args- optional String args (may be ignored)- Returns:
-
buildServer
Description copied from interface:ImageServerBuilderAttempt to createImageServer<T>from the specified path.- Specified by:
buildServerin interfaceImageServerBuilder<BufferedImage>- Parameters:
uri-args- optional String arguments that may be used by the builder.- Returns:
- Throws:
Exception
-
getName
Description copied from interface:ImageServerBuilderGet a human-readable name for the kind of ImageServer this builds.- Specified by:
getNamein interfaceImageServerBuilder<BufferedImage>- Returns:
-
getDescription
Description copied from interface:ImageServerBuilderGet a short, human-readable description for display in a GUI.- Specified by:
getDescriptionin interfaceImageServerBuilder<BufferedImage>- Returns:
-
getImageType
Description copied from interface:ImageServerBuilderReturns the base class for the images supported by this server. Typically this is BufferedImage.class.- Specified by:
getImageTypein interfaceImageServerBuilder<BufferedImage>- Returns:
-