Class sap.gantt.shape.PolylineModule: sap/gantt/shape/Polyline


Polyline shape class using SVG tag 'polyline'.

See SVG specification 1.1 for 'polyline' element for more information about the HTML tag.

Sample of 'polyline' in SVG specification 1.1:

Constructor Summary
new sap.gantt.shape.Polyline(sId?, mSettings?)Creates and initializes a new Polyline class.
Method Summary
sap.gantt.shape.Polyline.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.Polyline with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.Polyline.getMetadata()Returns a metadata object for class sap.gantt.shape.Polyline.
getFill()Gets current value of property fill.
getPoints(oData, oRowInfo)Gets the value of property points.
getTag(oData, oRowInfo)Gets the value of property tag.
setFill(sFill)Sets a new value for property fill.
setPoints(sPoints)Sets a new value for property points.
setTag(sTag)Sets a new value for property tag.
Constructor Detail
new sap.gantt.shape.Polyline(sId?, mSettings?)
Creates and initializes a new Polyline 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:

  • Properties
    • tag : string (default: polyline)
    • fill : string (default: none)
    • points : string
Parameters:
{string}sId? ID for the new control, generated automatically if no ID is given
{object}mSettings? Initial settings for the new control
Method Detail
sap.gantt.shape.Polyline.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.Polyline with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in Object.extend.

Parameters:
{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
Returns:
{function} Created class / constructor function
sap.gantt.shape.Polyline.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.Polyline.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getFill(): string
Gets current value of property fill.

Default value is none.

Returns:
{string} Value of property fill
getPoints(oData, oRowInfo): string
Gets the value of property points.

points attribute of the polygon shape. See SVG 1.1 specification for 'points' attribute of 'polyline'. This shape provides a default implementation of points:
timerotationCenter

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and the row data.
Returns:
{string} Value of property points.
getTag(oData, oRowInfo): string
Gets the value of property tag.

SVG tag name of the shape. See SVG 1.1 specification for shapes.
Note: We do not recommend that you change this value using a configuration or coding.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and the row data.
Returns:
{string} Value of property tag.
setFill(sFill): sap.gantt.shape.Polyline
Sets a new value for property fill.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is none.

Parameters:
{string}sFill New value for property fill
Returns:
{sap.gantt.shape.Polyline} Reference to this in order to allow method chaining
setPoints(sPoints): sap.gantt.shape.Polyline
Sets a new value for property points.

When called with a value of null or undefined, the default value of the property will be restored.

Parameters:
{string}sPoints New value for property points
Returns:
{sap.gantt.shape.Polyline} Reference to this in order to allow method chaining
Sets a new value for property tag.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is polyline.

Parameters:
{string}sTag New value for property tag
Returns:
{sap.gantt.shape.Polyline} Reference to this in order to allow method chaining