-
- All Implemented Interfaces:
public final class TextParams
It's a data class that holds the parameters for a PopUpWindow text container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TextParams.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Float
textSize
private final String
defaultText
private final Integer
textColor
private final Integer
textWidth
private final Integer
textHeight
-
Method Summary
Modifier and Type Method Description final Float
getTextSize()
final String
getDefaultText()
final Integer
getTextColor()
final Integer
getTextWidth()
final Integer
getTextHeight()
-
-
Constructor Detail
-
TextParams
TextParams(Float textSize, String defaultText, Integer textColor, Integer textWidth, Integer textHeight)
- Parameters:
textSize
-The value to apply the unit to. (Value is a scaled pixel.)
defaultText
-The text will be displayed for first-time auto-zoom debug info after enabling.
textColor
-A color value in the form 0xAARRGGBB. Do not pass a resource ID. To get a color value from a resource ID, call getColor.
textWidth
-the text container width
textHeight
-the text container height
-
-
Method Detail
-
getTextSize
final Float getTextSize()
-
getDefaultText
final String getDefaultText()
-
getTextColor
final Integer getTextColor()
-
getTextWidth
final Integer getTextWidth()
-
getTextHeight
final Integer getTextHeight()
-
-
-
-