Class ImageProjectionRegistry


  • public final class ImageProjectionRegistry
    extends java.lang.Object
    A class that holds a registry of viewers for image projections
    Since:
    18246
    • Method Detail

      • registerViewer

        public static boolean registerViewer​(java.lang.Class<? extends IImageViewer> clazz)
                                      throws java.lang.ReflectiveOperationException
        Register a new viewer
        Parameters:
        clazz - The class to register. The class must have a no args constructor
        Returns:
        true if something changed
        Throws:
        java.lang.ReflectiveOperationException - if there is no no-args constructor, or it is not visible to us.
      • removeViewer

        public static boolean removeViewer​(java.lang.Class<? extends IImageViewer> clazz)
        Remove a viewer
        Parameters:
        clazz - The class to remove.
        Returns:
        true if something changed
      • getViewer

        public static java.lang.Class<? extends IImageViewergetViewer​(Projections projection)
        Get the viewer for a specific projection type
        Parameters:
        projection - The projection to view
        Returns:
        The class to use