Recitation 5 In this recitation you will have an example on displaying multiple objects on ObjectEditor. The code can be found in the recitation page.

Slides:



Advertisements
Similar presentations
How to Debug VB .NET Code.
Advertisements

Factorial Calculator and Debug Mode Slides: tures/Eclipse.pdf
UML Basics & Access Modifier
Dreamweaver MX Unit A CIS 205—Web Site Design & Development.
INTRODUCTION TO HTML5 Semantic Layout in HTML5.  The new semantic layout in HTML5 refers to a new class of elements that is designed to help you understand.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Change in your CAD Project File - it happens all the time in robotics.
An Introduction to Programming with C++ Sixth Edition Chapter 14 Sequential Access Files.
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
Development with Eclipse Software Engineering Prof. Werner Krandick.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Recitation 5 September 23, As you come in...  Please sit next to someone you will collaborate with for today’s recitation.  Choose someone with.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
1 Project 12: Cars from File. This is an extension of Project 11, Car Class You may use the posted solution for Project 11 as a starting point for this.
MIS 3200 – C# (C Sharp)
Using a set-up file to read ASCII data into Stata
Dive Into® Visual Basic 2010 Express
Development with Eclipse
Creating & Working with Clipping Masks
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Chapter 1: An Introduction to Visual Basic 2015
Creating Links – Lesson 3
Recitation #3 Comp Semion Piskarev.
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Creating a button in Photoshop 7.0
European Computer Driving Licence
CIS 273 Innovative Education-- snaptutorial.com
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
CREATING AND USING FILE FOLDERS
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Recitation 4 Comp
How to Run a Java Program
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Composite Objects with Object Editor With slides from Andrew Ghobrial
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Items, Group Boxes, Check Boxes & Radio Buttons
Let’s play with shapes! play.
Java External Libraries & Case Study
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Other displays Saving Arrays Using fors to process
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Visual Studio.
Review Session Biggest discrepancy questions
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Functions, Return Values, Parameters Getters and Setters
Debugging Visual Basic Programs
POS 408 Week 1 Individual Assignment Individual: Console Display Message//tutorfortune.com Click on below link to buy
Document Structure & HTML
How to write good code Part 2
Functions, Return Values, Parameters Getters and Setters
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
How to debug a website using IE F12 tools
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Microsoft Office Illustrated Fundamentals
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Area of combined shapes
SIMPLE TEMPLATE ---- developed for kids ---- James Sager, Morgan Sager
Python – May 25 Quiz Python’s imaging library Lab
Presentation transcript:

Recitation 5 In this recitation you will have an example on displaying multiple objects on ObjectEditor. The code can be found in the recitation page. To display multiple objects of different types, the basic idea is to have a big class, in which those objects are properties. Notice you need to remove invalid ObjectEditor(properties—java build path -- Libraries), and import ObjectEditor again.

AUniverse Class AUniverse is the class that contains all other objects. To ensure that ObjectEditor can “see” these objects in Auniverse, every object needs to have getter method. The line object theLine and point object lineLocation: theLine takes lineLocation as its X and Y. As a result, every time you set a new value for lineLocation, theLine will also move.

AStringShape and AShapeImage AStringShape and AShapeImage are objects that displays a string text and an image respectively. Both of them have a string property, which represents the string text or the filename of the image. And these two properties need to be initialized before it can be displayed on ObjectEditor. For AShapeImage, in order to let the ObjectEditorthe can find the image file, the image file has to be in the project folder.

Tasks Modify the constructor of Auniverse, use some different values to initialize these objects. Find some new images and try to display them. i.e. set the string property of AShapeImage to the name of the image files (.jpg file ) Try new text in AStringShape Notice that the AShapeImage class has properties height and width(it actually does not need them to work properly), try to set these two values smaller than the size of the image (or greater than), see what happens. Use annotation @Visible(false), put them before the getter method

Use the tree view and debug mode to observe the logical structure and physical structure (you may need to set breakpoints to use the debug mode) When ObjectEditor is running, notice the menu bar, under the list AUniverse, you can see a list of methods. They are actually public methods in Auniverse except setters and getters. Try to use these methods to control these objects. You will need to use menu in next assignment.

To Submit Submit on Sakai a screenshot of something you composed with ObjectEditor (e.g. a house, stick figure with image for face, etc..) You can use some of these shapes available to you: Line Point Image (download from Internet to your project folder) Text Rectangle Oval Get your masterpiece to move using the moveAll() method as in the code we gave you.