Class sap.gantt.shape.ext.ulc.UlcMiddleLineModule: sap/gantt/shape/ext/ulc/UlcMiddleLine

extends Line

This shape is used to draw a middle line, which indicates the position of 50%.

Graphic Effect is:

Constructor Summary
new sap.gantt.shape.ext.ulc.UlcMiddleLine(sId?, mSettings?)Creates and initializes a fragment of the Utilization Line Chart.
Method Summary
sap.gantt.shape.ext.ulc.UlcMiddleLine.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.ext.ulc.UlcMiddleLine with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.ext.ulc.UlcMiddleLine.getMetadata()Returns a metadata object for class sap.gantt.shape.ext.ulc.UlcMiddleLine.
getStroke(oData, oRowInfo)Gets the value of property stroke.
getStrokeDasharray(oData, oRowInfo)Gets the value of property strokeDasharray.
getStrokeWidth(oData, oRowInfo)Gets the value of property strokeWidth.
getX1(oData, oRowInfo)Gets the value of property x1.
getX2(oData, oRowInfo)Gets the value of property x2.
getY1(oData, oRowInfo)Gets the value of property y1.
getY2(oData, oRowInfo)Gets the value of property y2.
Constructor Detail
new sap.gantt.shape.ext.ulc.UlcMiddleLine(sId?, mSettings?)
Creates and initializes a fragment of the Utilization Line Chart.
Parameters:
{string}sId? ID for the new control, generated automatically if no ID is given
{object}mSettings? Initial settings of the new control
Method Detail
sap.gantt.shape.ext.ulc.UlcMiddleLine.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.ext.ulc.UlcMiddleLine 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.Line.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.ulc.UlcMiddleLine.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.ext.ulc.UlcMiddleLine.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getStroke(oData, oRowInfo): string
Gets the value of property stroke.

Standard SVG 'stroke' attribute. See SVG 1.1 specification for 'stroke'. Note: You can provide the stroke with HTML colors and the URL reference to a paint server. Paint server definitions can be retrieved from paint servers rendered by sap.gantt.GanttChartContainer, sap.gantt.GanttChartWithTable, or sap.gantt.GanttChart.

The default value is "#CAC7BA".

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{string} Value of property stroke.
getStrokeDasharray(oData, oRowInfo): string
Gets the value of property strokeDasharray.

Standard SVG 'stroke-dasharray' attribute. See SVG 1.1 specification for 'stroke-dasharray'.

The default value is "5,5".

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

Standard SVG 'stroke-width' attribute. See SVG 1.1 specification for 'stroke-width'.

The default value is 1.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{number} Value of property strokeWidth.
getX1(oData, oRowInfo): number
Gets the value of property x1.

x coordinate of the start of the line. See SVG 1.1 specification for 'x1' attribute of 'line'.

Usually an application does not configure this value. Instead, the getter calculates the value of x1 by using the view boundary for the visible area in the Gantt Chart.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and the row data.
Returns:
{number} Value of property x1.
getX2(oData, oRowInfo): number
Gets the value of property x2.

x coordinate of the end of the line. See SVG 1.1 specification for 'x2' attribute of 'line'.

Usually an application does not configure this value. Instead, the getter calculates the value of 'x2' by using the view boundary's terminal point, which is filtered by the visible area in a Gantt Chart.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and the row data.
Returns:
{number} Value of property x2.
getY1(oData, oRowInfo): number
Gets the value of property y1.

y coordinate of the start of the line. See SVG 1.1 specification for 'y1' attribute of 'line'.

At the top of each row, a certain amount of space (in the shape of a rectangular frame) is reserved for over capacity area. You can use 'maxVisibleRatio' in 'shapeConfig' to specify the amount of area to reserve. With the reserved area deducted from a row, the height of the middle line is set to 50% of the row height.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and the row data.
Returns:
{number} Value of property y1.
getY2(oData, oRowInfo): number
Gets the value of property y2.

y coordinate of the end of the line. See SVG 1.1 specification for 'y2' attribute of 'line'.

y2 shares the same value with y1.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and the row data.
Returns:
{number} Value of property y2.