Package com.massifmaps.styles
Class BalloonPopupButtonStyle
java.lang.Object
com.massifmaps.styles.Style
com.massifmaps.styles.BalloonPopupButtonStyle
A style for balloon popup buttons. Contains attributes for configuring how the balloon popup is drawn on the screen.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the background color of the button.intReturns the width of the button.
If this value is -1, then button width is calculated automatically based on button text.intReturns the corner radius of the button.Returns the color of the stroke surrounding the button.intReturns the width of the stroke surrounding the button.Returns the color of the text.Returns the name of the text font.intReturns the size of the text font.Returns the margins of the text.
-
Method Details
-
getBackgroundColor
Returns the background color of the button.- Returns:
- The background color of the button.
-
getButtonWidth
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.
-
getCornerRadius
public int getCornerRadius()Returns the corner radius of the button.- Returns:
- The corner radius of the button.
-
getTextColor
Returns the color of the text.- Returns:
- The color of the text.
-
getTextFontName
Returns the name of the text font.- Returns:
- The name of the text font.
-
getTextFontSize
public int getTextFontSize()Returns the size of the text font.- Returns:
- The size of the text font.
-
getTextMargins
Returns the margins of the text.- Returns:
- The margins of the text.
-
getStrokeColor
Returns the color of the stroke surrounding the button.- Returns:
- The color of the stroke surrounding the button.
-
getStrokeWidth
public int getStrokeWidth()Returns the width of the stroke surrounding the button.- Returns:
- The width of the stroke surrounding the button in dp.
-