ValueTransformableTreeGraph DrawBuses Method ElecNetKit Documentation
Draws all the network buses, using the specified value transforms.

Namespace: ElecNetKit.Graphing.Graphs
Assembly: ElecNetKit.Graphing (in ElecNetKit.Graphing.dll) Version: 1.1.4771.27373 (1.1.0.0)
Syntax

protected void DrawBuses(
	NetworkModel Network,
	AdaptiveGradientMap<Tuple<Brush, Pen>> colorMap,
	Limits busSizeLimits,
	Pen ringColorPen,
	DrawingContext drawingContext
)

Parameters

Network
Type: ElecNetKit.NetworkModelling NetworkModel
The network from which to draw buses.
colorMap
Type: ElecNetKit.Graphing.AdaptiveGradients AdaptiveGradientMap OnlineTuple OnlineBrush, OnlinePen  
A map of the colours to use from the specified gradient.
busSizeLimits
Type: ElecNetKit.Util Limits
The limits of BusSizeTransform, used for scaling from that space to [BusSizeMin, BusSizeMax].
ringColorPen
Type: OnlineSystem.Windows.Media Pen
A pen for drawing rings.
drawingContext
Type: OnlineSystem.Windows.Media DrawingContext
The target that we should draw to.
See Also