Class MaskPosition
- java.lang.Object
-
- io.micronaut.chatbots.telegram.api.MaskPosition
-
public class MaskPosition extends java.lang.ObjectThis 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 MaskPositionPointgetPoint()java.lang.FloatgetScale()java.lang.FloatgetXshift()java.lang.FloatgetYshift()voidsetPoint(MaskPositionPoint point)voidsetScale(java.lang.Float scale)voidsetXshift(java.lang.Float xshift)voidsetYshift(java.lang.Float yshift)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-