Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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 Vectorcollection 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

Java, Programming

  • Category:- Java
  • Reference No.:- M91612725
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As