com.aspose.slides
Class GradientStopCollection

java.lang.Object
  extended by com.aspose.slides.GradientStopCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IGradientStop>, com.aspose.ms.System.Collections.ICollection<IGradientStop>, com.aspose.ms.System.Collections.IEnumerable<IGradientStop>, IGradientStopCollection, IPresentationComponent, ISlideComponent, java.lang.Iterable<IGradientStop>

public final class GradientStopCollection
extends java.lang.Object
implements IGradientStopCollection

Represnts a collection of gradient stops.


Method Summary
 IGradientStop add(float position, java.awt.Color color)
           
 IGradientStop add(float position, int presetColor)
           Creates the new gradient stop and adds it to the end of collection.
 IGradientStop add(float position, SchemeColor schemeColor)
           Creates the new gradient stop and adds it to the end of collection.
 void clear()
           Removes all gradient stops from a collection.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 IGradientStop get_Item(int index)
           Returns the gradient stop by index.
 IPresentation getPresentation()
           Returns the parent presentation of a gradient stops collection.
 IBaseSlide getSlide()
           Returns the parent slide for a gradient stops collection.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 void insert(int index, float position, java.awt.Color color)
           
 void insert(int index, float position, int presetColor)
           Creates the new gradient stop and inserts it at the specified index to the collection.
 void insert(int index, float position, SchemeColor schemeColor)
           Creates the new gradient stop and inserts it at the specified index to the collection.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IGradientStop> iterator()
           Returns an enumerator that iterates through the collection.
 void removeAt(int index)
           Removes a gradient stop at the specified index.
 int size()
           Returns the number of gradient stops in a collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()

Returns the number of gradient stops in a collection. Read-only int.

Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>

get_Item

public IGradientStop get_Item(int index)

Returns the gradient stop by index.

Specified by:
get_Item in interface IGradientStopCollection

add

public IGradientStop add(float position,
                         java.awt.Color color)
Specified by:
add in interface IGradientStopCollection

add

public IGradientStop add(float position,
                         int presetColor)

Creates the new gradient stop and adds it to the end of collection.

Specified by:
add in interface IGradientStopCollection
Parameters:
position - Position of the new gradient stop.
presetColor - Color of the new radient stop.
Returns:
Index of the new gradient stop in the collection.

add

public IGradientStop add(float position,
                         SchemeColor schemeColor)

Creates the new gradient stop and adds it to the end of collection.

Specified by:
add in interface IGradientStopCollection
Parameters:
position - Position of the new gradient stop.
schemeColor - Color of the new radient stop.
Returns:
Index of the new gradient stop in the collection.

insert

public void insert(int index,
                   float position,
                   java.awt.Color color)
Specified by:
insert in interface IGradientStopCollection

insert

public void insert(int index,
                   float position,
                   int presetColor)

Creates the new gradient stop and inserts it at the specified index to the collection.

Specified by:
insert in interface IGradientStopCollection
Parameters:
index - Index in the collection where new gradient stop will be inserted.
position - Position of the new gradient stop.
presetColor - Color of the new radient stop.

insert

public void insert(int index,
                   float position,
                   SchemeColor schemeColor)

Creates the new gradient stop and inserts it at the specified index to the collection.

Specified by:
insert in interface IGradientStopCollection
Parameters:
index - Index in the collection where new gradient stop will be inserted.
position - Position of the new gradient stop.
schemeColor - Color of the new radient stop.

removeAt

public void removeAt(int index)

Removes a gradient stop at the specified index.

Specified by:
removeAt in interface IGradientStopCollection
Parameters:
index - Index of a gradient stop that should be deleted.

clear

public void clear()

Removes all gradient stops from a collection.

Specified by:
clear in interface IGradientStopCollection

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IGradientStop> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IGradientStop>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<IGradientStop>
Specified by:
iterator in interface java.lang.Iterable<IGradientStop>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

getSlide

public IBaseSlide getSlide()

Returns the parent slide for a gradient stops collection. Read-only BaseSlide.

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

Returns the parent presentation of a gradient stops collection. Read-only Presentation.

Specified by:
getPresentation in interface IPresentationComponent

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe).

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>