Class EditImageHandler

    • Field Detail

      • 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 java.lang.String title
      • minWidth

        protected java.lang.String minWidth
      • minHeight

        protected java.lang.String minHeight
      • xRatio

        protected java.lang.String xRatio
      • yRatio

        protected java.lang.String yRatio
      • op

        protected boolean op
      • opCropNew

        protected boolean opCropNew
      • opCropReplace

        protected boolean opCropReplace
    • Constructor Detail

      • EditImageHandler

        public EditImageHandler()
    • Method Detail

      • processAction

        public boolean processAction()
                              throws java.io.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:
        java.io.IOException - IO Exception
      • transform

        public java.io.File transform​(java.io.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 java.lang.String getCropCSS()
      • getAvailableRotate

        public int getAvailableRotate()
      • getAvailableTitle

        public java.lang.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 java.lang.String getAvailableMinWidth()
      • getAvailableMinHeight

        public java.lang.String getAvailableMinHeight()
      • getAvailableXRatio

        public java.lang.String getAvailableXRatio()
      • getAvailableYRatio

        public java.lang.String getAvailableYRatio()
      • setFd

        public void setFd​(java.lang.String id)
      • setTitle

        public void setTitle​(java.lang.String title)
      • setRotate

        public void setRotate​(java.lang.String rotate)
      • setX1

        public void setX1​(java.lang.String x1)
      • setY1

        public void setY1​(java.lang.String y1)
      • setX2

        public void setX2​(java.lang.String x2)
      • setY2

        public void setY2​(java.lang.String y2)
      • setWidth

        public void setWidth​(java.lang.String width)
      • setHeight

        public void setHeight​(java.lang.String height)
      • setMinWidth

        public void setMinWidth​(java.lang.String minWidth)
      • setMinHeight

        public void setMinHeight​(java.lang.String minHeight)
      • setxRatio

        public void setxRatio​(java.lang.String xRatio)
      • setyRatio

        public void setyRatio​(java.lang.String yRatio)
      • setOpCropNew

        public void setOpCropNew​(java.lang.String opCropNew)
      • setOpCropReplace

        public void setOpCropReplace​(java.lang.String opCropReplace)