public static final class TLcdBoxIcon.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TLcdBoxIcon |
build()
Creates a new box icon.
|
TLcdBoxIcon.Builder |
fillColor(Color aFillColor)
Sets the color that fills the background.
|
TLcdBoxIcon.Builder |
filled(boolean aFilled)
Sets whether to paint the content on a filled background.
|
TLcdBoxIcon.Builder |
frame(boolean aFramed)
Sets whether or not to surround the content with a frame.
|
TLcdBoxIcon.Builder |
frameColor(Color aFrameColor)
Sets the color of the frame.
|
TLcdBoxIcon.Builder |
frameLineWidth(int aLineWidth)
Sets the width of the border of the frame.
|
TLcdBoxIcon.Builder |
icon(ILcdIcon aIcon)
Sets the icon to draw a box around.
|
TLcdBoxIcon.Builder |
padding(int aPadding)
Sets the amount of padding around the text, in pixels.
|
public TLcdBoxIcon.Builder icon(ILcdIcon aIcon)
aIcon
- the icon to draw a box around. Never null.public TLcdBoxIcon.Builder frameColor(Color aFrameColor)
aFrameColor
- the new color to paint the frame, or null if no color should be setTLcdBoxIcon.getFrameColor()
public TLcdBoxIcon.Builder fillColor(Color aFillColor)
aFillColor
- the color to fill the background, if this behavior is enabled
TLcdBoxIcon.getFillColor()
,
filled(boolean)
public TLcdBoxIcon.Builder frame(boolean aFramed)
aFramed
- true to paint the content in a frame.TLcdBoxIcon.isFrame()
public TLcdBoxIcon.Builder frameLineWidth(int aLineWidth)
aLineWidth
- the width of the border of the frame, in pixelspublic TLcdBoxIcon.Builder filled(boolean aFilled)
aFilled
- true to paint content on a filled background.TLcdBoxIcon.isFilled()
,
fillColor(Color)
public TLcdBoxIcon.Builder padding(int aPadding)
aPadding
- the new padding size, in pixels. Must be >= 0
.TLcdBoxIcon.getPadding()
public TLcdBoxIcon build()
icon(com.luciad.gui.ILcdIcon)
content to be set.IllegalStateException
- If any of the mandatory properties has not been set.