com.aspose.slides
Class StringChartValue

java.lang.Object
  extended by com.aspose.slides.BaseChartValue
      extended by com.aspose.slides.StringChartValue
All Implemented Interfaces:
IBaseChartValue, IMultipleCellChartValue, IStringChartValue

public class StringChartValue
extends BaseChartValue
implements IStringChartValue

Represent string value which can be stored in pptx presentation document in two ways: 1) in cell/cells of workbook related to chart; 2) as literal value.


Method Summary
 IChartCellCollection getAsCells()
          
 java.lang.String getAsLiteralString()
           
 java.lang.String getCellsAddressInWorkbook()
           If DataSourceType property is DataSourceType.Worksheet then this method returns address of the cells in workbook which represent the string data.
 java.lang.Object getData()
           
 void setAsCells(IChartCellCollection value)
           
 void setAsLiteralString(java.lang.String value)
           
 void setData(java.lang.Object value)
           
 void setFromOneCell(IChartDataCell cell)
           
 java.lang.String toString()
           Returns string value data.
 
Methods inherited from class com.aspose.slides.BaseChartValue
getDataSourceType, setDataSourceType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.aspose.slides.IBaseChartValue
getDataSourceType, setDataSourceType
 

Method Detail

getAsCells

public IChartCellCollection getAsCells()


Null value assigning is not allowed. Returning value always is not null.

Specified by:
getAsCells in interface IMultipleCellChartValue

setAsCells

public void setAsCells(IChartCellCollection value)
Specified by:
setAsCells in interface IMultipleCellChartValue

getAsLiteralString

public java.lang.String getAsLiteralString()
Specified by:
getAsLiteralString in interface IStringChartValue

setAsLiteralString

public void setAsLiteralString(java.lang.String value)
Specified by:
setAsLiteralString in interface IStringChartValue

getData

public java.lang.Object getData()
Specified by:
getData in interface IBaseChartValue
Specified by:
getData in class BaseChartValue

setData

public void setData(java.lang.Object value)
Specified by:
setData in interface IBaseChartValue
Specified by:
setData in class BaseChartValue

toString

public java.lang.String toString()

Returns string value data. Return null if DataSourceType is false and no string value was assigned.

Specified by:
toString in interface IStringChartValue
Overrides:
toString in class java.lang.Object

setFromOneCell

public void setFromOneCell(IChartDataCell cell)
Specified by:
setFromOneCell in interface IStringChartValue

getCellsAddressInWorkbook

public java.lang.String getCellsAddressInWorkbook()

If DataSourceType property is DataSourceType.Worksheet then this method returns address of the cells in workbook which represent the string data. Otherwise return empty string.

Specified by:
getCellsAddressInWorkbook in interface IStringChartValue