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.
- Since:
- 0.95
- Version:
- $Revision: 1.14 $
- Author:
- $Author: bablokb $
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 |
DisplayCmd
public DisplayCmd()
- Constructor.
DisplayCmd
public DisplayCmd(boolean useGM)
- Constructor with option to use GraphicsMagick.
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 executeimages
- Zero or more images (replace placeholders in pOperation)
- Throws:
java.io.IOException
java.lang.InterruptedException
IM4JavaException
Released under the LGPL, (c) Bernhard Bablok 2008-2010
Homepage: http://im4java.sourceforge.net/