/* * Process Method */ public override PanelNode Process(GroupNode g, PanelNode p) { if (g.Decorations[UnitDecision.DECISION_KEY] != null) { UnitDecision unitDecision = (UnitDecision)g.Decorations[UnitDecision.DECISION_KEY]; ConcreteInteractionObject cio = unitDecision.CIO; if (((ControlBasedCIO)cio).PrefersFullWidth() && !unitDecision.Handled) { p.AddRow(new FullWidthRow(p, cio)); unitDecision.Handled = true; } } return(p); }
/* * Process Method */ public override PanelNode Process(GroupNode g, PanelNode p) { if (g.Decorations[UnitDecision.DECISION_KEY] != null) { UnitDecision unitDecision = (UnitDecision)g.Decorations[UnitDecision.DECISION_KEY]; ConcreteInteractionObject cio = unitDecision.CIO; if (!unitDecision.Handled) { p.AddRow(new OneColumnRow(g, p, cio)); unitDecision.Handled = true; } } return(p); }
/* * Process Method */ public override PanelNode Process(GroupNode g, PanelNode p) { if (g is BranchGroupNode) { BranchGroupNode bg = (BranchGroupNode)g; if (bg.Children.Count == 2 && !g.ContainsGroups()) { IEnumerator child = bg.Children.GetEnumerator(); while (child.MoveNext()) { if (((ObjectGroupNode)child.Current).Decorations[UnitDecision.DECISION_KEY] == null || ((UnitDecision)((ObjectGroupNode)child.Current).Decorations[UnitDecision.DECISION_KEY]).Handled || ((UnitDecision)((ObjectGroupNode)child.Current).Decorations[UnitDecision.DECISION_KEY]).CIO.HasLabel()) { return(p); } } LabelCIO labelCIO = null; if (g.Labels != null) { labelCIO = new LabelCIO(g.Labels); } UnitDecision d = (UnitDecision)((ObjectGroupNode)bg.Children[0]).Decorations[UnitDecision.DECISION_KEY]; ConcreteInteractionObject cio1 = d.CIO; d.Handled = true; d = (UnitDecision)((ObjectGroupNode)bg.Children[1]).Decorations[UnitDecision.DECISION_KEY]; ConcreteInteractionObject cio2 = d.CIO; d.Handled = true; LabeledTwoCompRow r = new LabeledTwoCompRow(g, p, labelCIO, cio1, cio2); p.AddRow(r); } } return(p); }