Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions