C# 클래스 SharpNeat.View.Graph.IOGraphPainter

Paints IOGraphs to a GDI+ Graphics object.
파일 보기 프로젝트 열기: colgreen/sharpneat 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
__brushBlack System.Drawing.Brush
__brushNodeFill System.Drawing.Brush
__fontNodeTag System.Drawing.Font
__penBlack System.Drawing.Pen
_connectionNegative Color
_connectionPositive Color

공개 메소드들

메소드 설명
PaintNetwork ( IOGraph graph, Graphics g, Rectangle viewportArea, float zoomFactor ) : void

Paints the provided IOGraph onto the provided GDI+ Graphics drawing surface.

보호된 메소드들

메소드 설명
IsPointWithinViewport ( Point p, PaintState state ) : bool

Indicates if a point is within the graphics area represented by the viewport. That is, does an element at this position need to be painted.

ModelToViewport ( Point p, PaintState state ) : Point

Converts from a model coordinate to a viewport coordinate.

PaintNetwork ( IOGraph graph, PaintState state ) : void

Paints the provided IOGraph onto the current GDI+ Graphics drawing surface.

PaintNode ( GraphNode node, PaintState state ) : void

Paints a single graph node.

비공개 메소드들

메소드 설명
PaintBackConnection ( Pen pen, Point srcPos, Point tgtPos, ConnectionPointInfo srcInfo, ConnectionPointInfo tgtInfo, PaintState state ) : void
PaintConnection ( GraphConnection con, PaintState state ) : void
PaintConnections ( IList nodeList, PaintState state ) : void
PaintNodes ( IList nodeList, PaintState state ) : void

메소드 상세

IsPointWithinViewport() 보호된 메소드

Indicates if a point is within the graphics area represented by the viewport. That is, does an element at this position need to be painted.
protected IsPointWithinViewport ( Point p, PaintState state ) : bool
p Point
state PaintState
리턴 bool

ModelToViewport() 보호된 메소드

Converts from a model coordinate to a viewport coordinate.
protected ModelToViewport ( Point p, PaintState state ) : Point
p Point
state PaintState
리턴 Point

PaintNetwork() 공개 메소드

Paints the provided IOGraph onto the provided GDI+ Graphics drawing surface.
public PaintNetwork ( IOGraph graph, Graphics g, Rectangle viewportArea, float zoomFactor ) : void
graph IOGraph
g System.Drawing.Graphics
viewportArea System.Drawing.Rectangle
zoomFactor float
리턴 void

PaintNetwork() 보호된 메소드

Paints the provided IOGraph onto the current GDI+ Graphics drawing surface.
protected PaintNetwork ( IOGraph graph, PaintState state ) : void
graph IOGraph
state PaintState
리턴 void

PaintNode() 보호된 메소드

Paints a single graph node.
protected PaintNode ( GraphNode node, PaintState state ) : void
node GraphNode
state PaintState
리턴 void

프로퍼티 상세

__brushBlack 보호되어 있는 정적으로 프로퍼티

Black brush
protected static Brush,System.Drawing __brushBlack
리턴 System.Drawing.Brush

__brushNodeFill 보호되어 있는 정적으로 프로퍼티

Brush for node fill color.
protected static Brush,System.Drawing __brushNodeFill
리턴 System.Drawing.Brush

__fontNodeTag 보호되어 있는 정적으로 프로퍼티

Font for drawing text on the viewport.
protected static Font,System.Drawing __fontNodeTag
리턴 System.Drawing.Font

__penBlack 보호되어 있는 정적으로 프로퍼티

Black pen for node borders.
protected static Pen,System.Drawing __penBlack
리턴 System.Drawing.Pen

_connectionNegative 보호되어 있는 정적으로 프로퍼티

Pen for drawing connections with negative connection weight.
protected static Color _connectionNegative
리턴 Color

_connectionPositive 보호되어 있는 정적으로 프로퍼티

Pen for drawing connections with positive connection weight.
protected static Color _connectionPositive
리턴 Color