接口 IGradientStops
- 所有超级接口:
Iterable<IGradientStop>
Represents a collection of
IGradientStop
objects.-
方法概要
修饰符和类型方法说明void
delete
(int index) Removes a gradient stop.get
(int index) Gets theIGradientStop
object from theIGradientStops
collection.int
getCount()
Gets the number of items in theIGradientStops
collection.void
insert
(int rgb, double position) Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.void
insert
(int rgb, double position, double transparency, int index, double brightness) Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
方法详细资料
-
getCount
int getCount()Gets the number of items in theIGradientStops
collection. -
get
Gets theIGradientStop
object from theIGradientStops
collection.- 参数:
index
- The name or index number of the returned object.
-
delete
void delete(int index) Removes a gradient stop.- 参数:
index
- The index number of the gradient stop.
-
insert
void insert(int rgb, double position) Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.- 参数:
rgb
- Specifies the color at the gradient stop.position
- Specifies the position of the stop within the gradient expressedas a percent.
-
insert
void insert(int rgb, double position, double transparency, int index, double brightness) Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.- 参数:
rgb
- Specifies the color at the gradient stop.position
- Specifies the position of the stop within the gradient expressedas a percent.transparency
- Specifies the opacity of color at the gradient stop.index
- The index number of the stop.brightness
- Specifies the brightness of the color at the gradient stop.
-