public class FocalGradient extends Gradient
FocalGradient
must be declared in DefineShape4Tag
.
The value range is from -1.0 to 1.0, where -1.0 means the focal point is close to the left border of the radial gradient circle, 0.0 means that the focal point is in the center of the radial gradient circle, and 1.0 means that the focal point is close to the right border of the radial gradient circle.
IM_LINEAR_RGB_MODE, IM_NORMAL_RGB_MODE, SM_PAD_MODE, SM_REFLECT_MODE, SM_REPEAT_MODE
Constructor and Description |
---|
FocalGradient() |
Modifier and Type | Method and Description |
---|---|
float |
getFocalPoint()
Get focal point location.
|
void |
setFocalPoint(float focalPoint)
Set focal point location.
|
getGradientRecords, getInterpolationMode, getSpreadMode, setGradientRecords, setInterpolationMode, setSpreadMode, toString
Copyright © 2016 The Apache Software Foundation. All rights reserved.