Class sap.gantt.shape.ext.ChevronModule: sap/gantt/shape/ext/Chevron


Chevron shape class using SVG tag 'path'. It's usually used to represent a duration of time.

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

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

Constructor Summary
new sap.gantt.shape.ext.Chevron(sId?, mSettings?)Creates and initializes a new Chevron class.
Method Summary
sap.gantt.shape.ext.Chevron.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.ext.Chevron with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.ext.Chevron.getMetadata()Returns a metadata object for class sap.gantt.shape.ext.Chevron.
getD(oData, oRowInfo)Gets the value of property d.
getHeadLength(oData, oRowInfo)Gets the value of property headLength.
getHeight(oData, oRowInfo)Gets the value of property height.
getIsClosed(oData, oRowInfo)Gets the value of property isClosed.
getIsDuration(oData, oRowInfo)Gets the value of property isDuration.
getTailLength(oData, oRowInfo)Gets the value of property tailLength.
setHeadLength(sHeadLength)Sets a new value for property headLength.
setHeight(sHeight)Sets a new value for property height.
setIsClosed(bIsClosed)Sets a new value for property isClosed.
setIsDuration(bIsDuration)Sets a new value for property isDuration.
setTailLength(sTailLength)Sets a new value for property tailLength.
Constructor Detail
new sap.gantt.shape.ext.Chevron(sId?, mSettings?)
Creates and initializes a new Chevron 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.Chevron.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.ext.Chevron 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.Chevron.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.ext.Chevron.
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'.

Your application should not configure this value. Instead, the getter calculates the value of d by using property time, endTime, tailLength, headLength, and height.

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

Head length of a chevron 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 headLength.
getHeight(oData, oRowInfo): number
Gets the value of property height.

Height of a chevron 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 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.
getIsDuration(oData, oRowInfo): boolean
Gets the value of property isDuration.
Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{boolean} Value of property isDuration.
getTailLength(oData, oRowInfo): number
Gets the value of property tailLength.

Tail length of a chevron 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 tailLength.
setHeadLength(sHeadLength): sap.gantt.shape.ext.Chevron
Sets a new value for property headLength.

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

Default value is 5.

Parameters:
{number}sHeadLength New value for property headLength
Returns:
{sap.gantt.shape.ext.Chevron} Reference to this in order to allow method chaining
setHeight(sHeight): sap.gantt.shape.ext.Chevron
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 15.

Parameters:
{number}sHeight New value for property height
Returns:
{sap.gantt.shape.ext.Chevron} Reference to this in order to allow method chaining
setIsClosed(bIsClosed): sap.gantt.shape.ext.Chevron
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.Chevron} Reference to this in order to allow method chaining
setIsDuration(bIsDuration): sap.gantt.shape.ext.Chevron
Sets a new value for property isDuration.

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

Default value is true.

Parameters:
{boolean}bIsDuration New value for property isDuration
Returns:
{sap.gantt.shape.ext.Chevron} Reference to this in order to allow method chaining
setTailLength(sTailLength): sap.gantt.shape.ext.Chevron
Sets a new value for property tailLength.

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

Default value is 5.

Parameters:
{number}sTailLength New value for property tailLength
Returns:
{sap.gantt.shape.ext.Chevron} Reference to this in order to allow method chaining