Class MaskPosition
- java.lang.Object
-
- io.micronaut.chatbots.telegram.api.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 Summary
Constructors Constructor Description MaskPosition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaskPositionPoint
getPoint()
java.lang.Float
getScale()
java.lang.Float
getXshift()
java.lang.Float
getYshift()
void
setPoint(MaskPositionPoint point)
void
setScale(java.lang.Float scale)
void
setXshift(java.lang.Float xshift)
void
setYshift(java.lang.Float yshift)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-