StringChartValue

Inheritance: java.lang.Object, com.aspose.slides.BaseChartValue

All Implemented Interfaces: com.aspose.slides.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.

Methods

MethodDescription
getAsCells()Null value assigning is not allowed.
setAsCells(IChartCellCollection value)Null value assigning is not allowed.
getAsLiteralString()Returns or sets value as literal string.
setAsLiteralString(String value)Returns or sets value as literal string.
getData()Returns or sets Data object.
setData(Object value)Returns or sets Data object.
toString()Returns string value data.
setFromOneCell(IChartDataCell cell)Sets value from specified cell.
getCellsAddressInWorkbook()If DataSourceType property is DataSourceType.Worksheet then this method returns address of the cells in workbook which represent the string data.

getAsCells()

public final IChartCellCollection getAsCells()

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

Returns: IChartCellCollection

setAsCells(IChartCellCollection value)

public final void setAsCells(IChartCellCollection value)

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

Parameters:

ParameterTypeDescription
valueIChartCellCollection

getAsLiteralString()

public final String getAsLiteralString()

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

Returns: java.lang.String

setAsLiteralString(String value)

public final void setAsLiteralString(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.String

getData()

public Object getData()

Returns or sets Data object. Read/write Object.

Returns: java.lang.Object

setData(Object value)

public void setData(Object value)

Returns or sets Data object. Read/write Object.

Parameters:

ParameterTypeDescription
valuejava.lang.Object

toString()

public String toString()

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

Returns: java.lang.String

setFromOneCell(IChartDataCell cell)

public final void setFromOneCell(IChartDataCell cell)

Sets value from specified cell.

Parameters:

ParameterTypeDescription
cellIChartDataCellCell.

getCellsAddressInWorkbook()

public final 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.

Returns: java.lang.String