com.aspose.diagram
Class GradientStopCollection

java.lang.Object
  extended by Collection
      extended by com.aspose.diagram.GradientStopCollection
All Implemented Interfaces:
java.lang.Iterable

public class GradientStopCollection 
extends Collection

Represents the gradient stop collection.


Property Getters/Setters Summary
intgetCount()→ inherited from Collection
           Gets the number of elements actually contained in the collection.
GradientStopget(int)
voidset(int, GradientStop)
           Gets the gradient stop by the index.
 
Method Summary
voidadd(DoubleValue position, ColorValue color)
           Add a gradient stop.
voidclear()→ inherited from Collection
           Removes all elements from collection.
booleanisExist(int index)→ inherited from Collection
           Is exist item in the collection.
java.util.Iteratoriterator()→ inherited from Collection
           Supports a simple iteration over a nongeneric collection.
 

Property Getters/Setters Detail

getCount

→ inherited from Collection
public int getCount()
Gets the number of elements actually contained in the collection.

get/set

public GradientStop get(int index) / public void set(int index, GradientStop value)
Gets the gradient stop by the index.
Parameters:
index - The index.
Returns:
The gradient stop.

Method Detail

add

public void add(DoubleValue position, ColorValue color)
Add a gradient stop.
Parameters:
position - The position of the stop,in unit of percentage.
color - The color of the stop.
alpha - The alpha of the color.

iterator

→ inherited from Collection
public java.util.Iterator iterator()
Supports a simple iteration over a nongeneric collection.
Returns:

isExist

→ inherited from Collection
public boolean isExist(int index)
Is exist item in the collection.
Parameters:
index - index of element.
Returns:

clear

→ inherited from Collection
public void clear()
Removes all elements from collection.

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.