Loading src/edu/bu/ec504/spr19/sameGameTris/CircleRolloverEvent.java→src/edu/bu/ec504/spr24/sameGameTris/CircleRolloverEvent.java +19 −15 Original line number Diff line number Diff line package edu.bu.ec504.spr19.sameGameTris; package edu.bu.ec504.spr24.sameGameTris; import java.util.EventObject; Loading @@ -12,31 +12,35 @@ class CircleRolloverEvent extends EventObject { /* * the location of the button broadcasting the event */ private final int xx; private final int yy; private final int _xx; private final int _yy; private final CircleColor clr; private final SelfAwareCircle.Visibility visibility; // Constructor(s) /* * Records a rollover event on a specific button * @param source The "source" upon which the event initially occured * @param xx The x coordinate (in the gridlayout of buttons) of the button that was rolled over * @param yy The y coordinate (in the gridlayout of buttons) of the button that was rolled over * @param clr The color of the button that initiated the event * @param visibility Should circles be highlighted or unhighlighted * @param source The "source" upon which the event initially occured * @param vis Should circles be highlighted or unhighlighted */ public CircleRolloverEvent(Object source, int xx, int yy, CircleColor clr, SelfAwareCircle.Visibility toDo) { public CircleRolloverEvent(Object source, int xx, int yy, CircleColor clr, SelfAwareCircle.Visibility vis) { super(source); // register with the superclass this.xx=xx; this.yy=yy; this.clr=clr; this.visibility = toDo; this._xx = xx; this._yy = yy; this.clr = clr; this.visibility = vis; } // Methods // ... accessor int getXX() { return xx; } int getYY() { return yy; } SelfAwareCircle.Visibility getAction() { return visibility; } CircleColor getColor() { return clr; } // ACCESSORS int getXX() {return _xx;} int getYY() {return _yy;} SelfAwareCircle.Visibility getVisibility() {return visibility;} CircleColor getColor() {return clr;} } Loading
src/edu/bu/ec504/spr19/sameGameTris/CircleRolloverEvent.java→src/edu/bu/ec504/spr24/sameGameTris/CircleRolloverEvent.java +19 −15 Original line number Diff line number Diff line package edu.bu.ec504.spr19.sameGameTris; package edu.bu.ec504.spr24.sameGameTris; import java.util.EventObject; Loading @@ -12,31 +12,35 @@ class CircleRolloverEvent extends EventObject { /* * the location of the button broadcasting the event */ private final int xx; private final int yy; private final int _xx; private final int _yy; private final CircleColor clr; private final SelfAwareCircle.Visibility visibility; // Constructor(s) /* * Records a rollover event on a specific button * @param source The "source" upon which the event initially occured * @param xx The x coordinate (in the gridlayout of buttons) of the button that was rolled over * @param yy The y coordinate (in the gridlayout of buttons) of the button that was rolled over * @param clr The color of the button that initiated the event * @param visibility Should circles be highlighted or unhighlighted * @param source The "source" upon which the event initially occured * @param vis Should circles be highlighted or unhighlighted */ public CircleRolloverEvent(Object source, int xx, int yy, CircleColor clr, SelfAwareCircle.Visibility toDo) { public CircleRolloverEvent(Object source, int xx, int yy, CircleColor clr, SelfAwareCircle.Visibility vis) { super(source); // register with the superclass this.xx=xx; this.yy=yy; this.clr=clr; this.visibility = toDo; this._xx = xx; this._yy = yy; this.clr = clr; this.visibility = vis; } // Methods // ... accessor int getXX() { return xx; } int getYY() { return yy; } SelfAwareCircle.Visibility getAction() { return visibility; } CircleColor getColor() { return clr; } // ACCESSORS int getXX() {return _xx;} int getYY() {return _yy;} SelfAwareCircle.Visibility getVisibility() {return visibility;} CircleColor getColor() {return clr;} }