KeggRect | R Documentation |
A class for representing a rectangle.
A class for representing a rectangle.
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.
biodbKegg::KeggShape
-> KeggRect
new()
Initialize new instance.
KeggRect$new(left, top, bottom, right, ...)
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.
Nothing.
clone()
The objects of this class are cloneable with this method.
KeggRect$clone(deep = FALSE)
deep
Whether to make a deep clone.
KeggShape
, KeggCircle
.
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.