Package com.luciad.drawing
Class BackgroundStyle
java.lang.Object
com.luciad.drawing.BackgroundStyle
- All Implemented Interfaces:
AutoCloseable
This class contains styling properties related to a background (for a label for example).
- Since:
- 2024.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A builder class for creating background styles. -
Method Summary
Modifier and TypeMethodDescriptionReturns aBackgroundStyle
builder that has all properties of thisBackgroundStyle
.void
close()
protected void
finalize()
android.graphics.Color
Returns the background color.android.graphics.Color
Returns the frame color.double
Returns the frame width in device independent pixels.double
Returns the padding around the content in device independent pixels.static BackgroundStyle.Builder
Returns a new builder for creating aBackgroundStyle
.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
newBuilder
Returns a new builder for creating aBackgroundStyle
.- Returns:
- a new builder for creating a
BackgroundStyle
.
-
getPadding
public double getPadding()Returns the padding around the content in device independent pixels.- Returns:
- the padding around the content in device independent pixels.
-
getBackgroundColor
@NotNull public android.graphics.Color getBackgroundColor()Returns the background color.- Returns:
- the background color.
-
getFrameWidth
public double getFrameWidth()Returns the frame width in device independent pixels.- Returns:
- the frame width in device independent pixels.
-
getFrameColor
@NotNull public android.graphics.Color getFrameColor()Returns the frame color.- Returns:
- the frame color.
-
asBuilder
Returns aBackgroundStyle
builder that has all properties of thisBackgroundStyle
.- Returns:
- a
BackgroundStyle
builder that has all properties of thisBackgroundStyle
.
-