public class Shadow extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
int |
alpha
Specifies shadow transparency (0-100)
|
Enums.Angle |
angle
Specifies shadow alignment.
|
double |
blur
Specifies the radius of the blur (0-100)
|
Color |
color
Specifies shadow color
|
int |
direction
Specifies the direction to offset the shadow (0-360)
|
double |
dist
Specifies how far to offset the shadow (0-200)
|
double |
kx
Specifies the horizontal skew angle (0-360)
|
double |
ky
Specifies the vertical skew angle (0-360)
|
int |
rotWithShape
Specifies whether the shadow rotates with the shape if the shape is rotated
|
double |
size
Specifies shadow size (1-200)
The effect of
size is equivalent to sx+sy,
for example, size=100 is equivalent to sx=100 and sy=100
NOTE: sx and sy have higher priority than size |
double |
sx
Specifies the horizontal scaling factor (as a percentage).
|
double |
sy
Specifies the vertical scaling factor (as a percentage).
|
| 构造器和说明 |
|---|
Shadow() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getAlpha() |
Enums.Angle |
getAngle() |
double |
getBlur() |
Color |
getColor() |
int |
getDirection() |
double |
getDist() |
double |
getKx() |
double |
getKy() |
int |
getRotWithShape() |
double |
getSize() |
double |
getSx() |
double |
getSy() |
Shadow |
setAlpha(int alpha) |
Shadow |
setAngle(Enums.Angle angle) |
Shadow |
setBlur(double blur) |
Shadow |
setColor(Color color) |
Shadow |
setDirection(int direction) |
Shadow |
setDist(double dist) |
Shadow |
setKx(double kx) |
Shadow |
setKy(double ky) |
Shadow |
setRotWithShape(int rotWithShape) |
Shadow |
setSize(double size) |
Shadow |
setSx(double sx) |
Shadow |
setSy(double sy) |
public Color color
public int alpha
public double size
size is equivalent to sx+sy,
for example, size=100 is equivalent to sx=100 and sy=100
NOTE: sx and sy have higher priority than sizepublic double blur
public Enums.Angle angle
public int direction
public double dist
public double kx
public double ky
public int rotWithShape
public double sx
public double sy
public Color getColor()
public int getAlpha()
public Shadow setAlpha(int alpha)
public double getSize()
public Shadow setSize(double size)
public double getBlur()
public Shadow setBlur(double blur)
public Enums.Angle getAngle()
public Shadow setAngle(Enums.Angle angle)
public int getDirection()
public Shadow setDirection(int direction)
public double getDist()
public Shadow setDist(double dist)
public double getKx()
public Shadow setKx(double kx)
public double getKy()
public Shadow setKy(double ky)
public int getRotWithShape()
public Shadow setRotWithShape(int rotWithShape)
public double getSx()
public Shadow setSx(double sx)
public double getSy()
public Shadow setSy(double sy)
Copyright © 2025. All rights reserved.