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.
Modifier and Type | Method and Description |
---|---|
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()
Returns or sets Data 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)
Returns or sets Data object.
|
void |
setFromOneCell(IChartDataCell cell)
Sets value from specified cell.
|
java.lang.String |
toString()
Returns string value data.
|
getDataSourceType, getParent_Immediate, setDataSourceType
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataSourceType, setDataSourceType
public final IChartCellCollection getAsCells()
Null value assigning is not allowed.
Returning value always is not null.
Read/write IChartCellCollection
.
getAsCells
in interface IMultipleCellChartValue
public final void setAsCells(IChartCellCollection value)
Null value assigning is not allowed.
Returning value always is not null.
Read/write IChartCellCollection
.
setAsCells
in interface IMultipleCellChartValue
public final java.lang.String getAsLiteralString()
Returns or sets value as literal string.
Read/write String
.
getAsLiteralString
in interface IStringChartValue
public final void setAsLiteralString(java.lang.String value)
Returns or sets value as literal string.
Read/write String
.
setAsLiteralString
in interface IStringChartValue
public java.lang.Object getData()
Returns or sets Data object.
Read/write Object
.
getData
in interface IBaseChartValue
getData
in class BaseChartValue
public void setData(java.lang.Object value)
Returns or sets Data object.
Read/write Object
.
setData
in interface IBaseChartValue
setData
in class BaseChartValue
public java.lang.String toString()
Returns string value data. Return null if DataSourceType is false and no string value was assigned.
toString
in interface IStringChartValue
toString
in class java.lang.Object
String
object.public final void setFromOneCell(IChartDataCell cell)
Sets value from specified cell.
setFromOneCell
in interface IStringChartValue
cell
- Cell.public final 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.
getCellsAddressInWorkbook
in interface IStringChartValue