private double AddNodeContainerToDiagram(double yOffsetInitial)
        {
            double yOffset = yOffsetInitial + _extraSpaceBetweenNodeContainerAndDetachedSpanSections;

            if (_data.NodeContainer != null)
            {
                var readModel = new NodeContainerViewModel(_data);

                var builder = new NodeContainerBuilder(_logger, readModel);

                var size = builder.CreateDiagramObjects(_diagram, 0, yOffset);

                yOffset += size.Height + _extraSpaceBetweenNodeContainerAndDetachedSpanSections;
            }

            return(yOffset);
        }
Beispiel #2
0
 public NodeContainerBlockPortViewModel(NodeContainerViewModel nodeContainerViewModel, SpanEquipmentViewModel spanEquipmentViewModel, NodeContainerBlockPortViewModelKind kind)
 {
 }
 public TerminalEquipmentBlockBuilder(NodeContainerViewModel nodeContainerViewModel)
 {
     _nodeContainerViewModel = nodeContainerViewModel;
 }
Beispiel #4
0
 public NodeContainerBuilder(ILogger <GetDiagramQueryHandler> logger, NodeContainerViewModel viewModel)
 {
     _logger = logger;
     _nodeContainerViewModel = viewModel;
 }