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()
           Null value assigning is not allowed.
 java.lang.String getAsLiteralString()
           Returns or sets value as literal string.
 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()
          Read/write Object.
 void setAsCells(IChartCellCollection value)
           Null value assigning is not allowed.
 void setAsLiteralString(java.lang.String value)
           Returns or sets value as literal string.
 void setData(java.lang.Object value)
          Read/write Object.
 void setFromOneCell(IChartDataCell cell)
           
 java.lang.String toString()
           Returns string value data.
 
Methods inherited from class com.aspose.slides.BaseChartValue
getDataSourceType, getParent_Immediate, 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. Read/write IChartCellCollection.

Specified by:
getAsCells in interface IMultipleCellChartValue

setAsCells

public void setAsCells(IChartCellCollection value)

Null value assigning is not allowed. Returning value always is not null. Read/write IChartCellCollection.

Specified by:
setAsCells in interface IMultipleCellChartValue

getAsLiteralString

public java.lang.String getAsLiteralString()

Returns or sets value as literal string. Read/write String.

Specified by:
getAsLiteralString in interface IStringChartValue

setAsLiteralString

public void setAsLiteralString(java.lang.String value)

Returns or sets value as literal string. Read/write String.

Specified by:
setAsLiteralString in interface IStringChartValue

getData

public java.lang.Object getData()
Read/write Object.

Specified by:
getData in interface IBaseChartValue

setData

public void setData(java.lang.Object value)
Read/write Object.

Specified by:
setData in interface IBaseChartValue

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


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.