The im4java Library, Version 1.4.0

org.im4java.core
Class DisplayCmd

java.lang.Object
  extended by org.im4java.process.ProcessStarter
      extended by org.im4java.core.ImageCommand
          extended by org.im4java.core.DisplayCmd
All Implemented Interfaces:
ErrorConsumer

public class DisplayCmd
extends ImageCommand

This class wraps the IM command display.

Since:
0.95
Version:
$Revision: 1.14 $
Author:
$Author: bablokb $

Field Summary
 
Fields inherited from class org.im4java.process.ProcessStarter
BUFFER_SIZE
 
Constructor Summary
DisplayCmd()
          Constructor.
DisplayCmd(boolean useGM)
          Constructor with option to use GraphicsMagick.
 
Method Summary
 void run(Operation pOperation, java.lang.Object... images)
          Execute the command (replace given placeholders).
static void show(java.lang.String pImageName)
          Convinience method to show the image passed as an argument.
 
Methods inherited from class org.im4java.core.ImageCommand
consumeError, createScript, createScript, createScript, finished, getCommand, getErrorText, getProcessTask, setCommand, setDefaultScriptGenerator, setScriptGenerator
 
Methods inherited from class org.im4java.process.ProcessStarter
addProcessEventListener, addProcessListener, finished, getGlobalSearchPath, getPID, getProcessTask, getSearchPath, isAsyncMode, removeProcessEventListener, run, searchForCmd, setAsyncMode, setErrorConsumer, setGlobalSearchPath, setInputProvider, setOutputConsumer, setPID, setPIDCounter, setSearchPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayCmd

public DisplayCmd()
Constructor.


DisplayCmd

public DisplayCmd(boolean useGM)
Constructor with option to use GraphicsMagick.

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.

Throws:
java.io.IOException
java.lang.InterruptedException
IM4JavaException

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
Parameters:
pOperation - The Operation to execute
images - Zero or more images (replace placeholders in pOperation)
Throws:
java.io.IOException
java.lang.InterruptedException
IM4JavaException

The im4java Library, Version 1.4.0

Released under the LGPL, (c) Bernhard Bablok 2008-2010
Homepage: http://im4java.sourceforge.net/