Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package ogl :: Class Diagram |
|
object
--+
|
Diagram
Encapsulates an entire diagram, with methods for drawing. A diagram has an associated ShapeCanvas.
Method Summary | |
---|---|
__init__(self)
| |
Adds a shape to the diagram. | |
Clear the specified device context. | |
Remove and delete all shapes in the diagram. | |
Draw an outline rectangle on the current device context. | |
Return the shape for the given identifier. | |
Return the shape canvas associated with this diagram. | |
Return the number of shapes in the diagram. | |
Return the grid spacing. | |
Return the tolerance within which a mouse move is ignored. | |
Return quick edit mode. | |
Return the internal shape list. | |
Return snap-to-grid mode. | |
Insert a shape at the front of the shape list. | |
Make sure all text that should be centred, is centred. | |
Draw the shapes in the diagram on the specified device context. | |
Remove all shapes from the diagram but do not delete the shapes. | |
Remove the shape from the diagram (non-recursively) but do not delete it. | |
Set the canvas associated with this diagram. | |
Sets grid spacing. | |
Set the tolerance within which a mouse move is ignored. | |
Set quick-edit-mode on of off. | |
Sets snap-to-grid mode. | |
Call Show for each shape in the diagram. | |
'Snaps' the coordinate to the nearest grid position, if snap-to-grid is on. |
Method Details |
---|
AddShape(self, object, addAfter=None)Adds a shape to the diagram. If addAfter is not None, the shape will be added after addAfter. |
Clear(self, dc)Clear the specified device context. |
DeleteAllShapes(self)Remove and delete all shapes in the diagram. |
DrawOutline(self, dc, x1, y1, x2, y2)Draw an outline rectangle on the current device context. |
FindShape(self, id)Return the shape for the given identifier. |
GetCanvas(self)Return the shape canvas associated with this diagram. |
GetCount(self)Return the number of shapes in the diagram. |
GetGridSpacing(self)Return the grid spacing. |
GetMouseTolerance(self)Return the tolerance within which a mouse move is ignored. |
GetQuickEditMode(self)Return quick edit mode. |
GetShapeList(self)Return the internal shape list. |
GetSnapToGrid(self)Return snap-to-grid mode. |
InsertShape(self, object)Insert a shape at the front of the shape list. |
RecentreAll(self, dc)Make sure all text that should be centred, is centred. |
Redraw(self, dc)Draw the shapes in the diagram on the specified device context. |
RemoveAllShapes(self)Remove all shapes from the diagram but do not delete the shapes. |
RemoveShape(self, object)Remove the shape from the diagram (non-recursively) but do not delete it. |
SetCanvas(self, canvas)Set the canvas associated with this diagram. |
SetGridSpacing(self, spacing)Sets grid spacing. |
SetMouseTolerance(self, tolerance)Set the tolerance within which a mouse move is ignored. The default is 3 pixels. |
SetQuickEditMode(self, mode)Set quick-edit-mode on of off. In this mode, refreshes are minimized, but the diagram may need manual refreshing occasionally. |
SetSnapToGrid(self, snap)Sets snap-to-grid mode. |
ShowAll(self, show)Call Show for each shape in the diagram. |
Snap(self, x, y)'Snaps' the coordinate to the nearest grid position, if snap-to-grid is on. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:11:34 2007 | http://epydoc.sf.net |