Abstract Class sap.gantt.legend.LegendBaseModule: sap/gantt/legend/LegendBase
Base class for all legend template.
This base class defines basic properties for legend templates. sap.gantt provides two basic implementations of LegendBase
:
sap.gantt.legend.ListLegend
- A list legend template defines the representation of a list of legend items and their corresponding meaningssap.gantt.legend.DimensionLegend
- A dimension legend template defines the representation (shape, pattern, and color) of individual legend items and their corresponding meanings in both dimensions
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
- svgDefs : sap.gantt.def.SvgDefs
- legendWidth : number (default: 32)
- legendHeight : number (default: 32)
- fontSize : number (default: 16)
In addition, all settings applicable to the base type sap.ui.core.Control 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.Control.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 |
fontSize
. Font size of legend item texts.
Default value is 16
.
{number} | Value of property fontSize |
legendHeight
. Height of a legend item.
Default value is 32
.
{number} | Value of property legendHeight |
legendWidth
. Width of a legend item.
Default value is 32
.
{number} | Value of property legendWidth |
{string} | Value of the SAP UI size class. |
{string} | Value of the legend item height. |
{string} | Value of the legend item width. |
svgDefs
. SVG reusable element definitions.
If this property is provided, the paint server definition of SVG is rendered. Method getDefString()
should be implemented by all paint server classes that are passed to this property.
{sap.gantt.def.SvgDefs} | Value of property svgDefs |
fontSize
. Font size of legend item texts.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 16
.
{number} | sFontSize | New value for property fontSize |
{sap.gantt.legend.LegendBase} | Reference to this in order to allow method chaining |
legendHeight
. Height of a legend item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 32
.
{number} | sLegendHeight | New value for property legendHeight |
{sap.gantt.legend.LegendBase} | Reference to this in order to allow method chaining |
legendWidth
. Width of a legend item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 32
.
{number} | sLegendWidth | New value for property legendWidth |
{sap.gantt.legend.LegendBase} | Reference to this in order to allow method chaining |
svgDefs
. SVG reusable element definitions.
If this property is provided, the paint server definition of SVG is rendered. Method getDefString()
should be implemented by all paint server classes that are passed to this property.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.gantt.def.SvgDefs} | sSvgDefs | New value for property svgDefs |
{sap.gantt.legend.LegendBase} | Reference to this in order to allow method chaining |