| Package | Description |
|---|---|
| com.codename1.ui.plaf |
Look of the application can be fully customized via this package, it represents
a rendering layer that can be plugged in separately in runtime and themed to
provide any custom look.
|
| Modifier and Type | Method and Description |
|---|---|
RoundBorder |
RoundBorder.color(int color)
Sets the background color of the circle/rectangle
|
static RoundBorder |
RoundBorder.create()
Creates a flat round border with no stroke and no shadow and the default color, this call can
be chained with the other calls to mutate the color/opacity etc.
|
RoundBorder |
RoundBorder.onlyLeftRounded(boolean onlyLeftRounded)
Forces a special case of the rectangle mode that renders the right side as
square.
|
RoundBorder |
RoundBorder.onlyRightRounded(boolean onlyRightRounded)
Forces a special case of the rectangle mode that renders the left side as
square.
|
RoundBorder |
RoundBorder.opacity(int opacity)
Sets the background opacity of the circle/rectangle
|
RoundBorder |
RoundBorder.rectangle(boolean rectangle)
When set to true this border grows into a rectangle when the space isn't perfectly circular
|
RoundBorder |
RoundBorder.shadowBlur(float shadowBlur)
The blur on the shadow this is the standard Gaussian blur radius
|
RoundBorder |
RoundBorder.shadowOpacity(int shadowOpacity)
Sets the opacity of the shadow from 0 - 255 where 0 means no shadow and 255 means opaque black shadow
|
RoundBorder |
RoundBorder.shadowSpread(int shadowSpread)
Sets the spread in pixels of the shadow i.e how much bigger is it than the actual circle/rectangle
|
RoundBorder |
RoundBorder.shadowSpread(int shadowSpread,
boolean mm)
Sets the spread in pixels of the shadow i.e how much bigger is it than the actual circle/rectangle
|
RoundBorder |
RoundBorder.shadowX(float shadowX)
The position of the shadow on the X axis where 0.5f means the center and higher values draw it to the right side
|
RoundBorder |
RoundBorder.shadowY(float shadowY)
The position of the shadow on the Y axis where 0.5f means the center and higher values draw it to the bottom
|
RoundBorder |
RoundBorder.stroke(float stroke,
boolean mm)
Sets the stroke of the circle/rectangle
|
RoundBorder |
RoundBorder.stroke(Stroke stroke)
Sets the stroke of the circle/rectangle
|
RoundBorder |
RoundBorder.strokeAngle(int strokeAngle)
Sets the stroke angle of the circle, this only applies to circular versions
|
RoundBorder |
RoundBorder.strokeColor(int strokeColor)
Sets the stroke color of the circle/rectangle
|
RoundBorder |
RoundBorder.strokeOpacity(int strokeOpacity)
Sets the opacity of the stroke line around the circle/rectangle
|
RoundBorder |
RoundBorder.uiid(boolean uiid)
Uses the style of the components UIID to draw the background of the border, this effectively overrides all
other style settings but allows the full power of UIID drawing including gradients, background images
etc.
|
Copyright © 2023. All rights reserved.