Class that is the shadow of an item.
More...
|
void | setRadius (int value) |
| Setting the specified blur radius of the shadow. More...
|
|
int | getRadius () |
| Getting the shadow blur raduis. More...
|
|
void | setXOffset (int value) |
| Setting X shift of the shadow. More...
|
|
int | getXOffset () |
| Getting X shift of the shadow. More...
|
|
void | setYOffset (int value) |
| Setting Y shift of the shadow. More...
|
|
int | getYOffset () |
| Setting Y shift of the shadow. More...
|
|
void | setColor (Color color) |
| Setting shadow color. More...
|
|
void | setColor (int r, int g, int b) |
| Setting shadow color in RGB format. More...
|
|
void | setColor (int r, int g, int b, int a) |
| Setting shadow color in byte RGBA format. More...
|
|
void | setColor (float r, float g, float b) |
| Setting shadow color in float RGB format. More...
|
|
void | setColor (float r, float g, float b, float a) |
| Setting shadow color in float RGBA format. More...
|
|
Color | getColor () |
| Getting shadow color. More...
|
|
void | setDrop (boolean value) |
| Setting drop shadow flag. More...
|
|
boolean | isDrop () |
| Getting shadow drop flag. More...
|
|
| Shadow () |
| Default Shadow class constructor. More...
|
|
| Shadow (int radius, int x, int y, Color color) |
| Shadow class constructor with specified blur radius, axis shifts, shadow color. More...
|
|
Class that is the shadow of an item.
◆ Shadow() [1/2]
com.spvessel.spacevil.Decorations.Shadow.Shadow |
( |
| ) |
|
Default Shadow class constructor.
Allow shadow dropping.
◆ Shadow() [2/2]
com.spvessel.spacevil.Decorations.Shadow.Shadow |
( |
int |
radius, |
|
|
int |
x, |
|
|
int |
y, |
|
|
Color |
color |
|
) |
| |
Shadow class constructor with specified blur radius, axis shifts, shadow color.
Allow shadow dropping.
- Parameters
-
radius | A blur radius of the shadow. |
x | X shift of the shadow. |
y | Y shift of the shadow. |
color | A shadow color as java.awt.Color. |
◆ getColor()
Color com.spvessel.spacevil.Decorations.Shadow.getColor |
( |
| ) |
|
Getting shadow color.
- Returns
- Returns the shadow color as java.awt.Color.
◆ getRadius()
int com.spvessel.spacevil.Decorations.Shadow.getRadius |
( |
| ) |
|
Getting the shadow blur raduis.
- Returns
- The blur radius of the shadow. Min value: 0. Max value: 10.
◆ getXOffset()
int com.spvessel.spacevil.Decorations.Shadow.getXOffset |
( |
| ) |
|
Getting X shift of the shadow.
- Returns
- Shift by X-axis.
◆ getYOffset()
int com.spvessel.spacevil.Decorations.Shadow.getYOffset |
( |
| ) |
|
Setting Y shift of the shadow.
- Returns
- Shift by Y-axis.
◆ isDrop()
boolean com.spvessel.spacevil.Decorations.Shadow.isDrop |
( |
| ) |
|
Getting shadow drop flag.
- Returns
- True: allow shadow dropping. False: not allow shadow dropping.
◆ setColor() [1/5]
void com.spvessel.spacevil.Decorations.Shadow.setColor |
( |
Color |
color | ) |
|
Setting shadow color.
- Parameters
-
color | Shadow color as java.awt.Color. |
◆ setColor() [2/5]
void com.spvessel.spacevil.Decorations.Shadow.setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
Setting shadow color in float RGB format.
- Parameters
-
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
◆ setColor() [3/5]
void com.spvessel.spacevil.Decorations.Shadow.setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
Setting shadow color in float RGBA format.
- Parameters
-
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
a | Alpha color component. Range: (0.0f - 1.0f) |
◆ setColor() [4/5]
void com.spvessel.spacevil.Decorations.Shadow.setColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b |
|
) |
| |
Setting shadow color in RGB format.
- Parameters
-
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
◆ setColor() [5/5]
void com.spvessel.spacevil.Decorations.Shadow.setColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
Setting shadow color in byte RGBA format.
- Parameters
-
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
a | Alpha color component. Range: (0 - 255) |
◆ setDrop()
void com.spvessel.spacevil.Decorations.Shadow.setDrop |
( |
boolean |
value | ) |
|
Setting drop shadow flag.
- Parameters
-
value | True: allow shadow dropping. False: not allow shadow dropping. |
◆ setRadius()
void com.spvessel.spacevil.Decorations.Shadow.setRadius |
( |
int |
value | ) |
|
Setting the specified blur radius of the shadow.
Default: 0.
- Parameters
-
value | Blur radius of the shadow. Min value: 0. Max value: 10. |
◆ setXOffset()
void com.spvessel.spacevil.Decorations.Shadow.setXOffset |
( |
int |
value | ) |
|
Setting X shift of the shadow.
- Parameters
-
◆ setYOffset()
void com.spvessel.spacevil.Decorations.Shadow.setYOffset |
( |
int |
value | ) |
|
Setting Y shift of the shadow.
- Parameters
-
The documentation for this class was generated from the following file: