Class sap.gantt.shape.ext.rls.SelectedRelationshipModule: sap/gantt/shape/ext/rls/SelectedRelationship

extends Relationship

Provides an implementation of shape for drawing relationships with red and wider lines when they are selected.

Constructor Summary
new sap.gantt.shape.ext.rls.SelectedRelationship(sId?, mSettings?)Creates and initializes a SelectedRelationship object

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.

Method Summary
sap.gantt.shape.ext.rls.SelectedRelationship.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.ext.rls.SelectedRelationship with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.ext.rls.SelectedRelationship.getMetadata()Returns a metadata object for class sap.gantt.shape.ext.rls.SelectedRelationship.
getFill(oData)Gets the value of fill.
getStroke(oData)Gets the value of stroke.
getStrokeWidth(oData)Gets the value of strokeWidth.
setStroke(sStroke)Sets a new value for property stroke.
setStrokeWidth(iStrokeWidth)Sets a new value for property strokeWidth.
Constructor Detail
new sap.gantt.shape.ext.rls.SelectedRelationship(sId?, mSettings?)
Creates and initializes a SelectedRelationship object

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:

In addition, all settings applicable to the base type sap.gantt.shape.ext.rls.Relationship can be used as well.

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

oClassInfo might contain the same kind of information as described in sap.gantt.shape.ext.rls.Relationship.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.rls.SelectedRelationship.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.ext.rls.SelectedRelationship.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getFill(oData): string
Gets the value of fill.

See sap.gantt.shape.Shape#getFill for a detailed description of fill.

Parameters:
{object}oData Shape data.
Returns:
{string} Hard coded value: "red".
getStroke(oData): string
Gets the value of stroke.

See sap.gantt.shape.Shape#getStroke for a detailed description of stroke.

Parameters:
{object}oData Shape data.
Returns:
{string} Hard coded value: "red".
getStrokeWidth(oData): int
Gets the value of strokeWidth.

See sap.gantt.shape.Shape#getStrokeWidth for a detailed description of strokeWidth.

Parameters:
{object}oData Shape data.
Returns:
{int} Hard coded value: 2.
Sets a new value for property stroke.

Line color of the relationship.

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

Parameters:
{string}sStroke New value for property stroke
Returns:
{sap.gantt.shape.ext.rls.SelectedRelationship} Reference to this in order to allow method chaining
setStrokeWidth(iStrokeWidth): sap.gantt.shape.ext.rls.SelectedRelationship
Sets a new value for property strokeWidth.

Width of the relationship line.

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

Parameters:
{int}iStrokeWidth New value for property strokeWidth
Returns:
{sap.gantt.shape.ext.rls.SelectedRelationship} Reference to this in order to allow method chaining