Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

1 Project 1 Java 2D Graphics Overview In this project you will create 3 simple, images or your choice and use Java 2D graphic methods to rotate, scale and translate each of the images. ...

1 answer below »
1
Project 1
Java 2D Graphics
Overview
In this project you will create 3 simple, images or your choice and use Java 2D graphic methods to
otate, scale and translate each of the images.
Requirements:
1. Using Netbeans or Eclipse, develop a Java 2D graphics application that creates 3 images. The
images should have the following specifications:
a. Size: minimum 25x25 pixels, larger images are Okay
. Type: Color (consists of two or more colors)
c. Simple form or shape (Hint: consider a letter or number, or even simple shapes such as
crossing lines, rectangles, or circles
d. You should generate the image inside of separate methods and store them as 2D a
ays.
2. Use Java 2D graphics to display your original images.
3. For each image use the existing Java 2D graphics transformation methods to translate, rotate
and scale each object. You should perform the following transformations on each image:
a. Translate -5 in x direction, Translate +7 in the y direction.
. Rotate 45ï‚° counter clockwise.
c. Rotate 90ï‚° clockwise
d. Scale 2 times for the x component, scale 0.5 times for the y component
e. Each of these transformations should be displayed in sequence with the images always
starting from the previous transformation as opposed to the original image.
f. Use Java 2D graphics to display each transformation for each image. (Hint: review the
Project 1 template for a good start for this project.)
4. All Java source code should be written using Google Java style guide.
5. Prepare, conduct and document a test plan verifying your application is working as expected.
This plan should include a test matrix listing each method you tested, how you tested it, and the
esults of testing.
Deliverables:
1. All Java source code used for this project. Code should adhere to the Google Java style guide.
2. Word or PDF file demonstrating with clearly labeled screen captures and associated well-written
descriptions, the success execution of your 2D graphics transformation. The document should
e well-written, well-organized, include your test plan, include page numbers, captions for all
screen captures, and a title page including your name, class, section number and date.
References should be included for all sources used and formatted in APA style.
Answered Same Day Jan 22, 2023

Solution

Aditi answered on Jan 23 2023
40 Votes
Project1- Java 2DGraphics
(
Project

1
) (
1
)
Introduction
I made three basic graphics of my choice, alternating two letters (Z and E) one and shape (Square). Each picture is 25x25 pixels in size and two distinct colours , and it employs transformation algorithms to translate, rotate, & scale the letters and shape as specified in the instructions.
Test Cases:
    Test Case
    Input
    Expected Output
    Actual Output
    Pass?
    1
    Translate -5 in x
axis(first frame)
    Images move -5 in x
direction
    Images move -5 in x
direction
    YES
    2
    Translate +7 in y
axis (second frame)
    Images moves +7 in the
y direction
    Images moves +7 in
the y...
SOLUTION.PDF

Answer To This Question Is Available To Download

Submit New Assignment

Copy and Paste Your Assignment Here