C# Class XLibrary.GdiRenderer

Inheritance: System.Windows.Forms.UserControl, IRenderer
Afficher le fichier Open project: swax/CodePerspective

Méthodes publiques

Свойство Type Description
Model ViewModel

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

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

DrawCallLine() public méthode

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
Résultat void

DrawNode() public méthode

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
Résultat void

DrawNodeLabel() public méthode

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
Résultat void

DrawNodeOutline() public méthode

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
Résultat void

DrawString() public méthode

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
Résultat void

DrawTextBackground() public méthode

public DrawTextBackground ( Color color, float x, float y, float width, float height ) : void
color Color
x float
y float
width float
height float
Résultat void

GdiRenderer() public méthode

public GdiRenderer ( ViewModel model ) : System
model ViewModel
Résultat System

GdiRenderer_KeyDown() public méthode

public GdiRenderer_KeyDown ( object sender, System e ) : void
sender object
e System
Résultat void

GdiRenderer_MouseWheel() public méthode

public GdiRenderer_MouseWheel ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
Résultat void

GetCursorPosition() public méthode

public GetCursorPosition ( ) : Point
Résultat Point

MeasureString() public méthode

public MeasureString ( string text, Font font ) : SizeF
text string
font System.Drawing.Font
Résultat System.Drawing.SizeF

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

ViewInvalidate() public méthode

public ViewInvalidate ( ) : void
Résultat void

Property Details

Model public_oe property

public ViewModel,XLibrary Model
Résultat ViewModel