SAP Visual Business
UI5 Development: Visualization Object Area
Tags:
Area
An area VO is used to visualize a closed polygon
CLSID | {00100000-2012-0004-B001-F311DE491C77} |
The attributes of the area are the following:
Attribute | Binding | Type | H/N | Default | Description |
type | No | string | Yes/Yes | must be the above CLSID | |
id | No | string | Yes/Yes | specifies the id of the VO | |
datasource | No | string | path to a data node | ||
posarray | Yes | vectorarray | Yes/Yes | boundary points of the VO | |
tooltip | Yes | string | No/Yes | tooltip text of the VO | |
color | Yes | color | No/Yes | fill color of the area | |
colorBorder | Yes | color | No/Yes | border color of the area | |
dothotScale | Yes | vector | Yes/Yes | 1;1;1 | x,y,z only x factor is used to scale the radius |
hotDeltaColor | Yes | string | No/Yes | relative or absolute color value that is applied to all color values when the VO is hot | |
fxsize | Yes | boolean | Yes/Yes | when set, the VO should not scale | |
fxdir | Yes | boolean | No/Yes | the VO does not rotate when the map is rotated. | |
DragSource | No | object | No/Yes | drag filter information | |
DropSource | No | object | No/Yes | drop filter information |
Events | H/N | Description |
Click | Yes/Yes | fired when the VO is clicked or there is a corresponding touch event on the VO |
ContextMenu | Yes/Yes | fired when there is a right click or a corresponding touch event on the VO |
HandleContextMenu | Yes/No | fired when there is a click or touch on a design handle |
Remarks
For the area it is not necessary that the polygon is closed, this means, that the last point in the vector array does not need to match the first one.
Sample
{
"id": "Area",
"type": "{00100000-2012-0004-B001-F311DE491C77}",
"datasource": "Areas",
"posarray.bind": "Areas.PosList",
"scale": "1.0;1.0;1.0",
"color.bind": "Areas.Color",
"colorBorder.bind": "Areas.BorderColor",
"tooltip.bind": "Areas.ToolTip",
"hotDeltaColor": "RHLSA(0;1.0;1.0;2.0)"
}