Abstract Class sap.gantt.def.pattern.SlashPatternModule: sap/gantt/def/pattern/SlashPattern

extends PatternBase

Slash pattern defined by a path. Stroke color and stroke width of the path can be changed by corresponding properties.

Tile Detail:tileHeighttileWidthbackgroundColorstrokeColorstrokeWidth

Constructor Summary
new sap.gantt.def.pattern.SlashPattern(sId?, mSettings?)Creates and initializes a slash pattern defined for later reuse.
Method Summary
sap.gantt.def.pattern.SlashPattern.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.def.pattern.SlashPattern with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.def.pattern.SlashPattern.getMetadata()Returns a metadata object for class sap.gantt.def.pattern.SlashPattern.
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.SlashPattern(sId?, mSettings?)
Creates and initializes a slash 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 for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Method Detail
sap.gantt.def.pattern.SlashPattern.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.def.pattern.SlashPattern 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.SlashPattern.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.def.pattern.SlashPattern.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getPath(): string
Gets current value of property path.

Value of d attribute in Path element. The value is influenced by property tileWidth and tileHeight. If this value is changed by coding, the logic cannot be 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 d attribute in Path element. The value is influenced by property tileWidth and tileHeight. If this value is changed by coding, the logic cannot be 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.SlashPattern} 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.SlashPattern} Reference to this in order to allow method chaining
setStrokeWidth(iStrokeWidth): sap.gantt.def.pattern.SlashPattern
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.SlashPattern} Reference to this in order to allow method chaining