Class CutoutConfig


  • public class CutoutConfig
    extends java.lang.Object
    • Field Detail

      • ATT_RATIO_FROM_SIZE

        public static final java.lang.String ATT_RATIO_FROM_SIZE
        See Also:
        Constant Field Values
      • ATT_STROKE_WIDTH

        public static final java.lang.String ATT_STROKE_WIDTH
        See Also:
        Constant Field Values
      • ATT_STROKE_COLOR

        public static final java.lang.String ATT_STROKE_COLOR
        See Also:
        Constant Field Values
      • ATT_CORNER_RADIUS

        public static final java.lang.String ATT_CORNER_RADIUS
        See Also:
        Constant Field Values
      • ATT_FEEDBACK_STROKE_COLOR

        public static final java.lang.String ATT_FEEDBACK_STROKE_COLOR
        See Also:
        Constant Field Values
      • ATT_MAX_WIDTH_PERCENT

        public static final java.lang.String ATT_MAX_WIDTH_PERCENT
        See Also:
        Constant Field Values
      • ATT_MAX_HEIGHT_PERCENT

        public static final java.lang.String ATT_MAX_HEIGHT_PERCENT
        See Also:
        Constant Field Values
      • ATT_CROP_PADDING

        public static final java.lang.String ATT_CROP_PADDING
        See Also:
        Constant Field Values
      • ATT_ANIMATION_NONE

        public static final java.lang.String ATT_ANIMATION_NONE
        See Also:
        Constant Field Values
      • ATT_ANIMATION_FADE

        public static final java.lang.String ATT_ANIMATION_FADE
        See Also:
        Constant Field Values
      • ATT_ANIMATION_ZOOM

        public static final java.lang.String ATT_ANIMATION_ZOOM
        See Also:
        Constant Field Values
      • width

        public int width
      • ratioFromSize

        public android.util.Size ratioFromSize
      • strokeWidth

        public int strokeWidth
      • strokeColor

        public java.lang.String strokeColor
      • cornerRadius

        public int cornerRadius
      • outerColor

        public java.lang.String outerColor
      • alphaFactor

        public double alphaFactor
      • feedbackStrokeColor

        public java.lang.String feedbackStrokeColor
      • image

        public java.lang.String image
      • maxWidthPercent

        public int maxWidthPercent
      • maxHeightPercent

        public int maxHeightPercent
      • offset

        public android.graphics.Point offset
      • cropPadding

        public android.graphics.Point cropPadding
      • cropOffset

        public android.graphics.Point cropOffset
    • Constructor Detail

      • CutoutConfig

        public CutoutConfig()
      • CutoutConfig

        public CutoutConfig​(org.json.JSONObject jsonObject)
                     throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getCutoutAlignment

        public java.lang.String getCutoutAlignment()
      • getCutoutAlignment

        public static CutoutConfig.CutoutAlignment getCutoutAlignment​(java.lang.String alignment)
                                                               throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • getAnimationStyle

        public java.lang.String getAnimationStyle()
      • getAnimationStyle

        public static CutoutConfig.AnimationStyle getAnimationStyle​(java.lang.String style)
                                                             throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • provideFullFrameCutoutConfig

        public static CutoutConfig provideFullFrameCutoutConfig()
      • isRatioFromSizeDefined

        public boolean isRatioFromSizeDefined()
      • getRatio

        public float getRatio()
      • getFeedbackStrokeColor

        public int getFeedbackStrokeColor()
      • getOuterColor

        public int getOuterColor()
      • getOuterColorWithAlpha

        public java.lang.String getOuterColorWithAlpha()
      • getCornerRadiusInPix

        public int getCornerRadiusInPix​(android.content.Context context)
      • getCutoutStrokeWidthInPix

        public int getCutoutStrokeWidthInPix​(android.content.Context context)