public class

BalloonPopupButtonStyle

extends Style
java.lang.Object
   ↳ com.carto.styles.Style
     ↳ com.carto.styles.BalloonPopupButtonStyle

Class Overview

A style for balloon popup buttons. Contains attributes for configuring how the balloon popup is drawn on the screen.

Summary

Public Methods
synchronized void delete()
Color getBackgroundColor()
Returns the background color of the button.
int getButtonWidth()
Returns the width of the button.
int getCornerRadius()
Returns the corner radius of the button.
Color getStrokeColor()
Returns the color of the stroke surrounding the button.
int getStrokeWidth()
Returns the width of the stroke surrounding the button.
Color getTextColor()
Returns the color of the text.
String getTextFontName()
Returns the name of the text font.
int getTextFontSize()
Returns the size of the text font.
BalloonPopupMargins getTextMargins()
Returns the margins of the text.
[Expand]
Inherited Methods
From class com.carto.styles.Style
From class java.lang.Object

Public Methods

public synchronized void delete ()

public Color getBackgroundColor ()

Returns the background color of the button.

Returns
  • The background color of the button.

public int getButtonWidth ()

Returns the width of the button.
If this value is -1, then button width is calculated automatically based on button text.

Returns
  • The width of the button in dp.

public int getCornerRadius ()

Returns the corner radius of the button.

Returns
  • The corner radius of the button.

public Color getStrokeColor ()

Returns the color of the stroke surrounding the button.

Returns
  • The color of the stroke surrounding the button.

public int getStrokeWidth ()

Returns the width of the stroke surrounding the button.

Returns
  • The width of the stroke surrounding the button in dp.

public Color getTextColor ()

Returns the color of the text.

Returns
  • The color of the text.

public String getTextFontName ()

Returns the name of the text font.

Returns
  • The name of the text font.

public int getTextFontSize ()

Returns the size of the text font.

Returns
  • The size of the text font.

public BalloonPopupMargins getTextMargins ()

Returns the margins of the text.

Returns
  • The margins of the text.