line


The reporting engine will construct the bounds for the line shape using the x1, y1 coordinates and the given width or height. If no width or height is given, the missing values will be computed from the difference between x2 and x1 and y2 to y1.

The values x1, y1 and x2, y2 define the start and end-point of the line within the element. This is used to specify the direction of the line.

Line shapes will always be scaled, without preserving the aspect ratio.

Attributes

Attributes

Description

color

Sets the font color by the using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below.

Type: String
Default Value: black
Predefined Values: black | blue| cyan | darkGray | gray | green | lightGray | magenta | orange | pink | red | white | yellow

height

Determines the minimum height. Value is a whole number where each increment is equivalent to 1/72 of an inch or percentage.

Type: Integer
Default: If no height is specified, the height will be derived from the difference between y1 and y2.

name

Used to reference the element later. Functions pick up elements by their name.

Type: String

stroke-style

Defines how the lines of the shape get drawn.

Type: String
Default Value: solid
Predefined Values: solid | dashed | dotted | dot-dash | dot-dot-dash

weight

The weight defines the width of the pen used to draw the line.

Type: Integer
Default: 1

width

Set the horizontal width of the object.

Default: If no width is specified, the width will be derived from the difference between x1 and x2.

x1

Defines the horizontal starting position of the line defined by a value or percentage.

x2

Defines the horizontal ending position of the line defined by a value or percentage.

y1

Defines the vertical starting position of the line defined by a value or percentage.

y2

Defines the vertical ending position of the line defined by a value or percentage.