public virtual void SetColorFrom(IDiagramColors diagramColors) { Opacity = diagramColors.ContainerOpacity * 100F; if (_locationFixed) { BorderPenWidth = 2.0F; BorderPenColor = diagramColors.BorderFixed; } else { BorderPenWidth = 1.0F; BorderPenColor = diagramColors.BorderUnfixed; } if (IsLogical) { BackgroundColor = diagramColors.ContainerLogical; } else { BackgroundColor = diagramColors.ContainerPhysical; } Handle.BrushColor = diagramColors.ContainerHandle; }
public override void SetColorFrom(IDiagramColors diagramColors) { base.SetColorFrom(diagramColors); foreach (var portNode in _portNodes.Values) { portNode.SetColorFrom(diagramColors); } }
public override void SetColorFrom(IDiagramColors diagramColors) { base.SetColorFrom(diagramColors); SetBrushColor(diagramColors, diagramColors.ObserverNode); foreach (var observerLink in GetLinks <ObserverLink>()) { observerLink.SetColorFrom(diagramColors); } }
public override void SetColorFrom(IDiagramColors diagramColors) { base.SetColorFrom(diagramColors); SetBrushColor(diagramColors, diagramColors.MoleculeNode); foreach (var transportLink in GetLinks <TransportLink>()) { transportLink.SetColorFrom(diagramColors); } }
public void RefreshColor(IDiagramColors diagramColors, Color color) { var reactionNode = Node as ReactionNode; if (reactionNode == null) { return; } BrushColor = Color.FromArgb(reactionNode.Alpha(diagramColors.NodeSizeOpacity), color); }
public override void SetColorFrom(IDiagramColors diagramColors) { base.SetColorFrom(diagramColors); Port.BrushColor = diagramColors.RelatedItemNode; foreach (var link in GetLinks <RelatedItemLink>()) { link.SetColorFrom(diagramColors); } }
protected void SetBrushColor(IDiagramColors diagramColors, Color color) { var nodeAlpha = Alpha(diagramColors.NodeSizeOpacity); int opacity = Convert.ToInt16(diagramColors.PortOpacity * nodeAlpha); Shape.BrushColor = Color.FromArgb(opacity, color); if (Port != null) { Port.BrushColor = Color.FromArgb(nodeAlpha, color); } }
public virtual void SetColorFrom(IDiagramColors diagramColors) { if (LocationFixed) { Shape.PenWidth = 2.0F; Shape.PenColor = diagramColors.BorderFixed; } else { Shape.PenWidth = 1.0F; Shape.PenColor = diagramColors.BorderUnfixed; } }
public override void SetColorFrom(IDiagramColors diagramColors) { base.SetColorFrom(diagramColors); SetBrushColor(diagramColors, diagramColors.NeighborhoodNode); if (FirstNeighborLink != null) { FirstNeighborLink.SetColorFrom(diagramColors); } if (SecondNeighborLink != null) { SecondNeighborLink.SetColorFrom(diagramColors); } }
public override void SetColorFrom(IDiagramColors diagramColors) { base.SetColorFrom(diagramColors); SetBrushColor(diagramColors, diagramColors.ReactionNode); _eductsPort?.RefreshColor(diagramColors, diagramColors.ReactionPortEduct); _productsPort?.RefreshColor(diagramColors, diagramColors.ReactionPortProduct); _modifiersPort?.RefreshColor(diagramColors, diagramColors.ReactionPortModifier); foreach (var reactionLink in GetLinks <ReactionLink>()) { reactionLink.SetColorFrom(diagramColors); } }
public void SetColorFrom(IDiagramColors diagramColors) { Shape.BrushColor = diagramColors.NeighborhoodPort; if (LocationFixed) { Shape.PenWidth = 2.0F; Shape.PenColor = diagramColors.BorderFixed; } else { Shape.PenWidth = 1.0F; Shape.PenColor = diagramColors.BorderUnfixed; } }
public override void SetColorFrom(IDiagramColors diagramColors) { base.SetColorFrom(diagramColors); Shape.BrushColor = diagramColors.JournalPageNode; relatedItemPort().BrushColor = diagramColors.DiagramBackground; parentPort().BrushColor = diagramColors.JournalPagePort; childPort().BrushColor = diagramColors.JournalPagePort; foreach (var link in GetLinks <IJournalPageLink>()) { link.SetColorFrom(diagramColors); } }
public override void SetColorFrom(IDiagramColors diagramColors) { switch (Type) { case ReactionLinkType.Educt: PenColor = diagramColors.ReactionLinkEduct; break; case ReactionLinkType.Product: PenColor = diagramColors.ReactionLinkProduct; break; case ReactionLinkType.Modifier: PenColor = diagramColors.ReactionLinkModifier; Pen.DashStyle = DashStyle.Dash; break; default: throw new OSPSuiteException("No valid ReactionLinkType = " + Type); } }
public override void SetColorFrom(IDiagramColors diagramColors) { PenColor = diagramColors.JournalPageLink; }
public override void SetColorFrom(IDiagramColors diagramColors) { PenColor = diagramColors.ObserverLink; Pen.DashStyle = DashStyle.Dash; }
public abstract void SetColorFrom(IDiagramColors diagramColors);
public void SetColorFrom(IDiagramColors diagramColors) { PenColor = diagramColors.TransportLink; Pen.DashStyle = DashStyle.Solid; }
public override void SetColorFrom(IDiagramColors diagramColors) { PenColor = diagramColors.RelatedItemLink; }
public override void SetColorFrom(IDiagramColors diagramColors) { PenColor = diagramColors.NeighborhoodLink; Pen.DashStyle = DashStyle.Solid; Pen.Width = 4; }