예제 #1
0
 public virtual void addPointer(DialPointer pointer)
 {
   if (pointer == null)
   {
     string str = "Null 'pointer' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.pointers.add((object) pointer);
     pointer.addChangeListener((DialLayerChangeListener) this);
     this.fireChangeEvent();
   }
 }
예제 #2
0
 public virtual void removePointer(DialPointer pointer)
 {
   this.removeLayer(this.getPointerIndex(pointer));
 }
예제 #3
0
 public virtual int getPointerIndex(DialPointer pointer)
 {
   if (pointer == null)
   {
     string str = "Null 'pointer' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
     return this.pointers.indexOf((object) pointer);
 }