com.aspose.slides
Class ColorBlend

java.lang.Object
  extended by com.aspose.slides.ColorBlend

public class ColorBlend
extends java.lang.Object

Defines collections of colors and positions used for interpolating color blending in a multicolor gradient.


Constructor Summary
ColorBlend()
          Default constructor.
ColorBlend(java.util.List colors, java.util.List points)
          Creates ColorBlend with specified collections of colors and positions.
 
Method Summary
 java.awt.Color getColor(int i)
          Returns the gradient color by index.
 java.util.List getColors()
          Returns the collection of colors in a gradient.
 double getPoint(int i)
          Returns the position of a gradient color by index.
 java.util.List getPoints()
          Returns the collection of color positions in a gradient.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorBlend

public ColorBlend()
Default constructor.


ColorBlend

public ColorBlend(java.util.List colors,
                  java.util.List points)
Creates ColorBlend with specified collections of colors and positions.

Method Detail

getColor

public java.awt.Color getColor(int i)
Returns the gradient color by index.


getPoint

public double getPoint(int i)
Returns the position of a gradient color by index.


getColors

public java.util.List getColors()
Returns the collection of colors in a gradient.


getPoints

public java.util.List getPoints()
Returns the collection of color positions in a gradient.