Class sap.gantt.shape.ext.TriangleModule: sap/gantt/shape/ext/Triangle


Triangle shape class using SVG tag 'path'. It's usually treated as a transient shape.

See SVG specification 1.1 for the 'path' element for detail information of the html tag.

The following image shows how the properties are designed:
timerotationCenterheightdistanceOfyAxisHeightbase

Constructor Summary
new sap.gantt.shape.ext.Triangle(sId?, mSettings?)Creates and initializes a new Triangle class.
Method Summary
sap.gantt.shape.ext.Triangle.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.ext.Triangle with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.ext.Triangle.getMetadata()Returns a metadata object for class sap.gantt.shape.ext.Triangle.
getBase(oData, oRowInfo)Gets the value of property base.
getD(oData, oRowInfo)Gets the value of property d.
getDistanceOfyAxisHeight(oData, oRowInfo)Gets the value of property distanceOfyAxisHeight.
getHeight(oData, oRowInfo)Gets the value of property height.
getIsClosed(oData, oRowInfo)Gets the value of property isClosed.
setBase(sBase)Sets a new value for property base.
setDistanceOfyAxisHeight(sDistanceOfyAxisHeight)Sets a new value for property distanceOfyAxisHeight.
setHeight(sHeight)Sets a new value for property height.
setIsClosed(bIsClosed)Sets a new value for property isClosed.
Constructor Detail
new sap.gantt.shape.ext.Triangle(sId?, mSettings?)
Creates and initializes a new Triangle 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:

Parameters:
{string}sId? ID of the new control, generated automatically if no ID is given
{object}mSettings? Initial settings of the new control
Method Detail
sap.gantt.shape.ext.Triangle.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.ext.Triangle 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.ext.Triangle.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.ext.Triangle.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getBase(oData, oRowInfo): number
Gets the value of property base.

Base side of a triangle.

This property influences property d.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{number} Value of property base.
getD(oData, oRowInfo): string
Gets the value of property d.

d attribute of path element. See SVG 1.1 specification for 'd' attribute of 'path'.

Your application should not configure this value. Instead, the getter calculates the value of d by using properties time, base, height, and distanceOfyAxisHeight. The value of these properties can be retrieved from the corresponding getters (getTime, getBase, getHeight, and getDistanceOfyAxisHeight).

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{string} Value of property d.
getDistanceOfyAxisHeight(oData, oRowInfo): number
Gets the value of property distanceOfyAxisHeight.

distanceOfyAxisHeight of a triangle, which refers to the distance between the left point to the altitude of the triangle.

This property influences property d.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{number} Value of property distanceOfyAxisHeight.
getHeight(oData, oRowInfo): number
Gets the value of property height.

Height of a triangle.

This property influences property d.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{number} Value of property height.
getIsClosed(oData, oRowInfo): boolean
Gets the value of property isClosed.
Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{boolean} Value of property isClosed.
Sets a new value for property base.

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

Default value is 10.

Parameters:
{number}sBase New value for property base
Returns:
{sap.gantt.shape.ext.Triangle} Reference to this in order to allow method chaining
setDistanceOfyAxisHeight(sDistanceOfyAxisHeight): sap.gantt.shape.ext.Triangle
Sets a new value for property distanceOfyAxisHeight.

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

Default value is 5.

Parameters:
{number}sDistanceOfyAxisHeight New value for property distanceOfyAxisHeight
Returns:
{sap.gantt.shape.ext.Triangle} Reference to this in order to allow method chaining
setHeight(sHeight): sap.gantt.shape.ext.Triangle
Sets a new value for property height.

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

Default value is 10.

Parameters:
{number}sHeight New value for property height
Returns:
{sap.gantt.shape.ext.Triangle} Reference to this in order to allow method chaining
setIsClosed(bIsClosed): sap.gantt.shape.ext.Triangle
Sets a new value for property isClosed.

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

Default value is true.

Parameters:
{boolean}bIsClosed New value for property isClosed
Returns:
{sap.gantt.shape.ext.Triangle} Reference to this in order to allow method chaining