Class sap.suite.ui.commons.HarveyBallMicroChartItemModule: sap/suite/ui/commons/HarveyBallMicroChartItem

extends Element

The configuration of the slice on the pie chart.

Deprecated API:Since version 1.34. Deprecated. sap.suite.ui.microchart.HarveyBallMicroChartItem should be used.

Constructor Summary
new sap.suite.ui.commons.HarveyBallMicroChartItem(sId?, mSettings?)Constructor for a new HarveyBallMicroChartItem.
Method Summary
sap.suite.ui.commons.HarveyBallMicroChartItem.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.commons.HarveyBallMicroChartItem with name sClassName and enriches it with the information contained in oClassInfo.
sap.suite.ui.commons.HarveyBallMicroChartItem.getMetadata()Returns a metadata object for class sap.suite.ui.commons.HarveyBallMicroChartItem.
getColor()Getter for property color.
getFormattedLabel()Getter for property formattedLabel.
getFraction()Getter for property fraction.
getFractionLabel()Getter for property fractionLabel.
getFractionScale()Getter for property fractionScale.
setColor(oColor)Setter for property color.
setFormattedLabel(bFormattedLabel)Setter for property formattedLabel.
setFraction(fFraction)Setter for property fraction.
setFractionLabel(sFractionLabel)Setter for property fractionLabel.
setFractionScale(sFractionScale)Setter for property fractionScale.
Constructor Detail
new sap.suite.ui.commons.HarveyBallMicroChartItem(sId?, mSettings?)
Constructor for a new HarveyBallMicroChartItem.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.

If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).

The supported settings are:

In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Deprecated:
Since version 1.34. Deprecated. sap.suite.ui.microchart.HarveyBallMicroChartItem should be used.
Method Detail
sap.suite.ui.commons.HarveyBallMicroChartItem.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.HarveyBallMicroChartItem with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of informations as described in Element.extend.

Parameters:
{string}sClassName name of the class to be created
{object}oClassInfo? object literal with informations about the class
{function}FNMetaImpl? constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata.
Returns:
{function} the created class / constructor function
sap.suite.ui.commons.HarveyBallMicroChartItem.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.suite.ui.commons.HarveyBallMicroChartItem.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
Getter for property color. The slice color.

Default value is Neutral

Returns:
{sap.suite.ui.commons.InfoTileValueColor} the value of property color
getFormattedLabel(): boolean
Getter for property formattedLabel. If set to true, the fractionLabel parameter is considered as the combination of the fraction value and scaling factor. The default value is false. It means that the fraction value and the scaling factor are defined separately by the fraction and the fractionScale properties accordingly.

Default value is false

Returns:
{boolean} the value of property formattedLabel
getFraction(): float
Getter for property fraction. The fraction value.

Default value is 0

Returns:
{float} the value of property fraction
getFractionLabel(): string
Getter for property fractionLabel. The fraction label. If specified, it is displayed instead of the fraction value.

Default value is empty/undefined

Returns:
{string} the value of property fractionLabel
getFractionScale(): string
Getter for property fractionScale. The scaling factor that is displayed after the fraction value.

Default value is empty/undefined

Returns:
{string} the value of property fractionScale
Setter for property color.

Default value is Neutral

Parameters:
{sap.suite.ui.commons.InfoTileValueColor}oColor new value for property color
Returns:
{sap.suite.ui.commons.HarveyBallMicroChartItem}this to allow method chaining
setFormattedLabel(bFormattedLabel): sap.suite.ui.commons.HarveyBallMicroChartItem
Setter for property formattedLabel.

Default value is false

Parameters:
{boolean}bFormattedLabel new value for property formattedLabel
Returns:
{sap.suite.ui.commons.HarveyBallMicroChartItem}this to allow method chaining
Setter for property fraction.

Default value is 0

Parameters:
{float}fFraction new value for property fraction
Returns:
{sap.suite.ui.commons.HarveyBallMicroChartItem}this to allow method chaining
setFractionLabel(sFractionLabel): sap.suite.ui.commons.HarveyBallMicroChartItem
Setter for property fractionLabel.

Default value is empty/undefined

Parameters:
{string}sFractionLabel new value for property fractionLabel
Returns:
{sap.suite.ui.commons.HarveyBallMicroChartItem}this to allow method chaining
setFractionScale(sFractionScale): sap.suite.ui.commons.HarveyBallMicroChartItem
Setter for property fractionScale.

Default value is empty/undefined

Parameters:
{string}sFractionScale new value for property fractionScale
Returns:
{sap.suite.ui.commons.HarveyBallMicroChartItem}this to allow method chaining