Examples of ObserverNotification


Examples of de.hpi.eworld.observer.ObserverNotification

  public void setRadius(double radius) {
    boolean changed = (this.radius != radius);
    this.radius = radius;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setCenter(GlobalPosition center) {
    boolean changed = ((center != null) && (!center.equals(this.center)));
    this.center = center;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setCirclePoint(GlobalPosition circlePoint) {
    boolean changed = ((circlePoint != null) && (!circlePoint.equals(this.circlePoint)));
    this.circlePoint = circlePoint;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setEventType(Type eventType) {
    boolean changed = ((eventType != null) && (!eventType.equals(this.eventType)));
    this.eventType = eventType;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  public void setStrength(int strength) {
    boolean changed = (this.strength != strength);
    this.strength = strength;
    if(changed) {
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   */
  public void addPoint(GlobalPosition point)
  {
    this.points.add(point);
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   * @param point New point
   */
  public void addPointAt(int index, GlobalPosition point) {
    this.points.add(index, point);
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   * @param newPoint New point
   */
  public void updatePointAt(int index, GlobalPosition newPoint) {
    this.points.set(index, newPoint);
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

   * Removes all points of this location.
   */
  public void clear() {
    points.clear();
    this.setChanged();
    this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
    this.clearChanged();
  }
View Full Code Here

Examples of de.hpi.eworld.observer.ObserverNotification

  {
    if (this.pointExists(point))
    {
      this.points.remove(point);
      this.setChanged();
      this.notifyObservers(new ObserverNotification(NotificationType.elementChanged, this));
      this.clearChanged();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.