CS491 Robert Lai Winter 2006. Project name Curve Bank Project Baravelle Spirals To create an n polygons and then with another 1/n polygon inside the polygon.

Slides:



Advertisements
Similar presentations
Flow Master  Flow Master is used to design and analyze single pipe.  It is very flexible as no unit conversion is needed.  Data can be entered with.
Advertisements

GUIs Part 4 CS221 – 4/17/09. Professional Assignments Assignment #2 – Download and install Visual Studio 2008 Professional Trial Software –
1 Chapter 7 Graphics and Event Handling. 2 Overview The java.awt and javax.swing packages and their subpackages support graphics and event handling. Many.
CS491b Project Taichi Murase. CS491a Project Project name: Pythagoras Tree Goal: As a CS major student, create a good work for the Curve Bank project.
Advanced Java Class GUI – part 1. Intro to GUI GUI = Graphical User Interface -- “Gooey” Just because it’s “gooey” does not mean you may write messy code.
Created by Ron Beglieter (based on the Java Tutorial) 1 What is Java? Java technology is both a programming language and a platform; Programming Language.
Automated Inventory Management Chao Li CS 491A Winter 06.
CS 112 GUI 06 May 2008 Bilkent. Java GUI API Containers: ◦ contain other GUI components. E.g, Window, Panel, Applet, Frame Dialog. Components: ◦ Buttons,
GUI Programming in Java Tim McKenna GUI Programming Concepts l conventional programming: sequence of operations is determined by the program.
Programming Task: Task 1 Controlled Assessment Practice.
GUI Programming in Java
Lab 5: drawing and output User Interface Lab: GUI Lab Sep. 25 th, 2013.
History of Flash FutureSplash Animator (1996) FutureSplash Animator (1996) Macromedia Flash 1 (1996) Macromedia Flash 1 (1996) Macromedia Flash 2 (1997)
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
Intro to GUIs (Graphical User Interfaces) Section 2.5Intro. to GUIs: a GUI Greeter Section 3.7Graphical/Internet Java: Einstein's Equation.
Learn about the types of Graphics that are available Develop a basic Graphics applet Develop a basic Graphics application Review the Java API and use.
Java Packages and Libraries M Taimoor Khan
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
Input & Output In Java. Input & Output It is very complicated for a computer to show how information is processed. Although a computer is very good at.
Objectives of This Session
Dale Roberts GUI Programming using Java - Introduction Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer.
School of Computer Science & Information Technology G6DICP - Lecture 17 GUI (Graphical User Interface) Programming.
Ch 3-4: GUI Basics Java Software Solutions Foundations of Program Design Sixth Edition by Lewis & Loftus Coming up: GUI Components.
 2002 Prentice Hall, Inc. All rights reserved Introduction Graphical User Interface (GUI) –Gives program distinctive “look” and “feel” –Provides.
1 CSC111H Graphical User Interfaces (GUIs) Introduction GUIs in Java Understanding Events A Simple Application The Containment Hierarchy Layout Managers.
– Advanced Programming P ROGRAMMING IN Lecture 21 Introduction to Swing.
Graphic User Interface. Graphic User Interface (GUI) Most of us interact with computers using GUIs. GUIs are visual representations of the actions you.
CS Lecture 00 Swing overview and introduction Lynda Thomas
MSc Workshop - © S. Kamin, U. ReddyLect 3 - GUI -1 Lecture 3 - Graphical User Interfaces r GUI toolkits in Java API r JFrame r GUI components.
Timer class and inner classes. Processing timer events Timer is part of javax.swing helps manage activity over time Use it to set up a timer to generate.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Applets Yong Choi School of Business CSU, Bakersfield.
Class Libraries Chapter 1 1 Source Intro to Java Programming Y. Daniel Liang.
 GUI – Graphic User Interface  Up to now in the programs we have written all output has been sent to the standard output device i.e.: the DOS console.
