Class MaskPosition


  • public class MaskPosition
    extends java.lang.Object
    This object describes the position on faces where a mask should be placed by default.
    See Also:
    Mask Position.
    • Constructor Detail

      • MaskPosition

        public MaskPosition()
    • Method Detail

      • getPoint

        @NonNull
        public MaskPositionPoint getPoint()
        Returns:
        The part of the face relative to which the mask should be placed.
      • setPoint

        public void setPoint​(@NonNull
                             MaskPositionPoint point)
        Parameters:
        point - The part of the face relative to which the mask should be placed.
      • getXshift

        @NonNull
        public java.lang.Float getXshift()
        Returns:
        Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
      • setXshift

        public void setXshift​(@NonNull
                              java.lang.Float xshift)
        Parameters:
        xshift - Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
      • getYshift

        @NonNull
        public java.lang.Float getYshift()
        Returns:
        Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.
      • setYshift

        public void setYshift​(@NonNull
                              java.lang.Float yshift)
        Parameters:
        yshift - Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.
      • getScale

        @NonNull
        public java.lang.Float getScale()
        Returns:
        Mask scaling coefficient. For example, 2.0 means double size.
      • setScale

        public void setScale​(@NonNull
                             java.lang.Float scale)
        Parameters:
        scale - Mask scaling coefficient. For example, 2.0 means double size.
      • toString

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