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.