public Decorator(Glyph component) { this.component = component; }
public void Compose(Glyph item, Window window) { window.DrawText("["); item.Draw(window); window.DrawText("]"); }
public CurlyBracketsDecorator(Glyph component) : base(component) { }
public virtual void Insert(Glyph glyph) { throw new InvalidOperationException("Only a row glyph must use insert"); }
public override void Insert(Glyph glyph) { children.Add(glyph); }