IChartCategory

public interface IChartCategory

Represents chart categories.

Methods

MethodDescription
getUseCell()If true then AsCell property is actual.
getAsCell()Returns or sets IChartDataCell object.
setAsCell(IChartDataCell value)Returns or sets IChartDataCell object.
getAsLiteral()Returns or sets AsLiteral if UseCell is false.
setAsLiteral(Object value)Returns or sets AsLiteral if UseCell is false.
getValue()If UseCell is true then this property represents AsCell.Value property.
setValue(Object value)If UseCell is true then this property represents AsCell.Value property.
getGroupingLevels()Managed container of the values of the chart category grouping levels.
remove()Removes category from chart.

getUseCell()

public abstract boolean getUseCell()

If true then AsCell property is actual. In other words, worksheet is used for storing category (this case supports a multi-level category). If false then AsLiteral property is actual. In other words, worksheet is NOT used for storing category (and this case doesn’t support a multi-level categories). Read-only boolean.


For change value of this property (for all categories in collection) set new value to ChartCategoryCollection.getUseCells() property.

Returns: boolean

getAsCell()

public abstract IChartDataCell getAsCell()

Returns or sets IChartDataCell object. If category is multi-level then used IChartDataCell object for level “0”. Read/write IChartDataCell.

Returns: IChartDataCell

setAsCell(IChartDataCell value)

public abstract void setAsCell(IChartDataCell value)

Returns or sets IChartDataCell object. If category is multi-level then used IChartDataCell object for level “0”. Read/write IChartDataCell.

Parameters:

ParameterTypeDescription
valueIChartDataCell

getAsLiteral()

public abstract Object getAsLiteral()

Returns or sets AsLiteral if UseCell is false. Read/write Object.

Returns: java.lang.Object

setAsLiteral(Object value)

public abstract void setAsLiteral(Object value)

Returns or sets AsLiteral if UseCell is false. Read/write Object.

Parameters:

ParameterTypeDescription
valuejava.lang.Object

getValue()

public abstract Object getValue()

If UseCell is true then this property represents AsCell.Value property. If UseCell is false then this property represents AsLiteral property. Read/write Object.

Returns: java.lang.Object

setValue(Object value)

public abstract void setValue(Object value)

If UseCell is true then this property represents AsCell.Value property. If UseCell is false then this property represents AsLiteral property. Read/write Object.

Parameters:

ParameterTypeDescription
valuejava.lang.Object

getGroupingLevels()

public abstract IChartCategoryLevelsManager getGroupingLevels()

Managed container of the values of the chart category grouping levels. Multi-level category contain more then one grouping level. Grouping levels indexing is zero-based. Read-only IChartCategoryLevelsManager.

Returns: IChartCategoryLevelsManager

remove()

public abstract void remove()

Removes category from chart.