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

Class Shape

source code

Known Subclasses:

Base class for shapes

Instance Methods [hide private]
 
__init__(self) source code
 
adjust(self, x, y, i=-1)
Brief Description
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
Point
getCenter(self)
Returns: The center of the shape
source code
 
setCenter(self, center) 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
Method Details [hide private]

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

source code 

Brief Description

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

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.

getCenter(self)

source code 
Returns: Point
The center of the shape

intersects(self, p)

source code 
Parameters:
  • p (Point) - point to test
Returns: bool
True if p intersects the shape, False otherwise

getHandles(self)

source code 
Returns: Point[]
List of points that define the center of handles for resizing the shape