KeggRect: A class for representing a rectangle.

KeggRectR Documentation

A class for representing a rectangle.

Description

A class for representing a rectangle.

A class for representing a rectangle.

Details

This class represents a rectangle, used for graphical representation.

Arguments to the constructor are:

left: Coordinate of left border.

right: Coordinate of right border.

top: Coordinate of top border.

bottom: Coordinate of bottom border.

Super class

biodbKegg::KeggShape -> KeggRect

Methods

Public methods

Inherited methods

Method new()

Initialize new instance.

Usage
KeggRect$new(left, top, bottom, right, ...)
Arguments
left

Coordinate of rectangle's left side.

top

Coordinate of rectangle's top side.

bottom

Coordinate of rectangle's bottom side.

right

Coordinate of rectangle's right side.

...

Additional parameters are passed to super class' initializer.

Returns

Nothing.


Method clone()

The objects of this class are cloneable with this method.

Usage
KeggRect$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

KeggShape, KeggCircle.

Examples

# Create a rectangle instance
r <- KeggRect$new(left=10, top=10, bottom=20, right=30, color='yellow')

# Draw a rectangle on current image

r$draw()



pkrog/biodbKegg documentation built on Oct. 1, 2022, 6:27 p.m.