StringOrDoubleChartValue

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

All Implemented Interfaces: com.aspose.slides.IStringOrDoubleChartValue

public class StringOrDoubleChartValue extends BaseChartValue implements IStringOrDoubleChartValue

Represent string or double 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
getAsCell()Returns or sets chart data cell.
setAsCell(IChartDataCell value)Returns or sets chart data cell.
getAsLiteralString()Returns or sets value as literal string.
setAsLiteralString(String value)Returns or sets value as literal string.
getAsLiteralDouble()Returns or sets value as literal double.
setAsLiteralDouble(double value)Returns or sets value as literal double.
getData()Returns or sets Data object.
setData(Object value)Returns or sets Data object.
toDouble()Converts to double.

getAsCell()

public final IChartDataCell getAsCell()

Returns or sets chart data cell. Read/write IChartDataCell.

Returns: IChartDataCell

setAsCell(IChartDataCell value)

public final void setAsCell(IChartDataCell value)

Returns or sets chart data cell. Read/write IChartDataCell.

Parameters:

ParameterTypeDescription
valueIChartDataCell

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

getAsLiteralDouble()

public final double getAsLiteralDouble()

Returns or sets value as literal double. Read/write double.

Returns: double

setAsLiteralDouble(double value)

public final void setAsLiteralDouble(double value)

Returns or sets value as literal double. Read/write double.

Parameters:

ParameterTypeDescription
valuedouble

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

toDouble()

public final double toDouble()

Converts to double.

Returns: double - Double value.