Class MaskPosition

java.lang.Object
io.micronaut.chatbots.telegram.api.MaskPosition

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

    • MaskPosition

      public MaskPosition()
  • Method Details

    • getPoint

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

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

      @NonNull public @NonNull 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 @NonNull 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 @NonNull 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 @NonNull 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 @NonNull Float getScale()
      Returns:
      Mask scaling coefficient. For example, 2.0 means double size.
    • setScale

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

      public String toString()
      Overrides:
      toString in class Object