Package org.im4java.core
Class Operation
- java.lang.Object
-
- org.im4java.core.Operation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIMG_PLACEHOLDERPlaceholder-string for images.
-
Constructor Summary
Constructors Constructor Description Operation()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationaddDynamicOperation(DynamicOperation pOperation)Add a DynamicOperation to this Operation.OperationaddImage()Add an image-placeholder to an Operation.OperationaddImage(int n)Add multiple image-placeholders to an Operation.OperationaddImage(java.lang.String... pImages)Add image(s) to the operation.OperationaddOperation(Operation pOperation)Add an Operation.OperationaddRawArgs(java.lang.String... pArgs)Add raw text to the list of arguments.OperationaddRawArgs(java.util.List<java.lang.String> pArgs)Add raw text to the list of arguments.OperationcloneObject()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.StringtoString()Convert to String.
-
-
-
Field Detail
-
IMG_PLACEHOLDER
public static final java.lang.String IMG_PLACEHOLDER
Placeholder-string for images.- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString()
Convert to String. Note that the arguments are not quoted!- Overrides:
toStringin classjava.lang.Object
-
cloneObject
public Operation cloneObject()
Clone the (java) object. Note that ImageMagick has a -clone operator, therefore this class has a method clone() (inherited from Core) which does not clone the java-object, but wraps the IM-clone operator!
-
addRawArgs
public Operation addRawArgs(java.lang.String... pArgs)
Add raw text to the list of arguments.
-
addRawArgs
public Operation addRawArgs(java.util.List<java.lang.String> pArgs)
Add raw text to the list of arguments.
-
getCmdArgs
public java.util.LinkedList<java.lang.String> getCmdArgs()
Return the raw arguments.
-
addImage
public Operation addImage(java.lang.String... pImages)
Add image(s) to the operation.
-
addImage
public Operation addImage()
Add an image-placeholder to an Operation.
-
addImage
public Operation addImage(int n)
Add multiple image-placeholders to an Operation.
-
addDynamicOperation
public Operation addDynamicOperation(DynamicOperation pOperation)
Add a DynamicOperation to this Operation. We just save the DynamicOperation in the internal list and add a placeholder for the operation.- Parameters:
pOperation-- Returns:
-
getDynamicOperations
public java.util.LinkedList<DynamicOperation> getDynamicOperations()
Return the list of DynmicOperations.- Returns:
-
-