Package com.luciad.drawing
Class BackgroundStyle.Builder
java.lang.Object
com.luciad.drawing.BackgroundStyle.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
BackgroundStyle
A builder class for creating background styles.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackgroundColor
(android.graphics.Color color) Sets the background color.build()
Returns a newly created background style, based on the properties set on this builder.void
close()
protected void
finalize()
frameColor
(android.graphics.Color color) Sets the color of the frame that is painted.frameWidth
(double width) Sets the width of the frame that is painted.padding
(double padding) Sets the padding that is added around the content to determine the size of the background.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
build
Returns a newly created background style, based on the properties set on this builder.- Returns:
- a newly created background style.
-
padding
Sets the padding that is added around the content to determine the size of the background.This property is optional. By default, the padding is 2.
- Parameters:
padding
- the padding in device independent pixels.- Returns:
- this builder
-
backgroundColor
Sets the background color.This property is optional. The default is a semi-transparent white color.
- Parameters:
color
- the background color.- Returns:
- this builder.
-
frameWidth
Sets the width of the frame that is painted.If 0, no frame is painted.
This property is optional. By default, the frame width is 1.
- Parameters:
width
- the width of the frame in device independent pixels.- Returns:
- this builder
-
frameColor
Sets the color of the frame that is painted.This property is optional. By default, the frame color is black.
- Parameters:
color
- the frame color.- Returns:
- this builder.
-