Table. List of additional properties/attributes of the primitive "Elementary figure (ElFigure)"
Identifier |
Name |
Number |
Value
|
lineWdth |
Line:width |
20 |
Line width.
|
lineClr |
Line: color |
21 |
Color name in the view "{color}[-{alpha}]", where:
- "color" — standard color name or its numeric representation of three hexadecimal numbers of individual colors "#RRGGBB";
- "alpha" — level of the alpha [0...255], where 0 — completely transparent.
Examples:
- "red" — solid red color;
- "#FF0000" — solid red color by the digital code;
- "red-127" — half transparent red color.
|
lineStyle |
Line: style |
22 |
Line style: solid, dashed, dotted.
|
bordWdth |
Border: width |
23 |
Border width of the line. Zero width indicates the absence of the border.
|
bordClr |
Border: color |
24 |
Border color (details in attribute 21).
|
fillColor |
Fill: color |
25 |
Fill color (details in attribute 21).
|
fillImg |
Fill: image |
26 |
Image name in the view "[{src}:]{name}", where:
- "src" — source of the image:
- file — directly from the local file by the path;
- res — from the resources table of DB.
- "name" — file path or identifier of the resource.
Examples:
- "res:backLogo" — from the resources table of DB for the identifier "backLogo";
- "backLogo" — like toe the previous;
- "file:/var/tmp/backLogo.png" — from local file by the path "/var/tmp/backLogo.png".
|
orient |
Orientation angle |
28 |
Rotation angle of the widget content.
|
mirror |
Mirroring |
29 |
Mirroring the widget content, limited currently.
|
elLst |
Elements list |
27 |
List of the graphic elements in the format:
- Line. General form of the entry in the list, for static and dynamic parameters (may be mixed):
- "line:({x}|{y}):({x}|{y})[:{width}[:{color}[:{bord_w}[:{bord_clr}[:{line_stl}]]]]]"
- "line:{p1}:{p2}[:w{n}[:c{n}[:w{n}[:c{n}[:s{n}]]]]]"
- Arc. General form of the entry in the list, for static and dynamic parameters (may be mixed):
- "arc:({x}|{y}):({x}|{y}):({x}|{y}):({x}|{y}):({x}|{y})[:{width}[:{color}[:{bord_w}[:{bord_clr}[:{line_stl}]]]]]"
- "arc:{p1}:{p2}:{p3}:{p4}:{p5}[:w{n}[:c{n}[:w{n}[:c{n}[:s{n}]]]]]"
-
- p1, p2 — start and end points of the elliptic arc, respectively;
- p3 — center of the arc;
- p4 — first radius;
- p5 — second radius.
- Bézier curve. General form of the entry in the list, for static and dynamic parameters (may be mixed):
- "bezier:({x}|{y}):({x}|{y}):({x}|{y}):({x}|{y})[:{width}[:{color}[:{bord_w}[:{bord_clr}[:{line_stl}]]]]]"
- "bezier:{p1}:{p2}:{p3}:{p4}[:w{n}[:c{n}[:w{n}[:c{n}[:s{n}]]]]]"
- Fill. General form of the entry in the list, for static and dynamic parameters (may be mixed):
- "fill:({x}|{y}):({x}|{y}):...:({x}|{y})[:{fill_clr}[:{fill_img}]]"
- "fill:{p1}:{p2}:...:{pN}[:c{n}[:i{n}]]"
Where:
- x, y — direct point (x,y), coordinates in pixels with floating point;
- p1 ... pN — dynamic point 1...N;
- width, bord_w — direct width of the line and border in pixels with floating point;
- w{n} — dynamic width 'n';
- color, bord_clr, fill_clr — direct color of the line, border and fill in name or 32bit code with alpha: {name}[-{AAA}], #RRGGBB-AAA;
- c{n} — dynamic color 'n';
- line_stl — direct line style: 0-Solid, 1-Dashed, 2-Dotted;
- s{n} — dynamic style 'n';
- fill_img — direct fill image in the view "[{src}%3A]{name}", where:
- "src" — source of the image:
- file — directly from local file by the path;
- res — from the resources table of DB.
- "name" — file path or identifier of the resource.
- i{n} — dynamic fill image 'n'.
For example:
- line:(50|25):(90.5|25):2:yellow:3:green:2
- arc:(25|50):(25|50):1:4:(25|50)::#000000-0
- fill:(25|50):(25|50):c2:i2
- fill:(50|25):(90.5|25):(90|50):(50|50):#d3d3d3:h_31
|
Attributes of each point from the graphic figures list elLst
|
p{n}x |
Point {n}:x |
30+n*6 |
Coordinate 'x' of the point n.
|
p{n}y |
Point {n}:y |
30+n*6+1 |
Coordinate 'y' of the point n.
|
w{n} |
Width {n} |
30+n*6+2 |
Width n.
|
с{n} |
Color {n} |
30+n*6+3 |
Color n (details in attribute 21).
|
i{n} |
Image {n} |
30+n*6+4 |
Image n (details in attribute 26).
|
s{n} |
Style {n} |
30+n*6+5 |
Style n.
|