Package arcmap :: Module shapes :: Class Circle
[hide private]
[frames] | no frames]

Class Circle

source code

Shape --+
        |
       Circle

Instance Methods [hide private]
 
__init__(self, radius, snap=-1) source code
 
adjust(self, x, y, i=-1)
Brief Description
source code
 
setSnapFactor(self, snap) source code
(int, int, int, int)
boundingBox(self)
Returns: a bounding box int the form x, y, x2, y2 where x2 is the x-coordinate of the right edge, y2 as the bottom edge, and so on.
source code
int
getRadius(self)
Returns: the radius of the circle
source code
bool
intersects(self, p)
Returns: True if p intersects the shape, False otherwise
source code
 
shift(self, xoffset, yoffset)
Moves the shape around by x and y
source code
Point[]
getHandles(self)
Returns: List of points that define the center of handles for resizing the shape
source code

Inherited from Shape: getCenter, setCenter

Method Details [hide private]

__init__(self, radius, snap=-1)
(Constructor)

source code 
Overrides: Shape.__init__

adjust(self, x, y, i=-1)

source code 

Brief Description

Parameters:
  • x - Placeholder
  • y - Placeholder
  • i - index of the point to adjust. -1 adjusts the last point
Overrides: Shape.adjust
(inherited documentation)

boundingBox(self)

source code 
Returns: (int, int, int, int)
a bounding box int the form x, y, x2, y2 where x2 is the x-coordinate of the right edge, y2 as the bottom edge, and so on.
Overrides: Shape.boundingBox
(inherited documentation)

getRadius(self)

source code 
Returns: int
the radius of the circle

intersects(self, p)

source code 
Parameters:
  • p - point to test
Returns: bool
True if p intersects the shape, False otherwise
Overrides: Shape.intersects
(inherited documentation)

shift(self, xoffset, yoffset)

source code 

Moves the shape around by x and y

Overrides: Shape.shift
(inherited documentation)

getHandles(self)

source code 
Returns: Point[]
List of points that define the center of handles for resizing the shape
Overrides: Shape.getHandles
(inherited documentation)