Demonstrate the use of the pathtransition class

Assignment Help JAVA Programming
Reference no: EM132644924

CSC72002 Object Oriented Programming - Southern Cross University

Specifications

Your task is to complete various exercises in NetBeans, using the Java language, and to submit these via the MySCU link created for this purpose.

Getting Help
This assignment is to be completed individually. It is the opportunity to gain an understanding of the concepts of object-oriented programming and coding syntax. It is important that you master these concepts yourself. You are permitted to work from the examples in the study guide or textbook, but you must acknowledge assistance from other textbooks or classmates. In particular, you must not use online material or help from others, as this would prevent you from mastering these concepts.

Part 1 - Shapes and Events
Create a new JavaFX project called usernamePart1 in NetBeans. In my case, the project would be called pdarcyPart1.
Using a GridPane:
• Add at least 4 different shapes to your app (Every shape must have at least 1 event)
• Demonstrate the use of at least 4 different Mouse events
• Demonstrate the use of at least 2 different Key events
• Demonstrate the use of at least 1 inner class
• Demonstrate the use of at least 1 anonymous inner class
• Demonstrate the use of at least 1 lambda expression
• Demonstrate the use of setHgap, setVgap, setHalignment and setValignment
• Ideally, you should have a method for each shape

Part 2 - Images and Animations
Create a new JavaFX project called usernamePart2 in Netbeans. In my case, the project would be called pdarcyPart2.
• Add an image as the background for your app using an ImageView object
• Demonstrate the use of at least 3 methods of ImageView, e.g. setFitHeight
• Add a Polygon with at least 8 sides
• Demonstrate the use of the PathTransition class using the polygon as the path and any shape as the node
• Demonstrate the use of the FadeTransition class to fade the polygon in and out
• Add a second shape (can be any shape) and set the fill to red
• Demonstrate the use of the Timeline class to change the colour of the second shape every 2 seconds indefinitely, e.g. red to blue to red to blue to red etc.

Part 3 - UI Controls and Collections
Create a new JavaFX project called usernamePart3 in NetBeans. In my case, the project would be called pdarcyPart3.
For this part of the assignment, you need to build an app that stores a collection of Sculptures for a small exhibition (see the attached class at the end of this assignment). Your app will allow the user (exhibition's staff) to enter data about a sculpture. When the user is finished, the data will be written to a Sculpture object, and then the Sculpture object will be added to a LinkedList. The user can then enter data for a new sculpture and repeat the process.

Your app will need the following UI controls that will be mapped to instance variables in the Sculpture class provided at the end of this document:
• Text field for the sculpture title
• Text field for the sculpture artist
• Slider for the year created (sculpture creation year, e.g. 2020)
• Radio buttons for the sculpture height (tall (over 5m), medium (shorter than 5m, taller than 1m) and short (under 1m))
• A combo box for sculpture's weight (Very Heavy, Heavy, Medium, Light, Very Light, etc.)
• A list view for the following four countries of origin of sculptures:
o Italy
o France
o China
o United Kingdom
• CheckBoxes for the material(s) that the sculpture might have (e.g. Stone, Metal, Glass, Pottery, Wood Carving, Other, etc.)
Once a user has entered the data for a sculpture, your app needs to do the following:
• Write the data from the UI to a Sculpture object (use the attached class at the end of this assignment)
• Add the Sculpture object to a LinkedList that will store all sculptures entered by the user
• Reset the UI controls so the user can enter a new sculpture

One way to do this would be to have the following (you do not have to do it this way):
• A "New Sculpture" button that resets the UI controls
• An "Add Sculpture" button that creates a new instance of the sculpture, sets the Sculptures instance variables (via the mutator methods) using the values from the UI controls and then adds the sculpture to the LinkedList
PLEASE NOTE:
• You CANNOT modify the attached Sculpture class

Part 4 - Parallel Programming
Create a new Java project called usernamePart4 in NetBeans. In my case, the project would be called pdarcyPart4.
Write a program that uses 4 threads to print out 4 sculpture titles (Donatello's Equestrian Monument of Gattamelata, The Terracotta Army, Michelangelo's David, Maman) in the console, in parallel, 20 times each author. NOTE: you will not receive any marks if your program does not use threads.
• Use two different ways to create the threads: by using the Thread class, and by using the Runnable interface
• Set different priority to each thread (maximum, normal, minimum)
• Write the code to put the threads to sleep for 100 milliseconds each time a sculpture artist is printed to the console

Use of thread pools:
• Create a fixed thread pool that returns a thread pool with a maximum of 3 threads
• Write the code to shut down the fixed thread pool after current tasks are complete and return TRUE when the shutdown is complete
• Create a cached thread pool that returns a thread pool that creates new threads as required
• Write the code to shut down the cached thread pool immediately and return TRUE if all tasks in the cached thread pool have been terminated

Avoiding data corruptions
• Assume that there is a possibility of data corruption in this program (data corruption may not happen in this program). Write the necessary code to your methods to allow only one thread can execute the code block at one time so that data corruption is prevented. In order to do so, use both thread Synchronisation and explicit lock object techniques separately.

Attachment:- Object Oriented Programming.rar

Reference no: EM132644924

Questions Cloud

Describe the shape for the distribution of number of items : Describe the shape for the distribution of number of items per order as negatively skewed, symmetric or positively skewed? Briefly explain.
Describe the american criminal justice system : A common thread throughout this course is the intentional analysis of criminal justice through a historical lens with the hope of understanding deeply rooted.
Paid to make decisions : What are the weaknesses, if any, in Carrie's final statement about decision-making responsibility?
What was Oriole stockholders equity at the end of the year : The company recorded revenues of $394000, expenses of $292000, and paid dividends of $31200. What was Oriole' stockholders' equity at the end of the year
Demonstrate the use of the pathtransition class : Demonstrate the use of the PathTransition class using the polygon as the path and any shape as the node and Create a new JavaFX project called usernamePart3
What additional information would you propose to share : What additional information would you propose to share with either or both of these individuals to persuade them into such a paradigm shift?
By what amount Crane stockholders equity changed : Crane paid dividends of $50700. Crane's stockholders' equity changed by what amount from the beginning of the year to the end of the year
Lab safety and universal precautions : How can the laboratory practices and safety precautions demonstrated in the video help you reduce hazards in your laboratory setting?
Which is a correct interpretation of the confidence interval : Which is a correct interpretation of the confidence interval? If we took many random samples, 90% of the confidence intervals would be 5.8

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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