Class sap.gantt.shape.ext.DiamondModule: sap/gantt/shape/ext/Diamond


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

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

The following SVG image shows how the properties are designed:
timerotationCenterhorizontalDiagonalvertitalDiagonal

Constructor Summary
new sap.gantt.shape.ext.Diamond(sId?, mSettings?)Creates and initializes a new Diamond class.
Method Summary
sap.gantt.shape.ext.Diamond.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.ext.Diamond with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.ext.Diamond.getMetadata()Returns a metadata object for class sap.gantt.shape.ext.Diamond.
getD(oData, oRowInfo)Gets the value of property d.
getHorizontalDiagonal(oData, oRowInfo)Gets the value of property horizontalDiagonal.
getIsClosed(oData, oRowInfo)Gets the value of property isClosed.
getVerticalDiagonal(oData, oRowInfo)Gets the value of property verticalDiagonal.
setHorizontalDiagonal(sHorizontalDiagonal)Sets a new value for property horizontalDiagonal.
setIsClosed(bIsClosed)Sets a new value for property isClosed.
setVerticalDiagonal(sVerticalDiagonal)Sets a new value for property verticalDiagonal.
Constructor Detail
new sap.gantt.shape.ext.Diamond(sId?, mSettings?)
Creates and initializes a new Diamond 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.Diamond.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.ext.Diamond 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.Diamond.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.ext.Diamond.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getD(oData, oRowInfo): string
Gets the value of property d.

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

You application should not configure this value. Instead, the getter calculates value of d by using properties horizontalDiagonal and verticalDiagonal. The value of these properties can be retrieved using the corresponding getters (getHorizontalDiagonal and getVerticalDiagonal).

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

Horizontal diagonal of a diamond shape.

This property influences property d.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{number} Value of property horizontalDiagonal.
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.
getVerticalDiagonal(oData, oRowInfo): number
Gets the value of property verticalDiagonal.

Vertical diagonal of a diamond shape.

This property influences property d.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{number} Value of property verticalDiagonal.
setHorizontalDiagonal(sHorizontalDiagonal): sap.gantt.shape.ext.Diamond
Sets a new value for property horizontalDiagonal.

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

Default value is 12.

Parameters:
{number}sHorizontalDiagonal New value for property horizontalDiagonal
Returns:
{sap.gantt.shape.ext.Diamond} Reference to this in order to allow method chaining
setIsClosed(bIsClosed): sap.gantt.shape.ext.Diamond
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.Diamond} Reference to this in order to allow method chaining
setVerticalDiagonal(sVerticalDiagonal): sap.gantt.shape.ext.Diamond
Sets a new value for property verticalDiagonal.

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

Default value is 12.

Parameters:
{number}sVerticalDiagonal New value for property verticalDiagonal
Returns:
{sap.gantt.shape.ext.Diamond} Reference to this in order to allow method chaining