Package org.im4java.core
Class Operation
java.lang.Object
org.im4java.core.Operation
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDynamicOperation
(DynamicOperation pOperation) Add a DynamicOperation to this Operation.addImage()
Add an image-placeholder to an Operation.addImage
(int n) Add multiple image-placeholders to an Operation.Add image(s) to the operation.addOperation
(Operation pOperation) Add an Operation.addRawArgs
(String... pArgs) Add raw text to the list of arguments.addRawArgs
(List<String> pArgs) Add raw text to the list of arguments.Clone the (java) object.Return the raw arguments.Return the list of DynmicOperations.toString()
Convert to String.
-
Field Details
-
IMG_PLACEHOLDER
Placeholder-string for images.- See Also:
-
-
Constructor Details
-
Operation
public Operation()Constructor.
-
-
Method Details
-
toString
Convert to String. Note that the arguments are not quoted! -
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
Add raw text to the list of arguments. -
addRawArgs
Add raw text to the list of arguments. -
getCmdArgs
Return the raw arguments. -
addImage
Add image(s) to the operation. -
addImage
Add an image-placeholder to an Operation. -
addImage
Add multiple image-placeholders to an Operation. -
addOperation
Add an Operation. -
addDynamicOperation
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
Return the list of DynmicOperations.- Returns:
-