Class sap.gantt.def.gradient.LinearGradientModule: sap/gantt/def/gradient/LinearGradient
Linear gradient defined by SVG tag 'linearGradient'.
See Linear Gradient in SVG 1.1 specification for detail.
Linear gradient sample in SVG specification 1.1:
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
- Aggregations
- stops : sap.gantt.def.gradient.Stop[]
In addition, all settings applicable to the base type sap.gantt.def.DefBase 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.gantt.def.DefBase.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 |
stops. | {sap.gantt.def.gradient.Stop} | oStop | the stop to add; if empty, nothing is inserted |
| {sap.gantt.def.gradient.LinearGradient} | Reference to this in order to allow method chaining |
stops. | {sap.gantt.def.gradient.LinearGradient} | Reference to this in order to allow method chaining |
stops. 'stop' elements in the 'linearGradient' element. See 'stop' element in SVG 1.1 specification for detail.
| {sap.gantt.def.gradient.Stop[]} |
x1. Attribute 'x1' of SVG tag 'linearGradient'. See 'x1' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
Default value is 0.
| {string} | Value of property x1 |
x2. Attribute 'x2' of SVG tag 'linearGradient'. See 'x2' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
Default value is 100.
| {string} | Value of property x2 |
y1. Attribute 'y1' of SVG tag 'linearGradient'. See 'y1' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
Default value is 0.
| {string} | Value of property y1 |
y2. Attribute 'y2' of SVG tag 'linearGradient'. See 'y2' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
Default value is 15.
| {string} | Value of property y2 |
sap.gantt.def.gradient.Stop in the aggregation stops. and returns its index if found or -1 otherwise. | {sap.gantt.def.gradient.Stop} | oStop | The stop whose index is looked for |
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
stops. | {sap.gantt.def.gradient.Stop} | oStop | the stop to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the stop should be inserted at; for a negative value of iIndex, the stop is inserted at position 0; for a value greater than the current size of the aggregation, the stop is inserted at the last position |
| {sap.gantt.def.gradient.LinearGradient} | Reference to this in order to allow method chaining |
stops. Additionally, it unregisters them from the hosting UIArea.
| {sap.gantt.def.gradient.Stop[]} | An array of the removed elements (might be empty) |
stops. | {int|string|sap.gantt.def.gradient.Stop} | vStop | The stopto remove or its index or id |
| {sap.gantt.def.gradient.Stop} | The removed stop or null |
x1. Attribute 'x1' of SVG tag 'linearGradient'. See 'x1' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 0.
| {string} | sX1 | New value for property x1 |
| {sap.gantt.def.gradient.LinearGradient} | Reference to this in order to allow method chaining |
x2. Attribute 'x2' of SVG tag 'linearGradient'. See 'x2' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 100.
| {string} | sX2 | New value for property x2 |
| {sap.gantt.def.gradient.LinearGradient} | Reference to this in order to allow method chaining |
y1. Attribute 'y1' of SVG tag 'linearGradient'. See 'y1' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 0.
| {string} | sY1 | New value for property y1 |
| {sap.gantt.def.gradient.LinearGradient} | Reference to this in order to allow method chaining |
y2. Attribute 'y2' of SVG tag 'linearGradient'. See 'y2' attribute of 'linearGradient' element in SVG 1.1 specification for detail.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is 15.
| {string} | sY2 | New value for property y2 |
| {sap.gantt.def.gradient.LinearGradient} | Reference to this in order to allow method chaining |