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.
- 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.boolean
matchClassName
(String... classNames) Check if this provider matches one or more specified classnames.
-
Constructor Details
-
ImageJServerBuilder
public ImageJServerBuilder()
-
-
Method Details
-
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:
-
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:
-
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:
-
matchClassName
Description copied from interface:ImageServerBuilder
Check 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:
matchClassName
in interfaceImageServerBuilder<BufferedImage>
- Parameters:
classNames
-- Returns:
- true if there is any classname match, false otherwise
-