C# Класс SharpNeat.View.Graph.IOGraphPainter

Paints IOGraphs to a GDI+ Graphics object.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
__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