org.alfresco.repo.content.transform.magick
Class ImageTransformationOptions

java.lang.Object
  extended by org.alfresco.service.cmr.repository.TransformationOptions
      extended by org.alfresco.repo.content.transform.magick.ImageTransformationOptions

public class ImageTransformationOptions
extends TransformationOptions

Image transformation options


Field Summary
static java.lang.String OPT_COMMAND_OPTIONS
           
static java.lang.String OPT_IMAGE_CROP_OPTIONS
           
static java.lang.String OPT_IMAGE_RESIZE_OPTIONS
           
 
Fields inherited from class org.alfresco.service.cmr.repository.TransformationOptions
OPT_INCLUDE_EMBEDDED, OPT_SOURCE_CONTENT_PROPERTY, OPT_SOURCE_NODEREF, OPT_TARGET_CONTENT_PROPERTY, OPT_TARGET_NODEREF, relaxedBooleanTypeConverter
 
Constructor Summary
ImageTransformationOptions()
           
 
Method Summary
 java.lang.String getCommandOptions()
          Get the command string options
 ImageCropOptions getCropOptions()
           
 ImageResizeOptions getResizeOptions()
          Get the image resize options
 void setCommandOptions(java.lang.String commandOptions)
          Set the command string options
 void setCropOptions(ImageCropOptions cropOptions)
           
 void setResizeOptions(ImageResizeOptions resizeOptions)
          Set the image resize options
 java.util.Map toMap()
          Overrides the base class implementation to add our options
 java.lang.String toString()
           
 
Methods inherited from class org.alfresco.service.cmr.repository.TransformationOptions
getIncludeEmbedded, getSourceContentProperty, getSourceNodeRef, getTargetContentProperty, getTargetNodeRef, setIncludeEmbedded, setSourceContentProperty, setSourceNodeRef, setTargetContentProperty, setTargetNodeRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPT_COMMAND_OPTIONS

public static final java.lang.String OPT_COMMAND_OPTIONS
See Also:
Constant Field Values

OPT_IMAGE_RESIZE_OPTIONS

public static final java.lang.String OPT_IMAGE_RESIZE_OPTIONS
See Also:
Constant Field Values

OPT_IMAGE_CROP_OPTIONS

public static final java.lang.String OPT_IMAGE_CROP_OPTIONS
See Also:
Constant Field Values
Constructor Detail

ImageTransformationOptions

public ImageTransformationOptions()
Method Detail

setCommandOptions

public void setCommandOptions(java.lang.String commandOptions)
Set the command string options

Parameters:
commandOptions - the command string options

getCommandOptions

public java.lang.String getCommandOptions()
Get the command string options

Returns:
String the command string options

setResizeOptions

public void setResizeOptions(ImageResizeOptions resizeOptions)
Set the image resize options

Parameters:
resizeOptions - image resize options

getResizeOptions

public ImageResizeOptions getResizeOptions()
Get the image resize options

Returns:
ImageResizeOptions image resize options

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toMap

public java.util.Map toMap()
Overrides the base class implementation to add our options

Overrides:
toMap in class TransformationOptions

setCropOptions

public void setCropOptions(ImageCropOptions cropOptions)
Parameters:
cropOptions - the cropOptions to set

getCropOptions

public ImageCropOptions getCropOptions()
Returns:
the cropOptions


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.