Package qupath.imagej.images.servers
Class ImageJServerBuilder
java.lang.Object
qupath.imagej.images.servers.ImageJServerBuilder
- All Implemented Interfaces:
ImageServerBuilder<BufferedImage>
Builder for ImageServers that use ImageJ to read images.
-
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.booleanmatchClassName(String... classNames) Check if this provider matches one or more specified classnames.
-
Constructor Details
-
ImageJServerBuilder
public ImageJServerBuilder()
-
-
Method Details
-
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:
-
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:
-
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:
-
matchClassName
Description copied from interface:ImageServerBuilderCheck if this provider matches one or more specified classnames.The default implementation checks the full and simple name of the class. Subclasses may override this behavior to support more intuitive names, e.g. "bioformats", "openslide", "imagej", "imageio". However, this should not be overused, so as to prevent future conflicts.
- Specified by:
matchClassNamein interfaceImageServerBuilder<BufferedImage>- Parameters:
classNames-- Returns:
- true if there is any classname match, false otherwise
-