Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IT 114 Advance Program for information technology Circles 9 19 Class: Language/Type: Java graphics methods parameters DrawingPanel Related Links: Color Graphics DrawingPanel Write a complete

IT 114 Advance Program for information technology
image text in transcribed
image text in transcribed
Circles 9 19 Class: Language/Type: Java graphics methods parameters DrawingPanel Related Links: Color Graphics DrawingPanel Write a complete program in a class named Circles that draws the following graphical figure onto a DrawingPanel: DrawingPanel The overall drawing panel is size 500 x 350. Its background is cyan. The rectangular area behind the grids is green, and the background of the circles is yellow. The rectangles and circles are outlined in black Each grid also has a pair of lines drawn across it in an "X" pattern. The seven figures on the panel should have the following properties: Iveta 13 black. Each grid also has a pair of lines drawn across it in an "X" pattern. The seven figures on the panel should have the following properties: Description (x, y) position size of subfigure circles per subfigure rows/cols top-left (0,0) 100 x 100 10 N/A top-middle 1 (130,25) 100 x 100 10 N/A top middle 2 (260,0) 60 x 60 6 N/A top-right (360, 50) 80 x 80 4 N/A bottom-left (10,170) 48 x 48 4 3x3 bottom-middle (180, 200) 24 x 24 2 5x5 bottom-right (330, 170) 72 x 72 9 2 x 2 Structure your solution and eliminate redundancy using methods. Write a method to draw one single concentric circle subfigure. A subfigure is one set of yellow and black concentric circles. Different subfigures have different sizes, positions, and so on. Therefore, your method should accept several parameters so that it is possible to call it many times to draw the many different subfigures on the screen. Assume that every subfigure's width and height are the same, and that the subfigure's size is a multiple of its number of circles, so that all coordinates are integers. Write another method that produces a square grid of subfigures. You will call this method three different times to produce the grids of the overall figure. It will need a lot of parameters to be flexible enough to draw each of these grids. The key point is that this single method can be called multiple times to produce all the grids in the overall figure. Your two methods should work together to remove redundancy. Assume each grid has an equal number of rows and columns. (You don't need to indude any import statements at the top of your program.)

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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

Question What are the advantages of a written bonus plan?

Answered: 1 week ago