Exemple #1
0
        public void addBorder(Side side, Graphic graphic)
        {
            if (_borders == null)
                _borders = new Dictionary<Side, Graphic>();

            if (_borders.ContainsKey(side))
                return;

            _borders.Add(side, graphic);
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 public Arrow(Graphic gTail, Graphic gBody, Graphic gHead)
 {
     this.gTail = gTail;
     this.gBody = gBody;
     this.gHead = gHead;
 }