Enhancing the drawer package in the given ways

Assignment Help Basic Computer Science
Reference no: EM131784860

Question: Enhance the drawer6 package in the following ways:

a. Add "Delete," "Cut," "Copy," and "Paste" menu items to the Edit menu in the drawer6 package. The Delete menu item removes the selected figures from the canvas. The Copy menu item creates copies of the currently selected figures and puts them in a clipboard for later pasting. Cut is just like Copy except it deletes the currently selected figures after copying them. The Paste menu item should take the figures in the clipboard and paste them down and to the right a few pixels from where the original figures were at the time they were copied. Ideally you will use the system clipboard so that copied figures can also be pasted into other applications if they support such pasting. To get the system clipboard using Java, have your Drawing Canvas class call

getToolkit().getSystemClipboard()

b. Implement resizing. To do so, add a new "Resize" tool. When the user selects the resize tool and drags one of the corner (light green) boxes on a selected figure, that figure is stretched with the dragging. The corner of the selected figure opposite to the dragged corner remains fixed.

c. Add context menus. That is, when the user right clicks on a figure using the selection tool, that figure is and a popup menu appears with appropriate options for the type of figure selected.

For this exercise, the popup menu should just have a "Delete" menu item unless the selected figure is a Group Figure, in which case there should also be an "Ungroup" menu item.

Reference no: EM131784860

Questions Cloud

Defining the incremental changes in state : Reimplement the Undo Redo Handler in drawer6 so that it stores only incremental changes in state instead of a complete snapshot of the state in each memento.
Prepare the journal entries to record the sale on july : Harwell Company manufactures automobile tires. Prepare the journal entries to record the sale on July 15 (ignore cost of goods) and payment on August 15, 2011
Compute thecontribution margin ratio : Without resorting to calculations ...What is the total contribution margin at the break-even point? Compute theContribution margin ratio.
Testing the equality of the drawings : One shortcoming of the drawer6 package is that a new state may be saved on the undo stack that is identical to the state immediately below it.
Enhancing the drawer package in the given ways : Add "Delete," "Cut," "Copy," and "Paste" menu items to the Edit menu in the drawer6 package. The Delete menu item removes the selected figures from the canvas.
Create a figure command interface with one method : Other objects can traverse an Array List by invoking the list's iterator method, which returns an Iterator. Such an Iterator is used quite a few times.
Discuss the adjustment for the inventory shrinkage : What accounts would be increased and decreased to record the adjustment for the inventory shrinkage at the end of the accounting period
Defining the code between tokens : Extend the language to allow comments. Come up with your own syntax. You should be able to insert comments anywhere in the code between tokens.
Annual cost of the silverware with an optimal order quantity : What are the annual cost of the silverware with an optimal order quantity? What is the annual ordering cost?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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