Method Summary
sap.gantt.shape.Text.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.gantt.shape.Text with name sClassName
and enriches it with the information contained in oClassInfo
. getFontFamily(oData, oRowInfo)Gets the value of property fontFamily
. getFontSize(oData, oRowInfo)Gets the value of property fontSize
. getTag(oData, oRowInfo)Gets the value of property tag
. getText(oData, oRowInfo)Gets the value of property text
. getTextAnchor(oData, oRowInfo)Gets the value of property textAnchor
. getX(oData, oRowInfo)Gets the value of property x
. getY(oData, oRowInfo)Gets the value of property y
. setFontFamily(sFontFamily)Sets a new value for property fontFamily
. setFontSize(sFontSize)Sets a new value for property fontSize
. setTag(sTag)Sets a new value for property tag
. setText(sText)Sets a new value for property text
. setTextAnchor(sTextAnchor)Sets a new value for property textAnchor
. setWrapDy(sWrapDy)Sets a new value for property wrapDy
. setWrapWidth(sWrapWidth)Sets a new value for property wrapWidth
. setX(sX)Sets a new value for property x
. setY(sY)Sets a new value for property y
. Constructor Detail
new sap.gantt.shape.Text(sId?, mSettings?)
Creates and initializes a new Text class.
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:
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.shape.Text.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.gantt.shape.Text with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of information as described in Object.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.Text.
Returns:
getEllipsisWidth(oData, oRowInfo): number
Gets the value of property
ellipsisWidth
.
Ellipsis width if truncate happens. Default value 12 indicates 12px length reserved for ellipsis. If the value is -1, no ellipsis appears even truncate happens. If the value is bigger than -1, ellipsis will be 3 dots in length of this value.
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{number} | Value of property ellipsisWidth . |
getFontFamily(oData, oRowInfo): string
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{string} | Value of property fontFamily . |
getFontSize(oData, oRowInfo): number
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{number} | Value of property fontSize . |
getTag(oData, oRowInfo): string
Gets the value of property
tag
.
SVG tag name of the shape. See SVG 1.1 specification for shapes.
Note: We do not recommend that you change this value using a configuration or coding.
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{string} | Value of property tag . |
getText(oData, oRowInfo): string
Gets the value of property
text
.
Text string.
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{string} | Value of property text . |
getTextAnchor(oData, oRowInfo): string
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{string} | Value of property textAnchor . |
getTruncateWidth(oData, oRowInfo): number
Gets the value of property
truncateWidth
.
Truncating width. Default value -1 indicates truncating function is not activated. To enable truncating, give a truncate width here. If text length exceeds truncate width, text is truncated.
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{number} | Value of property truncateWidth . |
getX(oData, oRowInfo): number
Gets the value of property
x
.
x coordinate of the bottom-left corner of the rectangle. See SVG 1.1 specification for 'x' attribute of 'text'.
Usually applications do not set this value. This getter carries out the calculation using property time
. If you override the default value calculated by the getter, the alignment of the center is not guaranteed.
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{number} | Value of property x . |
getY(oData, oRowInfo): number
Gets the value of property
y
.
y coordinate of the bottom-left corner of the rectangle. See SVG 1.1 specification for 'y' attribute of 'text'.
Usually applications do not set this value. This getter carries out the calculation using parameter oRowInfo
and property height
to align the center of the row rectangle along the y axis. If you override the default value calculated by the getter, the alignment of the center is not guaranteed.
Parameters:
{object} | oData | Shape data. |
{object} | oRowInfo | Information about the row and the row data. |
Returns:
{number} | Value of property y . |
Sets a new value for property
ellipsisWidth
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 12
.
Parameters:
{number} | sEllipsisWidth | New value for property ellipsisWidth |
Returns:
Sets a new value for property
fontFamily
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sFontFamily | New value for property fontFamily |
Returns:
Sets a new value for property
fontSize
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 10
.
Parameters:
{number} | sFontSize | New value for property fontSize |
Returns:
Sets a new value for property
tag
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is text
.
Parameters:
{string} | sTag | New value for property tag |
Returns:
Sets a new value for property
text
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sText | New value for property text |
Returns:
Sets a new value for property
textAnchor
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is start
.
Parameters:
{string} | sTextAnchor | New value for property textAnchor |
Returns:
Sets a new value for property
truncateWidth
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is -1
.
Parameters:
{number} | sTruncateWidth | New value for property truncateWidth |
Returns:
Sets a new value for property
wrapDy
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 20
.
Parameters:
{number} | sWrapDy | New value for property wrapDy |
Returns:
Sets a new value for property
wrapWidth
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is -1
.
Parameters:
{number} | sWrapWidth | New value for property wrapWidth |
Returns:
Sets a new value for property
x
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{number} | sX | New value for property x |
Returns:
Sets a new value for property
y
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{number} | sY | New value for property y |
Returns: