Class sap.gantt.def.pattern.PatternBaseModule: sap/gantt/def/pattern/PatternBase
Base class for SVG pattern definitions.
Pattern is a built-in paint server in SVG. It provides tile-based patterns to the SVG 'fill' or 'stroke' attributes. See 'pattern' element in SVG.
See Pattern sample fro SVG specificiation 1.1
sClassName
and enriches it with the information contained in oClassInfo
.backgroundFillOpacity
. 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
- tileWidth : int (default: 8)
- tileHeight : int (default: 8)
- backgroundColor : sap.gantt.ValueSVGPaintServer (default: #fff)
- backgroundFillOpacity : number (default: 1)
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 |
backgroundColor
. Background color of the pattern. Technically a rectangle with the color is added in the beginning of the pattern definition.
Default value is #fff
.
{sap.gantt.ValueSVGPaintServer} | Value of property backgroundColor |
backgroundFillOpacity
. Fill opacity of background color.
Default value is 1
.
{number} | Value of property backgroundFillOpacity |
tileHeight
. Height of the pattern tile. See 'height' attribute of 'pattern' element for detail.
Default value is 8
.
{int} | Value of property tileHeight |
tileWidth
. Width of the pattern tile. See 'width' attribute of 'pattern' element for detail.
Default value is 8
.
{int} | Value of property tileWidth |
backgroundColor
. Background color of the pattern. Technically a rectangle with the color is added in the beginning of the pattern definition.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is #fff
.
{sap.gantt.ValueSVGPaintServer} | sBackgroundColor | New value for property backgroundColor |
{sap.gantt.def.pattern.PatternBase} | Reference to this in order to allow method chaining |
backgroundFillOpacity
. Fill opacity of background color.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{number} | sBackgroundFillOpacity | New value for property backgroundFillOpacity |
{sap.gantt.def.pattern.PatternBase} | Reference to this in order to allow method chaining |
tileHeight
. Height of the pattern tile. See 'height' attribute of 'pattern' element for detail.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 8
.
{int} | iTileHeight | New value for property tileHeight |
{sap.gantt.def.pattern.PatternBase} | Reference to this in order to allow method chaining |
tileWidth
. Width of the pattern tile. See 'width' attribute of 'pattern' element for detail.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 8
.
{int} | iTileWidth | New value for property tileWidth |
{sap.gantt.def.pattern.PatternBase} | Reference to this in order to allow method chaining |