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
getFill(oData)Gets the value of fill
. setStroke(sStroke)Sets a new value for property stroke
. setStrokeWidth(iStrokeWidth)Sets a new value for property strokeWidth
. destroySelectedShape,
getArrowSideLength,
getCategory,
getFromDataId,
getFromObjectPath,
getFromShapeId,
getHtmlClass,
getIsClosed,
getIsDuration,
getLShapeforTypeFS,
getMinXLen,
getSelectedShape,
getShowEnd,
getShowStart,
getToDataId,
getToObjectPath,
getToShapeId,
getType,
setArrowSideLength,
setCategory,
setFill,
setFromDataId,
setFromObjectPath,
setFromShapeId,
setHtmlClass,
setIsClosed,
setIsDuration,
setLShapeforTypeFS,
setMinXLen,
setSelectedShape,
setShowEnd,
setShowStart,
setToDataId,
setToObjectPath,
setToShapeId,
setType 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 |
Returns a metadata object for class sap.gantt.shape.ext.rls.SelectedRelationship.
Returns:
getFill(oData): string
Parameters:
{object} | oData | Shape data. |
Returns:
{string} | Hard coded value: "red". |
getStroke(oData): string
Parameters:
{object} | oData | Shape data. |
Returns:
{string} | Hard coded value: "red". |
getStrokeWidth(oData): int
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:
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: