C# Класс LongoMatch.Drawing.Canvas

A canvas stores ICanvasObject's and draws them.
Наследование: ICanvas
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
tk IDrawingToolkit
widget IWidget

Открытые методы

Метод Описание
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, Area area ) : void

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.

Защищенные методы

Метод Описание
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, Area area ) : void
HandleSizeChangedEvent ( ) : void
ToUserCoords ( Point p ) : Point

Converts a point to the original position removing the applied tanslation and invering the scale.

Описание методов

AddObject() публичный Метод

Adds a new object to the canvas and a listener to its redraw event.
public AddObject ( ICanvasObject co ) : void
co ICanvasObject The object to add.
Результат void

Begin() защищенный Метод

Must be called before any drawing operation is performed to apply transformation, scalling and clipping.
protected Begin ( IContext context ) : void
context IContext Context to draw
Результат void

Canvas() публичный Метод

public Canvas ( IWidget widget ) : System
widget IWidget
Результат System

ClearObjects() защищенный Метод

Removes all the objects from the canvas.
protected ClearObjects ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Draw() публичный Метод

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
public Draw ( IContext context, Area area ) : void
context IContext The context where the canvas is drawn.
area LongoMatch.Core.Common.Area The affected area.
Результат void

End() защищенный Метод

Must be called after drawing operations to restore the context
protected End ( ) : void
Результат void

HandleRedrawEvent() защищенный Метод

protected HandleRedrawEvent ( ICanvasObject co, Area area ) : void
co ICanvasObject
area LongoMatch.Core.Common.Area
Результат void

HandleSizeChangedEvent() защищенный Метод

protected HandleSizeChangedEvent ( ) : void
Результат void

RemoveObject() публичный Метод

Removes and object from the canvas.
public RemoveObject ( ICanvasObject co ) : void
co ICanvasObject The object to remove.
Результат void

ToUserCoords() защищенный Метод

Converts a point to the original position removing the applied tanslation and invering the scale.
protected ToUserCoords ( Point p ) : Point
p Point The point to convert.
Результат Point

Описание свойств

tk защищенное свойство

protected IDrawingToolkit tk
Результат IDrawingToolkit

widget защищенное свойство

protected IWidget widget
Результат IWidget