Class DisplayCmd

  • All Implemented Interfaces:
    ErrorConsumer

    public class DisplayCmd
    extends ImageCommand
    This class wraps the IM command display.
    • Constructor Detail

      • DisplayCmd

        public DisplayCmd()
        Constructor.
      • DisplayCmd

        public DisplayCmd​(boolean useGM)
        Constructor with option to use GraphicsMagick.
        Parameters:
        useGM - true if GraphicsMagick used
    • Method Detail

      • show

        public static void show​(java.lang.String pImageName)
                         throws java.io.IOException,
                                java.lang.InterruptedException,
                                IM4JavaException
        Convinience method to show the image passed as an argument.
        Parameters:
        pImageName - the image Name
        Throws:
        java.io.IOException - Wrong location
        java.lang.InterruptedException - interrupted exception
        IM4JavaException - an im4java Exception occured
      • run

        public void run​(Operation pOperation,
                        java.lang.Object... images)
                 throws java.io.IOException,
                        java.lang.InterruptedException,
                        IM4JavaException
        Execute the command (replace given placeholders).
        Overrides:
        run in class ImageCommand
        Throws:
        IM4JavaException
        java.io.IOException
        java.lang.InterruptedException