Code that deals with user inputs via mouse

Assignment Help JAVA Programming
Reference no: EM13941854

class DataItem; partially implemented abstract base class of hierarchy; defines data members for common data elements; provides common functionality;
class PictureDataItem; concrete class for Image based data items;
class SoundDataItem; concrete class for Sound based data items;
class TextDataItem; concrete class for Text based data items;

Tracer statements.
Can you incorporate tracer statements in a the methods of the classes that you write.

----------------------------------------------------------------------------------

For more information theres a readme.txt

The main Java framework code is supplied, I need help!!!!!!!!! to implement the DataItem hierarchy.

A2.java
Driver program.

Creates the other elements, displays GUI.

Run:

java A2 data.txt

where data.txt is data file with text defining the background picture and the various data items.

A2Control.java

Code that deals with user inputs via mouse (mouse motions and mouse clicks). These results in calls to A2Model where
check if mouse in an active region and respond appropriately.

A2Display.java

A very simple GUI - canvas in scrollpane (AWT library).

A2Model.java

The data! An instance of this class will own an image (the background image for the display) and a collection of data items.
It has an input function that reads the lines in the data file that specify the type of the next data item; the appropriate item is created (Java 'reflection' style) and told to read its data. The input function builds the collection of items. The other functions
in this class perform tasks like checking whether a data item has been clicked, and choosing an appropriate cursor.

CursorCollection.java

Code to create cursors from GIF images and make these available by name.

DataItem.java

Uhm - well actually you have to write this; this "code" is fragmentary.

MyCanvas.java

Display area linked to underlying data - arranges that data is drawn at appropriate times. (Here, the data is just the
background image)

PictureDialog.java

See TextDialog, but this is for pictures

TextDialog.java

Intended for use from the display function in TextDataItem Constructor takes reference to "frame", a title, and a Vector<String>collection of text; should create a new TextDialog, make it visible,
it will display until its window closed.

images/

Directory with a few "GIF" images that could be used for cursors Also a place to put own images

sounds/

Place to put sound files

data.txt

Dummy file providing some suggestion as to form of a data file

cursors.txt

File with names and references to cursor gif files

Attachment:- brainmass.zip

Reference no: EM13941854

Questions Cloud

Is the criminal justice system oppressive : What other myths about law enforcement personnel are prevalent in the community? Do these myths differ across different communities or cultures? Why do these myths exist?
Brief description of the sector products and services : For this assignment you must complete a review and analysis of a sector operating in the Singaporean business environment. Brief description of the sector's products and/or services and Current stage of development (e.g. emerging, growing, stagnant, ..
Discuss the stages of team development : Discuss the stages of team development and relate them to IT team. Discuss the difference a change manager might have made to the organization and especially the IT team. What measures could Patricia and Phillip taken to improve the situation?
Determine the pension expense to be reported : Determine the pension expense to be reported in 2011. Prepare the journal entry to record pension expense and the employers' contribution to the pension plan in 2011.
Code that deals with user inputs via mouse : data.txt is data file with text defining the background picture and the various data items.
Discuss the aml regulatory frameworks : Choose a country; discuss the AML regulatory frameworks in both a national and global context. You need to focus on compliance issues, enforcement and punishment, economic impact, legal issues, and cultural dimensions.
Xerox customer-service teams : 1. When it comes to how a team is designed (i.e., members, communication, goals, norms, etc.) and team leadership, which of the following statements is most true based upon the studies from the Xerox customer-service teams?
Why has korean war often been called america forgotten war : Explain how the situation in Europe immediately following the fall of Germany led directly to the Cold War. In your opinion, should the Western Allies have acted to oppose Soviet domination of Eastern Europe?
Personal journal or diary for capturing an experience : A personal journal or diary is primarily used for capturing an experience, to record an event or our feelings, or simply to try and make sense of the world around us.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement a program that will play the old guessing game

Your assignment is to implement a program that will play the old guessing game "I'm thinking of a number between 1 and 100". The program will be in a webpage

  Wrappershallow and wrapperdeep

Each class is simply a wrapper class to hold a private array variable. int [] a; The default constructor for each class should initialize â??aâ??. Each class should have a toString() and equals(). Each class should have a setArray method that allows ..

  Implementation the two classes

Program Specifications: In the new implementation, the two classes, Student and Grades, are defined with the following operations/methods.

  Find how many strings in a have exactly three 5s

Let A be the set of all strings of decimal digits of length five. For example, 00312, 99999, and 19483 are strings in A.

  Redesign the grading program as an object-oriented design

Redesign the grading program as an object-oriented design. We will start with a simple Student class. The student will have a name, an id (as a String) and a set of grades (as doubles).

  What is the greatest common divisor

What is the greatest common divisor of the Fibonacci numbers f100 and f101 by Euclid algorithm.

  Method to calculate all primes in the range [2..n]

One commonly used method to calculate all primes in the range [2..n] is to start with the number 2, mark it as prime, and mark all its multiples (excluding itself) as not prime. Then, we find the next smallest unmarked number, mark it as prime, and m..

  Create a login form

In this week's lab, we will create a login form, validate a user based on their login name and password, and allow them to access the system or not

  Design and implementation of a hangman game

Design and Implementation of a Hangman game

  Projectyou will design and deliver a website foes fictional

projectyou will design and deliver a website foes fictional client. the project is split into two partspart a website

  Write a class that has three overloaded static methods

Write a class that has three overloaded static methods for calculating the areas of the following geometric shapes

  Create the investment calculator

Create the following GUI that allows a user to calculate the value of an investment after a certain number of years with monthly compound interest.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd