Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class Trendlines

java.lang.Object
  extended by com.aspose.cells.Trendlines

public class Trendlines
extends java.lang.Object

Represents a collection of all the Trendline objects for the specified data series.


Method Summary
 int addTrendline(int trendlineType)
          Adds a object to this collection with specified type.
 int addTrendline(int trendlineType, java.lang.String name)
          Adds a object to this collection with specified type and name.
 void delete(int index)
          Removes Trendline object by index.
 Trendline get(int index)
          Gets Trendline object by index.
 int size()
          Gets the size of this collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addTrendline

public int addTrendline(int trendlineType)
Adds a object to this collection with specified type.

Parameters:
trendlineType - Trendline type. It could be one of the following values:
TrendlineType.LINEAR
TrendlineType.EXPONENTIAL
TrendlineType.LOGARITHMIC
TrendlineType.MOVING_AVERAGE
TrendlineType.POLYNOMIAL
TrendlineType.POWER
Returns:
Trendline object index.
Throws:
CellsException - if series has bean removed.

addTrendline

public int addTrendline(int trendlineType,
                        java.lang.String name)
Adds a object to this collection with specified type and name.

Parameters:
trendlineType - Trendline type.
name - Trendline name.
Returns:
Trendline object index.
Throws:
CellsException - if series has bean removed.
See Also:
addTrendline(int)

get

public Trendline get(int index)
Gets Trendline object by index.

Parameters:
index - Trendline object index.
Returns:
Trendline object
Throws:
java.lang.IllegalArgumentException - if index is out of range.

delete

public void delete(int index)
Removes Trendline object by index.

Parameters:
index - Trendline object index.
Throws:
java.lang.IllegalArgumentException - if index is out of range.
CellsException - if series has bean removed.

size

public int size()
Gets the size of this collection.

Returns:
the size of this collection.