Class Line

All Implemented Interfaces:
BorderProperties, GeneralProperties, LineProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable

public class Line extends AbstractLineElement implements Cloneable
With the Line class you can draw a vertical or horizontal line anywhere in your report. You can draw a line in one section only or a line which spans multiple sections. A line differs from a border line in the report. You can place a line anywhere with any length, a border line is always attached to an element, i.e. to a FieldElement or a Text element. The line can span multiple sections, a border line cannot.
You can create a line using the methods Section.addHorizontalLine(int, int, int) and Section.addVerticalLine(int, int, int) in class Section. For vertical lines there are two methods, one adds a vertical line to one section, the other can add a line which spans multiple sections.
If you want to change the color of a line, use the method Element.setForeColor(int) inheritated from Element.

Please note: When the line is rendered, it is drawn from (x1, y1) (included) to (x2, y2) (excluded). This is different from the Java drawLine behavior, which draws both start point and end point of a line.

This class is part of the RDC.
See Also: