public virtual void setCap(DialLayer cap) { if (this.cap != null) this.cap.removeChangeListener((DialLayerChangeListener) this); this.cap = cap; if (cap != null) cap.addChangeListener((DialLayerChangeListener) this); this.fireChangeEvent(); }
public virtual void addLayer(DialLayer layer) { if (layer == null) { string str = "Null 'layer' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { this.layers.add((object) layer); layer.addChangeListener((DialLayerChangeListener) this); this.fireChangeEvent(); } }
public virtual void setBackground(DialLayer background) { if (this.background != null) this.background.removeChangeListener((DialLayerChangeListener) this); this.background = background; if (background != null) background.addChangeListener((DialLayerChangeListener) this); this.fireChangeEvent(); }