The Abstract Window Toolkit (AWT) supports Graphical User Interface (GUI) programming. AWT features include: a rich set of user interface components; a.
CS1054: Lecture 21 - Graphical User Interface. Graphical User Interfaces vs. Text User Interface.
Week 6: Basic GUI Programming Concepts in Java Example: JFrameDemo.java container : a screen window/applet window/panel that groups and arranges components.
CS 4244: Internet Programming User Interface Programming in Java 1.0.
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
Application Programming Interfaces. Java comes with a bunch of classes that are already written. Java comes with a bunch of classes that are already written.
GUIs Graphical User Interfaces. Everything coming together Known: – Inheritance – Interfaces – Abstract classes – Polymorphism – Exceptions New: – Events.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved COS240 O-O Languages AUBG,
Swing. Introduction to Swing What is Swing? “ Swing is a diverse collection of lightweight components that can be used to build sophisticated user interfaces.”
Review_6 AWT, Swing, ActionListener, and Graphics.
Outline Creating Objects The String Class The Random and Math Classes Formatting Output Enumerated Types Wrapper Classes Components and Containers Images.
Basics of GUI Programming Chapter 11 and Chapter 22.
1.  At the end of this slide, student able to:  Applet & Advanced Graphic  Learn how the Web browser controls and executes the applet  Learn how to.
Lecture # 6 Graphical User Interface(GUI). Introduction A graphical user interface (GUI) presents a user- friendly mechanism for interacting with an application.
FlowLevel Client, server & elements monitoring and controlling system Message Include End Dial Start.
CS1354 GRAPHICS AND MULTIMEDIA Handle By, S.JENILA AP/IT.
CS-321 Dr. Mark L. Hornick 1 CS-321 – Computer Graphics Dr. Mark L. Hornick web: webCT: webct.msoe.edu.
Agenda For Feb PowerPoint Presentation on Java Methods. 3. Finish Happy Face Assignment (Due by the.
Graphics Programming. Graphics Functions We can think of the graphics system as a black box whose inputs are function calls from an application program;
CPCS 391 Computer Graphics Lab One. Computer Graphics Using Java What is Computer Graphics: Computer graphics are graphics created using computers and,
Computer Graphics Lecture 1. Books D. Hearn, M. P. Baker, "Computer Graphics with OpenGL", 3rd Ed., Prentice Hall, 2003, ISBN
GUI Programming in Java Hao Jiang Boston College April, 2009.
Graphical User Interfaces
Welcome To java
Chapter 1 Introduction.
Data Structures.
Processing Timer Events
Timer class and inner classes
Packages Written part of final exam Alex Rudniy
Lesson 5-4 Coordinate Geometry
Week 8 Swing NetBeans GUI Builder
What is the function of the graph? {applet}
Graphical User Interface
APPLET PROGRAMMING.
Chapter 1 Introduction.
TA: Nouf Al-Harbi NoufNaief.net :::
Presentation transcript:

CS491 Robert Lai Winter 2006

Project name Curve Bank Project Baravelle Spirals To create an n polygons and then with another 1/n polygon inside the polygon. Repeat the same step many times to create a tail like graph.

Technical approach First of all, need to design what kind of polygon the user want to create. Next, generate the base polygon and then from the mid-point of each sides of the base polygon create another of 1/n size of the same polygon.

Technical approach (2) For examples:

Technical approach (3) 2a (x, y) (y – a* Math.sqrt(3)) a (x + a, (y – a* Math.sqrt(3)))(x - a, (y – a* Math.sqrt(3))) 60

Platform Java NetBeans 5.0 Open source import java.io.*; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import javax.swing.*;

import java.io.*; Provides for system input and output through data streams, serialization and the file system.

import java.awt.*; Contains all of the classes for creating user interfaces and for painting graphics and images.

import java.awt.event.*; Provides interfaces and classes for dealing with different types of events fired by AWT components.

import java.awt.geom.*; Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.

import javax.swing.*; Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

Status Able to draw a simple Triangle without user input Still need to work on how to generate the polygon recursively Need user input Need color change