public void addBorder(Side side, Graphic graphic) { if (_borders == null) _borders = new Dictionary<Side, Graphic>(); if (_borders.ContainsKey(side)) return; _borders.Add(side, graphic); }
public void addBorders(List<Side> sides, Graphic graphic) { if (_borders == null) _borders = new Dictionary<Side, Graphic>(); foreach (Side side in sides) { if (_borders.ContainsKey(side)) continue; _borders.Add(side, graphic); } }
public Arrow(Graphic gTail, Graphic gBody, Graphic gHead) { this.gTail = gTail; this.gBody = gBody; this.gHead = gHead; }