DoubleChartValue

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

All Implemented Interfaces: com.aspose.slides.IDoubleChartValue

public class DoubleChartValue extends BaseChartValue implements IDoubleChartValue

Represent 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.
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

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 - Returns LiteralDouble if DataSourceType equals DoubleLiterals. If DataSourceType equals Worksheet returns successfully converted to double cell value, otherwise returns NaN.