Свойство | Type | Description | |
---|---|---|---|
tk | IDrawingToolkit | ||
widget | IWidget |
Méthode | Description | |
---|---|---|
AddObject ( ICanvasObject co ) : void |
Adds a new object to the canvas and a listener to its redraw event.
|
|
Canvas ( IWidget widget ) : System | ||
Dispose ( ) : void | ||
Draw ( IContext context, |
Draws the canvas objects the specified context and area. Object are drawn in the following order: 1) Regular objects 2) Selected objects 3) Highlithed objects
|
|
RemoveObject ( ICanvasObject co ) : void |
Removes and object from the canvas.
|
Méthode | Description | |
---|---|---|
Begin ( IContext context ) : void |
Must be called before any drawing operation is performed to apply transformation, scalling and clipping.
|
|
ClearObjects ( ) : void |
Removes all the objects from the canvas.
|
|
Dispose ( bool disposing ) : void | ||
End ( ) : void |
Must be called after drawing operations to restore the context
|
|
HandleRedrawEvent ( ICanvasObject co, |
||
HandleSizeChangedEvent ( ) : void | ||
ToUserCoords ( Point p ) : Point |
Converts a point to the original position removing the applied tanslation and invering the scale.
|
public AddObject ( ICanvasObject co ) : void | ||
co | ICanvasObject | The object to add. |
Résultat | void |
protected Begin ( IContext context ) : void | ||
context | IContext | Context to draw |
Résultat | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
public Draw ( IContext context, |
||
context | IContext | The context where the canvas is drawn. |
area | The affected area. | |
Résultat | void |
protected HandleRedrawEvent ( ICanvasObject co, |
||
co | ICanvasObject | |
area | ||
Résultat | void |
protected HandleSizeChangedEvent ( ) : void | ||
Résultat | void |
public RemoveObject ( ICanvasObject co ) : void | ||
co | ICanvasObject | The object to remove. |
Résultat | void |
protected ToUserCoords ( Point p ) : Point | ||
p | Point | The point to convert. |
Résultat | Point |