Difference between revisions of "Shape drawing definition"

From wiki.fine.cz
Jump to navigation Jump to search
Line 53: Line 53:
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Kind</code>
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Kind</code>
|Type of element defined as <code>Line</code>, <code>Polygon</code>, <code>Polyline</code> or <code>Text</code>
|Type of element defined as <code>Line</code>, <code>Polygon</code>, <code>Polyline</code> or <code>Text</code>
|(empty)
|-
|Color
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Color</code>
|Color of element
|(empty)
|(empty)
|-
|-
Line 76: Line 81:
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Pt2</code>
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Pt2</code>
|End point of line, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner
|End point of line, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner
|(empty)
|-
|Color
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Color</code>
|Color of element
|(empty)
|(empty)
|-
|-
Line 103: Line 103:
!Description
!Description
!Default
!Default
|-
|Color
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Color</code>
|Color of element
|(empty)
|-
|-
|Line width
|Line width
|<sup>[[Legend of XML elements|[A]]]</sup> <code>LineWidth</code>
|<sup>[[Legend of XML elements|[A]]]</sup> <code>LineWidth</code>
|Thickness of pen as multiplier of default pen width <code>nan</code> or <code>1.0</code> for default width, <code>0.5</code> fot thin line and <code>2.0</code> for thick line
|Thickness of pen as multiplier of default pen width <code>nan</code> or <code>1.0</code> for default width, <code>0.5</code> fot thin line and <code>2.0</code> for thick line
|(empty)
|-
|Fill color
|<sup>[[Legend of XML elements|[A]]]</sup> <code>FillColor</code>
|[[Colors|Color]] of elements fill, <code>clNone</code> for not fill
|(empty)
|(empty)
|-
|-
Line 125: Line 125:
!Description
!Description
!Default
!Default
|-
|Color
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Color</code>
|Color of element
|(empty)
|-
|-
|Line width
|Line width
Line 136: Line 131:
|(empty)
|(empty)
|-
|-
|Points
|Center
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Pt</code>
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Center</code>
|Two or more points, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner
|Center of circle, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner
|(empty)
|-
|Radius
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Radius</code>
|Radius of circle, in range (0, 0.5>, where 0.5 is circle of diameter same as height of input rectangle
|(empty)
|-
|Fill color
|<sup>[[Legend of XML elements|[A]]]</sup> <code>FillColor</code>
|[[Colors|Color]] of elements fill, <code>clNone</code> for not fill
|(empty)
|(empty)
|}
|}
Line 148: Line 153:
!Default
!Default
|-
|-
|Color
|Text
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Color</code>
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Text</code>
|[[Colors|Color]] of following elements
|Text of element
|(empty)
|-
|Horizontal position
|<sup>[[Legend of XML elements|[A]]]</sup> <code>PtX</code>
|Horizontal position of text, in range <0, 1>, where 0 is left and 1 is right
|(empty)
|-
|Horizontal alignment
|<sup>[[Legend of XML elements|[A]]]</sup> <code>AlignHorz</code>
|Alignment of insertion point: <code>Left</code>, <code>Center</code> or <code>Right</code>
|(empty)
|(empty)
|}
|}


==== Picture ====
==== Picture ====

Revision as of 14:36, 7 June 2022

Definition of shape drawn. There are two types of shape: Sample and Picture

Sample

Data XML definition

Property XML Description Default
VErtical alignment [A] AlignVErt Alignment of insertion point: Top, Center or Bottom (empty)
Shapes to draw [A] ElemShape Shapes that are drawn (one or more elements) (empty)

<ShapeDefinition AlignVert="Center">

    <ElemShape Kind="Line" Color="$00FF0000" LineWidth="nan" Mirror="true">

      <Pt1 X="0" Y="0" />

      <Pt2 X="0.5" Y="0" />

    </ElemShape>

    <ElemShape Kind="Polygon" Color="$00FF0000" FillColor="$00FFC0C0" LineWidth="nan" Mirror="false">

      <Pt X="0.5" Y="0" />

      <Pt X="0.75" Y="1" />

      <Pt X="0.25" Y="1" />

    </ElemShape>

</ShapeDefinition>

ElemShape

Element of shape.

Property XML Description Default
Element type [A] Kind Type of element defined as Line, Polygon, Polyline or Text (empty)
Color [A] Color Color of element (empty)
Mirror [A] Mirror Boolean value. If true, the shape is mirrored if user selects align to right in column definition (empty)
Line
Property XML Description Default
Start point [A] Pt1 Start point of line, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner (empty)
End point [A] Pt2 End point of line, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner (empty)
Line width [A] LineWidth Thickness of pen as multiplier of default pen width nan or 1.0 for default width, 0.5 fot thin line and 2.0 for thick line (empty)

<ElemShape Kind="Line" Color="$00FF0000" LineWidth="0.2" Mirror="true">

  <Pt1 X="0" Y="0" />

  <Pt2 X="0.5" Y="0" />

</ElemShape>

Polygon/Polyline

Polygon is closed and Polyline is open. The parameters are same

Property XML Description Default
Line width [A] LineWidth Thickness of pen as multiplier of default pen width nan or 1.0 for default width, 0.5 fot thin line and 2.0 for thick line (empty)
Fill color [A] FillColor Color of elements fill, clNone for not fill (empty)
Points [E] Pt Two or more points, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner (empty)
Circle
Property XML Description Default
Line width [A] LineWidth Thickness of pen as multiplier of default pen width nan or 1.0 for default width, 0.5 fot thin line and 2.0 for thick line (empty)
Center [E] Center Center of circle, the coordinates are ralative to drawing area [0, 0] is bottom left corner, [1, 1] is right top corner (empty)
Radius [A] Radius Radius of circle, in range (0, 0.5>, where 0.5 is circle of diameter same as height of input rectangle (empty)
Fill color [A] FillColor Color of elements fill, clNone for not fill (empty)
Text
Property XML Description Default
Text [A] Text Text of element (empty)
Horizontal position [A] PtX Horizontal position of text, in range <0, 1>, where 0 is left and 1 is right (empty)
Horizontal alignment [A] AlignHorz Alignment of insertion point: Left, Center or Right (empty)

Picture