Class PictureCropData

java.lang.Object
de.espirit.firstspirit.access.store.mediastore.PictureCropData
All Implemented Interfaces:
Serializable

public class PictureCropData extends Object implements Serializable
Represents a cropped rectangle of a picture, picture resolution.
Since:
4.1.10
See Also:
  • Constructor Details

    • PictureCropData

      public PictureCropData()
  • Method Details

    • getFocus

      @Nullable public @Nullable FocusArea getFocus()
      Returns the focus area associated with this crop selection.
      Returns:
      The focus area this crop selection has been created with.
      Since:
      5.2.200705
    • setFocus

      public void setFocus(@Nullable @Nullable FocusArea focusArea)
      Configures the focus area associated with this crop selection.
      Parameters:
      focusArea - The focus area this crop selection has been created with.
      Since:
      5.2.200705
    • getSelection

      @Nullable public @Nullable Rectangle2D getSelection()
      The selection rectangle.
      Returns:
      the rectangle
      Since:
      4.1.10
      See Also:
    • setSelection

      public void setSelection(@Nullable @Nullable Rectangle2D selection)
      Sets the selection rectangle.
      Parameters:
      selection - the selection
      Since:
      4.1.10
      See Also:
    • getImageRotation

      public int getImageRotation()
      Gets image orientation in degree.
      Returns:
      the image rotation
      Since:
      4.1.10
    • setImageRotation

      public void setImageRotation(int imageRotation)
      Sets the image rotation in degree.

      possible values:

      0, 90, 180, 270, 360
      Parameters:
      imageRotation - the image rotation in degree
      Since:
      4.1.10
    • isImageFlipped

      public boolean isImageFlipped()
      Is the image flipped before stored.
      Returns:
      the boolean
      Since:
      4.1.10
    • setImageFlipped

      public void setImageFlipped(boolean imageFlipped)
      Sets/mark the image flipped.
      Parameters:
      imageFlipped - the image flipped
      Since:
      4.1.10