Class sap.gantt.shape.ext.ubc.UbcTooltipRectangleModule: sap/gantt/shape/ext/ubc/UbcTooltipRectangle

extends Rectangle

This shape is used to represent an invisible rectangle with tooltips. Note that a tooltip appears only when the title tag is specified on the rectangle.

Graphic Effect is:
Capacity: 50 Required Capacity: 65Capacity: 45 Required Capacity: 10Capacity: 65 Required Capacity: 75Capacity: 75 Required Capacity: 35Capacity: 55 Required Capacity: 55Capacity: 55 Required Capacity: 75

Constructor Summary
new sap.gantt.shape.ext.ubc.UbcTooltipRectangle(sId?, mSettings?)Creates and initializes a fragment of the Utilization Line Chart.
Method Summary
sap.gantt.shape.ext.ubc.UbcTooltipRectangle.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.ext.ubc.UbcTooltipRectangle with name sClassName and enriches it with the information contained in oClassInfo.
sap.gantt.shape.ext.ubc.UbcTooltipRectangle.getMetadata()Returns a metadata object for class sap.gantt.shape.ext.ubc.UbcTooltipRectangle.
getEnableSelection(oData, oRowInfo)Gets the value of property enableSelection.
getFillOpacity(oData, oRowInfo)Gets the value of property fillOpacity.
getHeight(oData, oRowInfo)Gets the value of property height.
getStrokeOpacity(oData, oRowInfo)Gets the value of property strokeOpacity.
getTitle(oData, oRowInfo)Gets the value of property title.
getWidth(oData, oRowInfo)Gets the value of property width.
getX(oData, oRowInfo)Gets the value of property x.
getY(oData, oRowInfo)Gets the value of property y.
Constructor Detail
new sap.gantt.shape.ext.ubc.UbcTooltipRectangle(sId?, mSettings?)
Creates and initializes a fragment of the Utilization Line Chart.
Parameters:
{string}sId? ID of the new control, generated automatically if no ID is given
{object}mSettings? Initial settings of the new control
Method Detail
sap.gantt.shape.ext.ubc.UbcTooltipRectangle.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.ext.ubc.UbcTooltipRectangle 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.Rectangle.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.ubc.UbcTooltipRectangle.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.gantt.shape.ext.ubc.UbcTooltipRectangle.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getEnableSelection(oData, oRowInfo): boolean
Gets the value of property enableSelection.

This property determines whether a shape is enabled for a selection behavior. The default value for the Utilization Line Chart is false.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information about the row and row data.
Returns:
{boolean} Value of property enableSelection.
getFillOpacity(oData, oRowInfo): number
Gets the value of property fillOpacity.

Standard SVG 'fill-Opacity' attribute. See SVG 1.1 specification for 'fill-opacity'. The value of fillOpacity for a rectangle with tooltips must be 0.

The default value is 0.

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

Height of a rectangle. See SVG 1.1 specification for the 'height' attribute of 'rect'.

The default value is the height of the row minus 1px, which is the width of stroke.

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

Standard SVG 'stroke-Opacity' attribute. See SVG 1.1 specification for 'stroke-opacity'. The value of strokeOpacity for a rectangle with tooltips must be 0.

The default value is 0.

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

A title is visualized as a tooltip in web browsers. Notes: Use character entities to perform simple text tabbing and breaking. (Use " " for tab and " " for break.) See SVG 1.1 specification for 'title'.

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

Width of a rectangle. See SVG 1.1 specification for the 'width' attribute of 'rect'.

Your application should not configure this value. Instead, the getter calculates the width by using property start_date and property end_date. If your application overwrites the getter by configuration or code, accurate results cannot be guaranteed.

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

x coordinate of the top-left point of a rectangle. See SVG 1.1 specification for the 'x' attribute of 'rect'.

Your application should not configure this value. Instead, the getter calculates the value of x by using property start_date.

Parameters:
{object}oData Shape data.
{object}oRowInfo Information of the row and row data.
Returns:
{number} Value of property x.
getY(oData, oRowInfo): number
Gets the value of property y.

y coordinate of the top-left point of a rectangle. See SVG 1.1 specification for the 'y' attribute of 'rect'.

Your application should not configure this value. Instead, the getter calculates the value of y by using parameter oRowInfo.

The default value is the y coordinate of the top-left point of the row.

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