Class sap.gantt.def.filter.MorphologyFilterModule: sap/gantt/def/filter/MorphologyFilter
This filter is a combination of several filters. The main one is morphology.
The purpose of this filter is to generate a white outline of a target shape when the target is overlapping with other shapes. In general this filter is recommended to be used only on 'text' and 'image' whose outline is very hard to determine. For regular SVG tags like 'rect', 'circle' etc, use the 'stroke' attribute instead if possible. This is because filters in general have worse performance.
See Filter Effects in SVG 1.1 specification for detail.
Tags used in this filter are:
- 'femorphology': Use operator 'dilate' to make a fatter shape of the source shape. See Tag 'femorphology' in SVG 1.1 specification for detail.
- 'feColorMatrix': Fills fatter shape. The default matrix turns every color into white. See Tag 'feColorMatrix' in SVG 1.1 specification for detail.
- 'feMerge': Merges the source shape into the fatter shape to produce an outline effect on the target shape. See Tag 'feMerge' in SVG 1.1 specification for detail.
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
- operator : string (default: sap.gantt.def.filter.MorphologyOperator.Dilate)
- radius : string (default: 2,1)
- colorMatrix : string (default: sap.gantt.def.filter.ColorMatrixValue.AllToWhite)
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 |
colorMatrix
. Attribute of SVG tag 'feColorMatrix'. See 'value' attribute for detail. Predefined values are in sap.gantt.def.filter.ColorMatrixValue. Advanced users can provide a customized matrix in string.
Default value is sap.gantt.def.filter.ColorMatrixValue.AllToWhite
.
{string} | Value of property colorMatrix |
operator
. Atrribute of SVG tag 'feMorphology'. See 'operator' attribute for detail. Possible values are in sap.gantt.def.filter.MorphologyOperator.
Default value is sap.gantt.def.filter.MorphologyOperator.Dilate
.
{string} | Value of property operator |
radius
. Attribute of SVG tag 'feMorphology'. See 'radius' attribute for detail.
Default value is 2,1
.
{string} | Value of property radius |
colorMatrix
. Attribute of SVG tag 'feColorMatrix'. See 'value' attribute for detail. Predefined values are in sap.gantt.def.filter.ColorMatrixValue. Advanced users can provide a customized matrix in string.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.def.filter.ColorMatrixValue.AllToWhite
.
{string} | sColorMatrix | New value for property colorMatrix |
{sap.gantt.def.filter.MorphologyFilter} | Reference to this in order to allow method chaining |
operator
. Atrribute of SVG tag 'feMorphology'. See 'operator' attribute for detail. Possible values are in sap.gantt.def.filter.MorphologyOperator.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is sap.gantt.def.filter.MorphologyOperator.Dilate
.
{string} | sOperator | New value for property operator |
{sap.gantt.def.filter.MorphologyFilter} | Reference to this in order to allow method chaining |
radius
. Attribute of SVG tag 'feMorphology'. See 'radius' attribute for detail.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 2,1
.
{string} | sRadius | New value for property radius |
{sap.gantt.def.filter.MorphologyFilter} | Reference to this in order to allow method chaining |