Interface IGradientStops
- All Superinterfaces:
Iterable<IGradientStop>
Represents a collection of
IGradientStop objects.-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int index) Removes a gradient stop.get(int index) Gets theIGradientStopobject from theIGradientStopscollection.intgetCount()Gets the number of items in theIGradientStopscollection.voidinsert(int rgb, double position) Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.voidinsert(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.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getCount
int getCount()Gets the number of items in theIGradientStopscollection. -
get
Gets theIGradientStopobject from theIGradientStopscollection.- Parameters:
index- The name or index number of the returned object.
-
delete
void delete(int index) Removes a gradient stop.- Parameters:
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.- Parameters:
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.- Parameters:
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.
-