The ShapeCanvas
class.
Default class constructor. |
|
Add a shape to canvas. |
|
Update the buffer with the background and redraw the full diagram. |
|
Find shape at given position. |
|
Get the diagram associated with this canvas. |
|
Get quick edit mode. |
|
Insert a shape to canvas. |
|
not implemented??? |
|
not implemented??? |
|
not implemented??? |
|
not implemented??? |
|
not implemented??? |
|
not implemented??? |
|
not implemented??? |
|
The mouse event handler. |
|
The paint handler, uses |
|
not implemented??? |
|
The size handler, it initializes the buffer to the size of the window. |
|
Redraw the diagram. |
|
Remove a shape from canvas. |
|
Set the diagram associated with this canvas. |
|
Snap ??? |
The ShapeCanvas
class.
Default class constructor.
Default class constructor.
parent (wx.Window
) – parent window
id (integer) – window identifier. A value of -1 indicates a default value
pos (tuple or wx.Point
) – the control position. A value of (-1, -1) indicates a default position,
chosen by either the windowing system or wxPython, depending on platform
size (tuple or wx.Size
) – the control size. A value of (-1, -1) indicates a default size,
chosen by either the windowing system or wxPython, depending on platform
style (integer) – the underlying wx.Window
style
name (str) – the window name
Add a shape to canvas.
object – the Shape
instance to add
addAfter – None or the Shape
after which
above shape is to be added.
Update the buffer with the background and redraw the full diagram.
Find shape at given position.
x – the x position
y – the y position
info – ???
notObject – ???
Get the diagram associated with this canvas.
Get quick edit mode.
Insert a shape to canvas.
object – the Shape
instance to insert
not implemented???
not implemented???
not implemented???
not implemented???
not implemented???
not implemented???
not implemented???
The mouse event handler.
The paint handler, uses BufferedPaintDC
to draw the
buffer to the screen.
not implemented???
The size handler, it initializes the buffer to the size of the window.
Redraw the diagram.
Remove a shape from canvas.
object – the Shape
instance to be removed
Set the diagram associated with this canvas.
diag – an instance of Diagram
Snap ???
x – the x position
y – the y position