Question: You are to extend the baseline code to add several new features using AspectJ. DO NOT EDIT THE SOURCE CODE OF THE BASELINE JAVA PROGRAM.

You are to extend the baseline code to add several new features using AspectJ. DO NOT EDIT THE SOURCE CODE OF THE BASELINE JAVA PROGRAM. Do not duplicate in your AspectJ code the features that are already implemented in the baseline code. (64 lines of source code) Write an aspect named pressDisc to improve user experience of the application. The aspect shall highlight the disc to be dropped by showing a different display, e.g., an outlined disc, when the user click it. It shall give an impression that the disc rises up towards the user, or gets depressed away. Hint: When a mouse is pressed on a droppable disc, show a raised (or depressed) display of the disc. When a mouse is released, show the regular display. Hint: The following methods and classes/interfaces may be useful. int BoardPanel.locateSlot(int,int) void BoardPanel.drawChecker(Graphics, Color, int, int, int) void BoardPanel.addMouseListener(MouseListener)* MouseListener interface: mousePressed, mouseReleased MouseAdapter class *Inherited from Component 

API specification:

http://www.cs.utep.edu/cheon/cs3360/project/proj2/javadoc-c4/index.html

sample solution:

http://www.cs.utep.edu/cheon/cs3360/project/proj2/c4-aj.jar

an executable jar file to extend baseline code :

http://www.cs.utep.edu/cheon/cs3360/project/proj2/c4-base.jar

Java baseline code:

http://www.cs.utep.edu/cheon/cs3360/project/proj2/c4-base-src.zip

 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!