Draws all the network buses, using the specified value transforms.
Namespace: ElecNetKit.Graphing.GraphsAssembly: 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
Tuple
Brush,
Pen
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:
System.Windows.Media Pen
A pen for drawing rings.
- drawingContext
- Type:
System.Windows.Media DrawingContext
The target that we should draw to.
See Also