C# Class XLibrary.GdiRenderer

Inheritance: System.Windows.Forms.UserControl, IRenderer
ファイルを表示 Open project: swax/CodePerspective

Public Properties

Property Type Description
Model ViewModel

Public Methods

Method Description
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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
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.

Method Details

Dispose() protected method

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

DrawCallLine() public method

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
return void

DrawNode() public method

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
return void

DrawNodeLabel() public method

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
return void

DrawNodeOutline() public method

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
return void

DrawString() public method

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
return void

DrawTextBackground() public method

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

GdiRenderer() public method

public GdiRenderer ( ViewModel model ) : System
model ViewModel
return System

GdiRenderer_KeyDown() public method

public GdiRenderer_KeyDown ( object sender, System e ) : void
sender object
e System
return void

GdiRenderer_MouseWheel() public method

public GdiRenderer_MouseWheel ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

GetCursorPosition() public method

public GetCursorPosition ( ) : Point
return Point

MeasureString() public method

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

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

ViewInvalidate() public method

public ViewInvalidate ( ) : void
return void

Property Details

Model public_oe property

public ViewModel,XLibrary Model
return ViewModel