C# 클래스 LongoMatch.Drawing.Canvas

A canvas stores ICanvasObject's and draws them.
상속: ICanvas
파일 보기 프로젝트 열기: GNOME/longomatch

보호된 프로퍼티들

프로퍼티 타입 설명
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