C# 클래스 XLibrary.GdiRenderer

상속: System.Windows.Forms.UserControl, IRenderer
파일 보기 프로젝트 열기: swax/CodePerspective

공개 프로퍼티들

프로퍼티 타입 설명
Model ViewModel

공개 메소드들

메소드 설명
DrawCallLine ( Color color, int lineWidth, PointF start, PointF end, bool dashed, NodeModel source, NodeModel destination ) : void
DrawNode ( Color color, RectangleF area, bool outside, NodeModel node, int depth ) : void
DrawNodeLabel ( string text, Font font, Color color, RectangleF rect, NodeModel node, int depth ) : void
DrawNodeOutline ( Color color, int lineWidth, RectangleF area, bool outside, NodeModel node, int depth ) : void
DrawString ( string text, Font font, Color color, float x, float y, float width, float height ) : void
DrawTextBackground ( Color color, float x, float y, float width, float height ) : void
GdiRenderer ( ViewModel model ) : System
GdiRenderer_KeyDown ( object sender, System e ) : void
GdiRenderer_MouseWheel ( object sender, MouseEventArgs e ) : void
GetCursorPosition ( ) : Point
MeasureString ( string text, Font font ) : SizeF
Start ( ) : void
Stop ( ) : void
ViewInvalidate ( ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
GdiRenderer_KeyUp ( object sender, KeyEventArgs e ) : void
GdiRenderer_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
GdiRenderer_MouseDown ( object sender, MouseEventArgs e ) : void
GdiRenderer_MouseLeave ( object sender, EventArgs e ) : void
GdiRenderer_MouseMove ( object sender, MouseEventArgs e ) : void
GdiRenderer_MouseUp ( object sender, MouseEventArgs e ) : void
GdiRenderer_Paint ( object sender, PaintEventArgs e ) : void
GdiRenderer_Resize ( object sender, EventArgs e ) : void
GetBrush ( Color color ) : SolidBrush
GetPen ( Color color, int width, bool dashed ) : Pen
GetTriangleFromRect ( RectangleF area ) : System.Drawing.PointF[]
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

DrawCallLine() 공개 메소드

public DrawCallLine ( Color color, int lineWidth, PointF start, PointF end, bool dashed, NodeModel source, NodeModel destination ) : void
color Color
lineWidth int
start System.Drawing.PointF
end System.Drawing.PointF
dashed bool
source NodeModel
destination NodeModel
리턴 void

DrawNode() 공개 메소드

public DrawNode ( Color color, RectangleF area, bool outside, NodeModel node, int depth ) : void
color Color
area System.Drawing.RectangleF
outside bool
node NodeModel
depth int
리턴 void

DrawNodeLabel() 공개 메소드

public DrawNodeLabel ( string text, Font font, Color color, RectangleF rect, NodeModel node, int depth ) : void
text string
font System.Drawing.Font
color Color
rect System.Drawing.RectangleF
node NodeModel
depth int
리턴 void

DrawNodeOutline() 공개 메소드

public DrawNodeOutline ( Color color, int lineWidth, RectangleF area, bool outside, NodeModel node, int depth ) : void
color Color
lineWidth int
area System.Drawing.RectangleF
outside bool
node NodeModel
depth int
리턴 void

DrawString() 공개 메소드

public DrawString ( string text, Font font, Color color, float x, float y, float width, float height ) : void
text string
font System.Drawing.Font
color Color
x float
y float
width float
height float
리턴 void

DrawTextBackground() 공개 메소드

public DrawTextBackground ( Color color, float x, float y, float width, float height ) : void
color Color
x float
y float
width float
height float
리턴 void

GdiRenderer() 공개 메소드

public GdiRenderer ( ViewModel model ) : System
model ViewModel
리턴 System

GdiRenderer_KeyDown() 공개 메소드

public GdiRenderer_KeyDown ( object sender, System e ) : void
sender object
e System
리턴 void

GdiRenderer_MouseWheel() 공개 메소드

public GdiRenderer_MouseWheel ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
리턴 void

GetCursorPosition() 공개 메소드

public GetCursorPosition ( ) : Point
리턴 Point

MeasureString() 공개 메소드

public MeasureString ( string text, Font font ) : SizeF
text string
font System.Drawing.Font
리턴 System.Drawing.SizeF

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

ViewInvalidate() 공개 메소드

public ViewInvalidate ( ) : void
리턴 void

프로퍼티 상세

Model 공개적으로 프로퍼티

public ViewModel,XLibrary Model
리턴 ViewModel