-
- All Implemented Interfaces:
public final class TextParamsIt's a data class that holds the parameters for a PopUpWindow text container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTextParams.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FloattextSizeprivate final StringdefaultTextprivate final IntegertextColorprivate final IntegertextWidthprivate final IntegertextHeight
-
Method Summary
Modifier and Type Method Description final FloatgetTextSize()final StringgetDefaultText()final IntegergetTextColor()final IntegergetTextWidth()final IntegergetTextHeight()-
-
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()
-
-
-
-