Class sap.gantt.def.SvgDefModule: sap/gantt/def/SvgDefs


The class handles the container tag "defs" for all reusable SVG graphic definitions. It provides interfaces for SVG definition strings and referencing strings. The parent class is responsible for rendering the definition strings.

SVG uses the 'defs' tag to represent graphic objects that are defined for reuse at a later time. See 'defs' in SVG. Currently sap.gantt provides defs including the following definition tags: 'pattern', 'gradient', and 'filter'. Applications can also extend this base class to support more functionality.

Constructor Summary
new sap.gantt.def.SvgDef(sId?, mSettings?)SVG definition tag class.
Method Summary
getDefString()Definition string of the SVG 'defs' tag.
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.gantt.def.SvgDef(sId?, mSettings?)
SVG definition tag class.

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:

  • Aggregations
    • defs : sap.gantt.def.DefBase[]

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

Parameters:
{string}sId? ID of the new control, generated automatically if no ID is given
{object}mSettings? Initial settings for the new control
Method Detail
getDefString(): string
Definition string of the SVG 'defs' tag.
Returns:
{string} - Definition string to be rendered by caller.