XFA Specification
Chapter 2, Template Features for Designing Static Forms
Basic Composition
34
Restrict the value, limiting the measurement to whole numbers
Line, Arc, Rectangle and Border Formatting
A container element may describe formatting characteristics for lines, arcs, rectangles and borders. Such
characteristics include handedness, border, and fill.
Handedness
Any sort of a line, whether it be a line element or a border edge, follows a logical path. This path has zero
width. During the process of rendering of the line, however, the application applies a thickness to create a
visible line. Handedness provides the forms designer with a means to specify how that thickness is applied
to the line.
Handedness of Stroke Elements
The
edges
, and
corners
elements represent strokes. Many XFA elements that represent graphical
elements (such as
lines
,
rectangles
, and
borders
) have outlines that are rendered according to one
or more strokes.
These elements posses an attribute which determines the thickness of the stroke, and as the thickness
increases the stroke appears to become wider and spread in one or more directions. To understand this,
recognize that a stroke is a vector possessing a point of origin, and a measurement representing the
length; the imaginary line that extends from the origin along the length is the stroke's path. Therefore,
there are three different ways for the thickness of a stroke element to be defined:
The stroke's thickness extends to left of the path — this stroke is defined as left-handed
The stroke's thickness extends equally to both the left and right of the path — this stroke is defined as
even-handed
The stroke's thickness extends to right of the path — this stroke is defined as right-handed
The following diagram illustrates the three possibilities, as three thick black strokes along a common path
shown in green.
HAND-1
Edge thickness rendering and handedness
The elements that produce the above diagram are:
<draw
x="1in" y="1in" w="0.6in" h="0.8in">
<value>
<line
hand="left" slope="/">
<edge
thickness="0.2in"/>
</line>
</value>
Home Index Bookmark Pages
Pages: Home Index All Pages