com.aspose.slides.pptx
Class GradientStopsEx

java.lang.Object
  extended by com.aspose.slides.pptx.GradientStopsEx

public class GradientStopsEx
extends java.lang.Object

Represents a collection of gradient stops.


Method Summary
 int add(float position, java.awt.Color color)
          Creates a new gradient stop and adds it to the end of a collection.
 int add(float position, PresetColorEx presetColor)
          Creates a new gradient stop and adds it to the end of a collection.
 int add(float position, SchemeColorEx schemeColor)
          Creates a new gradient stop and adds it to the end of a collection.
 void clear()
          Removes all gradient stops from a collection.
 GradientStopEx get(int index)
          Returns the gradient stop by index.
 PresentationEx getPresentation()
          Returns the parent presentation of a gradient stops collection.
 BaseSlideEx getSlide()
          Returns the parent slide for a gradient stops collection.
 void insert(int index, float position, java.awt.Color color)
          Creates a new gradient stop and inserts it at the specified index to a collection.
 void insert(int index, float position, PresetColorEx presetColor)
          Creates a new gradient stop and inserts it at the specified index to a collection.
 void insert(int index, float position, SchemeColorEx schemeColor)
          Creates a new gradient stop and inserts it at the specified index to a collection.
 java.util.Iterator iterator()
          Returns an iterator for the entire collection.
 void remove(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.


get

public GradientStopEx get(int index)
Returns the gradient stop by index.

Parameters:
index - index of a gradient to return.
Returns:
See GradientStopEx.

add

public int add(float position,
               java.awt.Color color)
Creates a new gradient stop and adds it to the end of a collection.

Parameters:
position - Position of a new gradient stop.
color - Color of a new gradient stop.
Returns:
Index of a new gradient stop in a collection.

add

public int add(float position,
               PresetColorEx presetColor)
Creates a new gradient stop and adds it to the end of a collection.

Parameters:
position - Position of a new gradient stop.
presetColor - Color of a new gradient stop.
Returns:
Index of a new gradient stop in a collection.

add

public int add(float position,
               SchemeColorEx schemeColor)
Creates a new gradient stop and adds it to the end of a collection.

Parameters:
position - Position of a new gradient stop.
schemeColor - Color of a new gradient stop.
Returns:
Index of a new gradient stop in a collection.

insert

public void insert(int index,
                   float position,
                   java.awt.Color color)
Creates a new gradient stop and inserts it at the specified index to a collection.

Parameters:
index - Index in a collection where a new gradient stop will be inserted.
position - Position of a new gradient stop.
color - Color of a new gradient stop.

insert

public void insert(int index,
                   float position,
                   PresetColorEx presetColor)
Creates a new gradient stop and inserts it at the specified index to a collection.

Parameters:
index - Index in a collection where a new gradient stop will be inserted.
position - Position of a new gradient stop.
presetColor - Color of a new gradient stop.

insert

public void insert(int index,
                   float position,
                   SchemeColorEx schemeColor)
Creates a new gradient stop and inserts it at the specified index to a collection.

Parameters:
index - Index in a collection where a new gradient stop will be inserted.
position - Position of a new gradient stop.
schemeColor - Color of a new gradient stop.

remove

public void remove(int index)
Removes a gradient stop at the specified index.

Parameters:
index - index of a gradient stop to remove.

clear

public void clear()
Removes all gradient stops from a collection.


iterator

public java.util.Iterator iterator()
Returns an iterator for the entire collection.


getSlide

public BaseSlideEx getSlide()
Returns the parent slide for a gradient stops collection.


getPresentation

public PresentationEx getPresentation()
Returns the parent presentation of a gradient stops collection.