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 classA builder class for creating background styles. -
Method Summary
Modifier and TypeMethodDescriptionReturns aBackgroundStylebuilder that has all properties of thisBackgroundStyle.voidclose()protected voidfinalize()android.graphics.ColorReturns the background color.android.graphics.ColorReturns the frame color.doubleReturns the frame width in device independent pixels.doubleReturns the padding around the content in device independent pixels.static BackgroundStyle.BuilderReturns a new builder for creating aBackgroundStyle.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein 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 aBackgroundStylebuilder that has all properties of thisBackgroundStyle.- Returns:
- a
BackgroundStylebuilder that has all properties of thisBackgroundStyle.
-