| KeggCircle | R Documentation |
A class for representing a circle.
A class for representing a circle.
This class represents a rectangle, used for graphical representation. It is used by KeggPathwayConn::extractPathwayMapShapes() method.
Arguments to the constructor are:
x: X coordinate of center.
y: Y coordinate of center.
r: Radius.
biodbKegg::KeggShape -> KeggCircle
new()Initialize new instance.
KeggCircle$new(x, y, r, ...)
xAbscissa of the circle's center.
yOrdinate of the circle's center.
rRadius of the circle.
...Additional parameters are passed to super class' initializer.
Nothing.
getX()Get the X coordinate.
KeggCircle$getX()
The X coordinate.
getY()Get the Y coordinate.
KeggCircle$getY()
The Y coordinate.
getRadius()Get the radius.
KeggCircle$getRadius()
The radius.
clone()The objects of this class are cloneable with this method.
KeggCircle$clone(deep = FALSE)
deepWhether to make a deep clone.
KeggShape, KeggRect.
# Create an instance c1 <- KeggCircle$new(x=12, y=5, r=3) # Since it inherits from KeggShape, a color and a label can be set c2 <- KeggCircle$new(x=12, y=5, r=3, color='blue', label='Circle 2') # Getting center c1$getX() c1$getY() # Getting radius c1#getRadius() # Draw a circle on the current image c1$draw()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.