com.aspose.slides
Class DoubleChartValue

java.lang.Object
  extended by com.aspose.slides.BaseChartValue
      extended by com.aspose.slides.DoubleChartValue
All Implemented Interfaces:
IBaseChartValue, IDoubleChartValue, ISingleCellChartValue

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.


Method Summary
 IChartDataCell getAsCell()
           Returns or sets chart data cell.
 double getAsLiteralDouble()
           Returns or sets value as literal double.
 java.lang.Object getData()
          Read/write Object.
 void setAsCell(IChartDataCell value)
           Returns or sets chart data cell.
 void setAsLiteralDouble(double value)
           Returns or sets value as literal double.
 void setData(java.lang.Object value)
          Read/write Object.
 double toDouble()
           Converts to double.
 
Methods inherited from class com.aspose.slides.BaseChartValue
getDataSourceType, getParent_Immediate, setDataSourceType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aspose.slides.IBaseChartValue
getDataSourceType, setDataSourceType
 

Method Detail

getAsCell

public IChartDataCell getAsCell()

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

Specified by:
getAsCell in interface ISingleCellChartValue

setAsCell

public void setAsCell(IChartDataCell value)

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

Specified by:
setAsCell in interface ISingleCellChartValue

getAsLiteralDouble

public double getAsLiteralDouble()

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

Specified by:
getAsLiteralDouble in interface IDoubleChartValue

setAsLiteralDouble

public void setAsLiteralDouble(double value)

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

Specified by:
setAsLiteralDouble in interface IDoubleChartValue

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

toDouble

public double toDouble()

Converts to double.

Specified by:
toDouble in interface IDoubleChartValue
Returns:
Returns LiteralDouble if DataSourceType equals DoubleLiterals. If DataSourceType equals Worksheet returns successfully converted to double cell value, otherwise returns NaN.


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