Пример #1
0
 public DialPlot(ValueDataset dataset)
 {
   DialPlot dialPlot = this;
   this.background = (DialLayer) null;
   this.cap = (DialLayer) null;
   this.dialFrame = (DialFrame) new ArcDialFrame();
   this.datasets = new ObjectList();
   if (dataset != null)
     this.setDataset(dataset);
   this.scales = new ObjectList();
   this.datasetToScaleMap = new ObjectList();
   this.layers = (List) new ArrayList();
   this.pointers = (List) new ArrayList();
   this.viewX = 0.0;
   this.viewY = 0.0;
   this.viewW = 1.0;
   this.viewH = 1.0;
 }
 public DialLayerChangeEvent(DialLayer layer)
   : base((object) layer)
 {
   DialLayerChangeEvent layerChangeEvent = this;
   this.layer = layer;
 }
Пример #3
0
 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();
   }
 }
Пример #4
0
 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();
 }
Пример #5
0
 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();
 }
Пример #6
0
 public virtual void removeLayer(DialLayer layer)
 {
   this.removeLayer(this.getLayerIndex(layer));
 }
Пример #7
0
 public virtual int getLayerIndex(DialLayer layer)
 {
   if (layer == null)
   {
     string str = "Null 'layer' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
     return this.layers.indexOf((object) layer);
 }