Package com.winnovative_software
Class GradientColor
java.lang.Object
com.winnovative_software.GradientColor
Used to fill a shape
-
Constructor Summary
ConstructorsConstructorDescriptionGradientColor
(GradientDirection direction, RgbColor start, RgbColor end) Gradient constructor -
Method Summary
Modifier and TypeMethodDescriptionendColor()
Gets the gradient end colorGets the gradient directionvoid
setEndColor
(RgbColor endColor) Sets the gradient end colorvoid
setGradientDirection
(GradientDirection gradientDirection) Sets the gradient directionvoid
setStartColor
(RgbColor startColor) Sets The gradient start colorGets the gradient start color
-
Constructor Details
-
GradientColor
Gradient constructor- Parameters:
direction
- the gradient directionstart
- the start color of the gradientend
- the end color of the gradient
-
-
Method Details
-
startColor
Gets the gradient start color- Returns:
- the gradient start color
-
setStartColor
Sets The gradient start color- Parameters:
startColor
- the start color
-
endColor
Gets the gradient end color- Returns:
- the gradient end color
-
setEndColor
Sets the gradient end color- Parameters:
endColor
- the gradient end color to set
-
gradientDirection
Gets the gradient direction- Returns:
- the gradient direction
-
setGradientDirection
Sets the gradient direction- Parameters:
gradientDirection
- the gradient direction to set
-