-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kevin Leiser
authored and
Kevin Leiser
committed
Jun 22, 2018
1 parent
a94f233
commit e7d8f49
Showing
23 changed files
with
956 additions
and
10 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+50 Bytes
(100%)
out/production/HW6/cs3500/animator/controller/ControllerFactory.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
out/production/HW6/cs3500/animator/controller/ControllerGUI$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
out/production/HW6/cs3500/animator/controller/ControllerGUI.class
Binary file not shown.
Binary file modified
BIN
+609 Bytes
(140%)
out/production/HW6/cs3500/animator/controller/HybridController.class
Binary file not shown.
Binary file modified
BIN
-337 Bytes
(87%)
out/production/HW6/cs3500/animator/controller/InteractiveController.class
Binary file not shown.
Binary file added
BIN
+1.32 KB
out/production/HW6/cs3500/animator/controller/Listener$GuiEventType.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+43 Bytes
(100%)
out/production/HW6/cs3500/animator/util/DrawableTextShape.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
out/production/HW6/cs3500/animator/view/IView$ViewType.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+1.62 KB
(180%)
out/production/HW6/cs3500/animator/view/InteractiveViewGUI.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
package cs3500.animator.controller; | ||
|
||
/** | ||
* Listener is an object that listens for a change from the view so the controller can decide | ||
* what is to be done next. | ||
*/ | ||
public interface Listener { | ||
|
||
/** | ||
* Enumeration of types of Gui events | ||
*/ | ||
enum GuiEventType { RESTART, CHANGE_SPEED, START_STOP, TOGGLE_LOOPING, EXPORT } | ||
|
||
public void action(GuiEventType type); | ||
/** | ||
* This fires when a GuiEvent happens that doesn't need a remembered state (i.e. the restart | ||
* button may have been pressed). | ||
* @param type type of Gui event. Can only be RESTART, START/STOP, TOGGLE_LOOPING, or EXPORT | ||
*/ | ||
void action(GuiEventType type); | ||
|
||
public void change(GuiEventType type, int value); | ||
/** | ||
* This fires when an event that requires a variable value happens (i.e. change speed). | ||
* @param type | ||
* @param value | ||
*/ | ||
void change(GuiEventType type, int value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters