Class sap.gantt.config.ShapeModule: sap/gantt/config/Shape
Configuration object for Shape.
This configuration specifies the Shape class used to represent specific data and how the Shape class is constructed. Some properties of Shape can be directly configured by setting property shapeProperties
.
A Shape class may come from the shape library provided in namespace sap.gantt.shape
or from any extended shape you've created. Shape classes are instantiated according to the structure described in this configuration class inside sap.gantt.Gantt
. The aggregation structure is described by properties groupAggregation
, clippathAggregation
, and selectedClassName
.
The root shape is called 'top shape'. Some properties are only top shape relevant such as key
, level
, and selectedClassName
.
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- key : string
- shapeClassName : string
- shapeDataName : string
- modeKeys : array (default: [])
- level : string
- shapeProperties : object (default: sap.gantt.config.DEFAULT_EMPTY_OBJECT)
- groupAggregation : array
- clippathAggregation : array
- selectedClassName : string
- switchOfCheckBox : string (default: noShow)
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
{string} | sId? | ID of the new control, generated automatically if no ID is given |
{object} | mSettings? | Initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Element.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
clippathAggregation
. Aggregation path classes for sap.gantt.shape.Clippath class. This aggregation is only valid for shape classes with tag='clippath'.
{array} | Value of property clippathAggregation |
groupAggregation
. Aggregation shapes for sap.gantt.shape.Group class. This aggregation is only valid for shape classes with tag='g'.
{array} | Value of property groupAggregation |
key
. Primary key of the shape configuration. This property can be referenced from other configuration object, such as sap.gantt.config.ChartScheme
. This property is only relevant to top Shape configuration.
{string} | Value of property key |
level
. Level of shapes. Shapes closer to the top shape have a smaller value in level. This property is only relevant to top shape configuration (non aggregated shape configuration).
{string} | Value of property level |
modeKeys
. Specifies the key of modes in which the shape is drawn. If you leave this property empty, the shape is drawn in all modes.
Default value is []
.
{array} | Value of property modeKeys |
selectedClassName
. Aggregation class for drawing selection of this shape. If nothing is assigned to this property, sap.gantt.Gantt
instantiates the default selected shape class.
{string} | Value of property selectedClassName |
shapeClassName
. Specifies the shape class to be used for data representation. Both shapes from sap.gantt.shape
and extended shapes can be used here.
{string} | Value of property shapeClassName |
shapeDataName
. Specifies the name of the data name to be represented. This is for the top shape only.
{string} | Value of property shapeDataName |
shapeProperties
. Pre-configured values for Shape. The values specified in this object have a higher priority than values coded in the Shape class.
Default value is sap.gantt.config.DEFAULT_EMPTY_OBJECT
.
{object} | Value of property shapeProperties |
shapeProperties
. This method together with method hasShapeProperty
is frequently used in sap.gantt.shape
classes to make sure the principle of 'configuration first' is applied. .
{string} | sPropertyName | Name of the shape property. |
{string} | - Pre-configured value. |
switchOfCheckBox
. Switch of shape's checkbox value in list legend, its value can be "noShow", "checked" and "unchecked".
Default value is noShow
.
{string} | Value of property switchOfCheckBox |
shapeProperties
. This method together with method getShapeProperty()
is frequently used in sap.gantt.shape
classes to make sure the principle of 'configuration first' is applied. .
{string} | sPropertyName | Name of the shape property. |
{boolean} | - Whether the property is pre-configured. |
clippathAggregation
. Aggregation path classes for sap.gantt.shape.Clippath class. This aggregation is only valid for shape classes with tag='clippath'.
When called with a value of null
or undefined
, the default value of the property will be restored.
{array} | sClippathAggregation | New value for property clippathAggregation |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
groupAggregation
. Aggregation shapes for sap.gantt.shape.Group class. This aggregation is only valid for shape classes with tag='g'.
When called with a value of null
or undefined
, the default value of the property will be restored.
{array} | sGroupAggregation | New value for property groupAggregation |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
key
. Primary key of the shape configuration. This property can be referenced from other configuration object, such as sap.gantt.config.ChartScheme
. This property is only relevant to top Shape configuration.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sKey | New value for property key |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
level
. Level of shapes. Shapes closer to the top shape have a smaller value in level. This property is only relevant to top shape configuration (non aggregated shape configuration).
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sLevel | New value for property level |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
modeKeys
. Specifies the key of modes in which the shape is drawn. If you leave this property empty, the shape is drawn in all modes.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is []
.
{array} | sModeKeys | New value for property modeKeys |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
selectedClassName
. Aggregation class for drawing selection of this shape. If nothing is assigned to this property, sap.gantt.Gantt
instantiates the default selected shape class.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sSelectedClassName | New value for property selectedClassName |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
shapeClassName
. Specifies the shape class to be used for data representation. Both shapes from sap.gantt.shape
and extended shapes can be used here.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sShapeClassName | New value for property shapeClassName |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
shapeDataName
. Specifies the name of the data name to be represented. This is for the top shape only.
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sShapeDataName | New value for property shapeDataName |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
shapeProperties
. Pre-configured values for Shape. The values specified in this object have a higher priority than values coded in the Shape class.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.config.DEFAULT_EMPTY_OBJECT
.
{object} | oShapeProperties | New value for property shapeProperties |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |
switchOfCheckBox
. Switch of shape's checkbox value in list legend, its value can be "noShow", "checked" and "unchecked".
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is noShow
.
{string} | sSwitchOfCheckBox | New value for property switchOfCheckBox |
{sap.gantt.config.Shape} | Reference to this in order to allow method chaining |