GradientStopCollection
概述
GradientStopCollection 是一个类在Java的FOSS中. 继承人: IGradientStopCollection, Iterable<IGradientStop>.
代表一个梯度停止的集合.
本类提供了14种方法,用于在Java程序中使用GradientStopCollection 对象. 有的方法包括: GradientStopCollection, add, asICollection, asIEnumerable, clear, get, insert, iterator, removeAt, size. 所有公众成员在安装了Java的FOSS包后,可以访问任何 Java应用程序.
方法
| Signature | 描述情况 |
|---|---|
GradientStopCollection(gsLst: Element, saveCallback: Runnable) | 创建一个新的GradientStopCollection,由给定的 {@code <a:gsLst>} 元素支持. |
get(index: int) → IGradientStop | 返回指定的零基索引的梯度停止值. |
size() → int | 返回集合中的梯度停机数量 |
add(position: double, color: Color) → IGradientStop | 添加一个新的梯度停止与给定的位置和固体颜色,返回创建的停止 |
add(position: double, presetColor: PresetColor) → IGradientStop | |
add(position: double, schemeColor: SchemeColor) → IGradientStop | |
insert(index: int, position: double, color: Color) | 在指定索引中插入给定位置和颜色的梯度停止符号. |
insert(index: int, position: double, presetColor: PresetColor) | |
insert(index: int, position: double, schemeColor: SchemeColor) | |
removeAt(index: int) | 在指定索引上移除梯度停止 |
clear() | 从集合中删除所有梯度停止 |
asICollection() → List<IGradientStop> | 返回梯度停止作为列表 |
asIEnumerable() → Iterable<IGradientStop> | 返回渐变停止作为一个可代的 |
iterator() → Iterator<IGradientStop> | 返回一个在这个集合中停下梯度的代器. |