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.
- Version:
- $Revision: 1.11 $
- Author:
- $Author: bablokb, Bruno Mascret (warnings) $
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.process.ProcessStarter |
addProcessListener, getIInputProvider, getIProcessListener, isAsyncMode, run, setAsyncMode, setErrorConsumer, setInputProvider, setOutputConsumer, startProcess, waitForProcess |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DisplayCmd
public DisplayCmd()
- Constructor.
DisplayCmd
public DisplayCmd(boolean useGM)
- Constructor with option to use GraphicsMagick.
- Parameters:
useGM
- true if GraphicsMagick used
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