Top Banner
ACO 101 Instantiating Graphic Objects
23

ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Jan 02, 2016

Download

Documents

Owen Hood
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

ACO 101

Instantiating Graphic Objects

Page 2: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Review: 4 Phases to the Development Lifecycle

• Inception (Analysis & Design)– Business Requirements

• Business Analyst• Game designers

– Technical Specifications• Programmers

• Elaboration (Design)– Functional specification document – Project Manager

• Construction (Implementation)– Programmers– Animators/Modelers

• Transition (Testing and Deployment)

– Programmers– Testers– Project Manager

Page 3: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Review: Object Oriented Abstraction : aka Entity Abstraction

Page 4: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Review: Identifying ClassesDuring design, you need to identify the classes. Classes are used to model

things:

• Tangible things in the design: nouns, such as– purse, mailbox, bank account, keypad, email message

• Users– Student, Administrator, Bank Manager

• Agents ("-er" or "-or" words)– Scanner, file reader, sentence reader, CSVreader– agents perform some operation (sentence reader)

• Events and Transactions– Button click, ATM Withdrawal, Register for Course are all events– transactions are uses for interactions between classes, usually contain

info that doesn't "belong" in a thing class

Page 5: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Identify the modules and abstract

Page 6: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Review… UML Class Diagrams[a visual modeling tool]

BankAccount

nameaccountIDbalance

getBalance( )credit( double amount )debit( double amount )getName( )

A UML class diagram

The methods = what it DOES

The Class Name

The attributes or state = what it KNOWS

Page 7: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Review: What a Sequence Diagram looks like

Page 8: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Moving forward: Why do you need to understand the graphic objects?

1. The business has no time and wants its technology to spontaneously generate visual reports to give them data to make decisions

2. Data visualization is in its infancy 3. being able to abstract a problem effectively is

a rare skill

Page 9: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Data Visualization

• http://www.ted.com/talks/lang/eng/jonathan_harris_collects_stories.html

Page 10: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Lets get started:Location of the API [again]

• http://download.oracle.com/javase/7/docs/api/index.html

Page 11: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Graphic objects to work with

Page 12: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

The stage is an object

Page 13: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

The paper that you used for your rectangle drawing is an object

• Paper = Stage– What is the same object as the paper?– Answer – the JFrame

Page 14: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

JFrame: fields

Page 15: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

JFrame: constructor

Page 16: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

JFrame: methods

Page 17: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

JFrame: more methods

Page 18: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

JFrame: more methods

Page 19: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Rectangle

• For a square use the rectangle and make the height and width the same value

Page 20: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Rectangle: The fields [holds the state]

Page 21: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Rectangle: the methods [what it does]

Page 22: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Rectangle: The constructor overloads

Page 23: ACO 101 Instantiating Graphic Objects. Review: 4 Phases to the Development Lifecycle Inception (Analysis & Design) – Business Requirements Business Analyst.

Homework

• Wiley plus code completion assignment: More Rectangles– If you seek help from the tutor – you must have class diagrams

of the objects you intend to use to show to attain her help.• Pick out the fields, constructor and the methods you intend to use in

the Jframe and the Rectangle objects• You must try to solve the problem by yourself before you ask the

tutor for help.

– You must also have a sequence diagram to show that you have tried to understand the relationship of the classes

• The computer lab is CLCC 385 and the tutor’s name and hours are posted on the Blackboard announcement post for this class