com.aspose.slides
Class GradientStopExCollection

java.lang.Object
  extended by com.aspose.slides.GradientStopsEx
      extended by com.aspose.slides.GradientStopExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<GradientStopEx>, com.aspose.ms.System.Collections.IEnumerable<GradientStopEx>, java.lang.Iterable<GradientStopEx>

public final class GradientStopExCollection
extends GradientStopsEx
implements com.aspose.ms.System.Collections.ICollection<GradientStopEx>

Represnts a collection of gradient stops.


Method Summary
 int add(float position, java.awt.Color color)
           
 int add(float position, int presetColor)
           Creates the new gradient stop and adds it to the end of collection.
 int add(float position, SchemeColorEx 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.
 GradientStopEx get_Item(int index)
           Returns the gradient stop by index.
 int getCount()
           Returns the number of gradient stops in a collection.
 PresentationEx getPresentation()
           Returns the parent presentation of a gradient stops collection.
 BaseSlideEx 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, SchemeColorEx 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.IEnumerator<GradientStopEx> iterator()
           Returns an enumerator for the entire collection.
 void removeAt(int index)
           Removes a gradient stop at the specified index.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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<GradientStopEx>
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<GradientStopEx>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

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

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<GradientStopEx>

getCount

public int getCount()
Description copied from class: GradientStopsEx

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

Overrides:
getCount in class GradientStopsEx

get_Item

public GradientStopEx get_Item(int index)
Description copied from class: GradientStopsEx

Returns the gradient stop by index.

Overrides:
get_Item in class GradientStopsEx

add

public int add(float position,
               java.awt.Color color)
Overrides:
add in class GradientStopsEx

add

public int add(float position,
               int presetColor)
Description copied from class: GradientStopsEx

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

Overrides:
add in class GradientStopsEx
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 int add(float position,
               SchemeColorEx schemeColor)
Description copied from class: GradientStopsEx

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

Overrides:
add in class GradientStopsEx
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)
Overrides:
insert in class GradientStopsEx

insert

public void insert(int index,
                   float position,
                   int presetColor)
Description copied from class: GradientStopsEx

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

Overrides:
insert in class GradientStopsEx
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,
                   SchemeColorEx schemeColor)
Description copied from class: GradientStopsEx

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

Overrides:
insert in class GradientStopsEx
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)
Description copied from class: GradientStopsEx

Removes a gradient stop at the specified index.

Overrides:
removeAt in class GradientStopsEx
Parameters:
index - Index of a gradient stop that should be deleted.

clear

public void clear()
Description copied from class: GradientStopsEx

Removes all gradient stops from a collection.

Overrides:
clear in class GradientStopsEx

iterator

public com.aspose.ms.System.Collections.IEnumerator<GradientStopEx> iterator()
Description copied from class: GradientStopsEx

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<GradientStopEx>
Specified by:
iterator in interface java.lang.Iterable<GradientStopEx>
Overrides:
iterator in class GradientStopsEx
Returns:
An IEnumerator for the entire collection.

getSlide

public BaseSlideEx getSlide()
Description copied from class: GradientStopsEx

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

Overrides:
getSlide in class GradientStopsEx

getPresentation

public PresentationEx getPresentation()
Description copied from class: GradientStopsEx

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

Overrides:
getPresentation in class GradientStopsEx