Reference for JVM version of SpaceVIL  0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
com.spvessel.spacevil.Decorations.Shadow Class Reference

Class that is the shadow of an item. More...

Public Member Functions

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...
 

Detailed Description

Class that is the shadow of an item.

Constructor & Destructor Documentation

◆ 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
radiusA blur radius of the shadow.
xX shift of the shadow.
yY shift of the shadow.
colorA shadow color as java.awt.Color.

Member Function Documentation

◆ 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
colorShadow 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
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue 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
rRed color component. Range: (0.0f - 1.0f)
gGreen color component. Range: (0.0f - 1.0f)
bBlue color component. Range: (0.0f - 1.0f)
aAlpha 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
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue 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
rRed color component. Range: (0 - 255)
gGreen color component. Range: (0 - 255)
bBlue color component. Range: (0 - 255)
aAlpha color component. Range: (0 - 255)

◆ setDrop()

void com.spvessel.spacevil.Decorations.Shadow.setDrop ( boolean  value)

Setting drop shadow flag.

Parameters
valueTrue: 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
valueBlur 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
valueShift by X-axis.

◆ setYOffset()

void com.spvessel.spacevil.Decorations.Shadow.setYOffset ( int  value)

Setting Y shift of the shadow.

Parameters
valueShift by Y-axis.

The documentation for this class was generated from the following file: