Package org.im4java.core
Class DisplayCmd
- java.lang.Object
-
- org.im4java.process.ProcessStarter
-
- org.im4java.core.ImageCommand
-
- org.im4java.core.DisplayCmd
-
- All Implemented Interfaces:
ErrorConsumer
public class DisplayCmd extends ImageCommand
This class wraps the IM command display.
-
-
Field Summary
-
Fields inherited from class org.im4java.process.ProcessStarter
BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description DisplayCmd()
Constructor.DisplayCmd(boolean useGM)
Constructor with option to use GraphicsMagick.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, setCommand
-
Methods inherited from class org.im4java.process.ProcessStarter
addProcessListener, getIInputProvider, getIProcessListener, isAsyncMode, run, setAsyncMode, setErrorConsumer, setInputProvider, setOutputConsumer, startProcess, waitForProcess
-
-
-
-
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 locationjava.lang.InterruptedException
- interrupted exceptionIM4JavaException
- 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 classImageCommand
- Throws:
IM4JavaException
java.io.IOException
java.lang.InterruptedException
-
-