BBjFormLine::setEndPoint

Description

In BBj 4.0 and higher, this method sets the end point of the line.

Syntax

Return Value

Method

void

setEndPoint(Point point)

void

setEndPoint(double x, double y)

Parameters

Variable

Description

point

Specifies the end point of the line.

x

Specifies the x coordinate.

y

Specifies the y coordinate.

Return Value

None.

Remarks

A line is drawn between two points. The setPosition method sets the first point while the setEndPoint method sets the other point.

Example

REM Set line end point

REM Obtain the instance to the BBjAPI object
myAPI!=BBjAPI()

REM Obtain an instance of a default BBjPrinter object
LET myBBjPrinter!=myAPI!.getBBjPrinter(0)

REM Get BBjForm for the selected printer
LET myBBjForm!=myBBjPrinter!.getForm(1)

REM Get a new page
LET myBBjFormPage!=myBBjForm!.createPage()

REM Get a new line
LET para!=myBBjFormPage!.newLine()

REM Set line end point
para!.setEndPoint(new java.awt.Point(144,144))

REM Set line end point (alternate)
para!.setEndPoint(144,144)

RELEASE

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.