X-Git-Url: https://git.llucax.com/z.facultad/75.62/c2tp1.git/blobdiff_plain/f9ae0eb22d1b5e8b12030d43c77c634c81743e73..HEAD:/src/Angulo.java diff --git a/src/Angulo.java b/src/Angulo.java index 34e24cc..61a8d44 100644 --- a/src/Angulo.java +++ b/src/Angulo.java @@ -1,5 +1,6 @@ +import java.util.*; -public class Angulo implements OperAng, ComparaAng { +public class Angulo extends Observable implements OperAng, ComparaAng { private int signo; private int grados; @@ -27,19 +28,27 @@ public class Angulo implements OperAng, ComparaAng { signo = -1; else signo = 1; + setChanged (); + notifyObservers (); } public void setGrados(int g) { setSigno(g); grados = Math.abs(g % 360); + setChanged (); + notifyObservers (); } public void setMinutos(int m) { minutos = Math.abs(m % 60); + setChanged (); + notifyObservers (); } public void setSegundos(int s) { segundos = Math.abs(s % 60); + setChanged (); + notifyObservers (); } public Angulo() {