Answered step by step
Verified Expert Solution
Question
1 Approved Answer
GUI Description A snapshot of Circle Catcher GUI looks similar to the image below: Circle Catcher This project will have two classes, RandomCircle and
GUI Description A snapshot of Circle Catcher GUI looks similar to the image below: Circle Catcher This project will have two classes, RandomCircle and CircleCatcher. RandomCircle Class The RandomCircle class extends Circle and therefore has all Circle methods. Use them to set the data including radius and fill color. It may be a good idea to pass the window width and height into the RandomCircle constructor to use it for random point calculations, etc. Each instance of RandomCircle must have: A random radius (of reasonable value) and fill color. If needed, reference the Color class at the JavaFX API for creating a custom color: An animation that moves the RandomCircle (itself) back and forth between two random points in the window indefinitely. o The random points must not allow the circle to go outside of the window! Note when using animations that move a Shape, avoid setting positioning data (such as centerX/Y) on the Shape or the animation will be offset by those position values. A mouse pressed event that causes the RandomCircle (itself) to stop the current animation and change it to move the ball from the current mouse position to the center of the window. The GUI after clicking some of the RandomCircles: Circle Catcher CircleCatcher The CircleCatcher's primary responsibility is to create an array of RandomCircles and put them in a window. Use the appropriate layout container that allows absolute positioning (look at examples if you don't find it in the slides!) I used a (width, height) of (600, 400) for my window. Design your code so you can create any amount of RandomCircles by changing only one line of code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started