BBjFormLine

Description

In BBj 4.00 and higher, the BBjFormLine object allows users to construct a line on a page.

Creation

BBjAPI > BBjPrinter > BBjForm > BBjFormPage > BBjFormLine

The BBjPrintLine object is created through the following BBjFormPage object method:

Return Value

Method

BBjFormLine

newLine()

Methods of BBjFormLine

Return Value

Method

int

getCap()

BBjColor

getLineColor()

int

getMiter()

float

getMiterLimit()

double

getThickness()

void

setCap(int cap)

void

setEndPoint(Point point)

setEndPoint(double x, double y)

void

setLineColor(Color color)

void

setMiter(int miter)

void

setMiterLimit(float limit)

void

setThickness(double thickness)

Methods of BBjFormLine inherited from BBjFormElement

Return Value Method

void

add(BBjFormElement object)

double

getBottomMargin()

Point

getDrawingOrigin()

Dimension

getDrawingSize()

double

getDrawingHeight()

double

getDrawingWidth()

double

getDrawingX()

double

getDrawingY()

double

getHeight()

int

getHorizontalSticky()

double

getLeftMargin()

BBjFormPage

getPage()

BBjFormElement

getParent()

Point

getPosition()

double

getRightMargin()

Dimension

getSize()

double

getTopMargin()

int

getVerticalSticky()

double

getWidth()

double

getX()

double

getY()

int

isChild()

int

isHorizontalFill()

int

isVerticalFill()

void

remove(BBjFormElement object)

void

setBottomMargin(double margin)

void

setHeight(double height)

void

setHorizontalFill(int fill)

void

setHorizontalSticky(int sticky)

void

setLeftMargin(double margin)

void

setPosition(double x, double y)

setPosition(Point point)

void

setRelative(int relative)

void

setRightMargin(double margin)

void

setSize(double width, double height)

setSize(Dimension size)

void

setTopMargin(double margin)

void

setVerticalFill(int fill)

void

setVerticalSticky(int sticky)

void

setWidth(double width)

Constants

None.

Example

rem 'Get a new line

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 line! = myBBjFormPage!.newLine()
release

See Also

BBjAPI

BBj Object Variables

BBj Object Creation and Assignment

BBj Object Error Handling

BBj Object Operators

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