Class EditImageHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class EditImageHandler extends JcmsFormHandler
  • Field Details

    • fd

      protected FileDocument fd
    • x1

      protected int x1
    • y1

      protected int y1
    • x2

      protected int x2
    • y2

      protected int y2
    • width

      protected int width
    • height

      protected int height
    • rotate

      protected int rotate
    • title

      protected String title
    • minWidth

      protected String minWidth
    • minHeight

      protected String minHeight
    • xRatio

      protected String xRatio
    • yRatio

      protected String yRatio
    • op

      protected boolean op
    • opCropNew

      protected boolean opCropNew
    • opCropReplace

      protected boolean opCropReplace
  • Constructor Details

    • EditImageHandler

      public EditImageHandler()
  • Method Details

    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • transform

      public File transform(File tempFile)
      Rotate and Crop given File into a new temporary File.
      Parameters:
      tempFile - the temporary file
      Returns:
      null or a new temporary File
    • perform

      public boolean perform()
      Perform the scale/rotate then store the result to a new or existing FileDocument
      Returns:
      true if perform is done
    • getCropCSS

      public String getCropCSS()
    • getFileDocument

      public FileDocument getFileDocument()
    • getAvailableRotate

      public int getAvailableRotate()
    • getAvailableTitle

      public String getAvailableTitle()
    • getAvailableX1

      public int getAvailableX1()
    • getAvailableY1

      public int getAvailableY1()
    • getAvailableX2

      public int getAvailableX2()
    • getAvailableY2

      public int getAvailableY2()
    • getAvailableWidth

      public int getAvailableWidth()
    • getAvailableHeight

      public int getAvailableHeight()
    • getAvailableMinWidth

      public String getAvailableMinWidth()
    • getAvailableMinHeight

      public String getAvailableMinHeight()
    • getAvailableXRatio

      public String getAvailableXRatio()
    • getAvailableYRatio

      public String getAvailableYRatio()
    • setFd

      public void setFd(String id)
    • setTitle

      public void setTitle(String title)
    • setRotate

      public void setRotate(String rotate)
    • setX1

      public void setX1(String x1)
    • setY1

      public void setY1(String y1)
    • setX2

      public void setX2(String x2)
    • setY2

      public void setY2(String y2)
    • setWidth

      public void setWidth(String width)
    • setHeight

      public void setHeight(String height)
    • setMinWidth

      public void setMinWidth(String minWidth)
    • setMinHeight

      public void setMinHeight(String minHeight)
    • setxRatio

      public void setxRatio(String xRatio)
    • setyRatio

      public void setyRatio(String yRatio)
    • setOpCropNew

      public void setOpCropNew(String opCropNew)
    • setOpCropReplace

      public void setOpCropReplace(String opCropReplace)