Class sap.gantt.def.pattern.BackSlashPatternModule: sap/gantt/def/pattern/BackSlashPattern

extends PatternBase

Backslash pattern defined by a path. The stroke color and stroke width of the path can be modified with properties.

Tile Detail:tileHeighttileWidthbackgroundColorstrokeColorstrokeWidth

Constructor Summary
new sap.gantt.def.pattern.BackSlashPattern(sId?, mSettings?)Creates and initializes a backslash pattern defined for later reuse.
Method Summary
sap.gantt.def.pattern.BackSlashPattern.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.def.pattern.BackSlashPattern with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.def.pattern.BackSlashPattern.getMetadata()Returns a metadata object for class sap.gantt.def.pattern.BackSlashPattern.
getPath()Gets current value of property path.
getStroke()Gets current value of property stroke.
getStrokeWidth()Gets current value of property strokeWidth.
setPath(sPath)Sets a new value for property path.
setStroke(sStroke)Sets a new value for property stroke.
setStrokeWidth(iStrokeWidth)Sets a new value for property strokeWidth.
Constructor Detail
new sap.gantt.def.pattern.BackSlashPattern(sId?, mSettings?)
Creates and initializes a backslash pattern defined for later reuse.

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.def.pattern.PatternBase 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.def.pattern.BackSlashPattern.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.def.pattern.BackSlashPattern 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.def.pattern.PatternBase.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.def.pattern.BackSlashPattern.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.def.pattern.BackSlashPattern.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getPath(): string
Gets current value of property path.

Value of the d attribute in Path element. The value is affected by property tileWidth and tileHeight. If this value is changed by coding, the effect is not guaranteed.

Returns:
{string} Value of property path
Gets current value of property stroke.

Stroke color of the path element.

Returns:
{sap.gantt.ValueSVGPaintServer} Value of property stroke
getStrokeWidth(): int
Gets current value of property strokeWidth.

Stroke width of the path element.

Default value is 2.

Returns:
{int} Value of property strokeWidth
Sets a new value for property path.

Value of the d attribute in Path element. The value is affected by property tileWidth and tileHeight. If this value is changed by coding, the effect is not guaranteed.

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

Parameters:
{string}sPath New value for property path
Returns:
{sap.gantt.def.pattern.BackSlashPattern} Reference to this in order to allow method chaining
Sets a new value for property stroke.

Stroke color of the path element.

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

Parameters:
{sap.gantt.ValueSVGPaintServer}sStroke New value for property stroke
Returns:
{sap.gantt.def.pattern.BackSlashPattern} Reference to this in order to allow method chaining
setStrokeWidth(iStrokeWidth): sap.gantt.def.pattern.BackSlashPattern
Sets a new value for property strokeWidth.

Stroke width of the path element.

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

Default value is 2.

Parameters:
{int}iStrokeWidth New value for property strokeWidth
Returns:
{sap.gantt.def.pattern.BackSlashPattern} Reference to this in order to allow method chaining