|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.im4java.core.Operation
public class Operation
The base class for image-based commandline operations. The class provides some standard methods for all subclasses.
This class models the command-line of an image-command. Objects of this class hold the arguments in a list and keep track of special "dynamic" operations.
Field Summary | |
---|---|
static java.lang.String |
IMG_PLACEHOLDER
Placeholder-string for images. |
Constructor Summary | |
---|---|
Operation()
Constructor. |
Method Summary | |
---|---|
Operation |
addDynamicOperation(DynamicOperation pOperation)
Add a DynamicOperation to this Operation. |
Operation |
addImage()
Add an image-placeholder to an Operation. |
Operation |
addImage(int n)
Add multiple image-placeholders to an Operation. |
Operation |
addImage(java.lang.String... pImages)
Add image(s) to the operation. |
Operation |
addOperation(Operation pOperation)
Add an Operation. |
Operation |
addRawArgs(java.util.List<java.lang.String> pArgs)
Add raw text to the list of arguments. |
Operation |
addRawArgs(java.lang.String... pArgs)
Add raw text to the list of arguments. |
Operation |
cloneObject()
Clone the (java) object. |
java.util.LinkedList<java.lang.String> |
getCmdArgs()
Return the raw arguments. |
java.util.LinkedList<DynamicOperation> |
getDynamicOperations()
Return the list of DynmicOperations. |
java.lang.String |
toString()
Convert to String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IMG_PLACEHOLDER
Constructor Detail |
---|
public Operation()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Operation cloneObject()
public Operation addRawArgs(java.lang.String... pArgs)
public Operation addRawArgs(java.util.List<java.lang.String> pArgs)
public java.util.LinkedList<java.lang.String> getCmdArgs()
public Operation addImage(java.lang.String... pImages)
public Operation addImage()
public Operation addImage(int n)
public Operation addOperation(Operation pOperation)
public Operation addDynamicOperation(DynamicOperation pOperation)
pOperation
- the dynamic operation to add
public java.util.LinkedList<DynamicOperation> getDynamicOperations()
|
The im4java Library, Version 1.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |