Review: Event Driven Programming & GUI. CSCE155N Matlab Fall 2016

Size: px
Start display at page:

Download "Review: Event Driven Programming & GUI. CSCE155N Matlab Fall 2016"

Transcription

1 Review: Event Driven Programming & GUI CSCE155N Matlab Fall 2016

2 1. Which of the following is not true about event-driven programming? A. An event source is a GUI component that could generate an event when user interacts with it B. An event listener is a process or thread that is attached to an event source to listen for user interaction with that event source C. An event handler is a function that processes a recorded event D. Event-driven programming does not respond as timely as conventional, procedural programming such as using loops

3 2. Which of the following is not true? A. Edit textboxes, buttons, checkboxes, sliders, and other uicontrol items are event sources found in MATLAB B. In MATLAB, programmers have to explicitly link or map event sources to their listeners C. In MATLAB, programmers have to explicitly link or map event sources to their handlers D. In MATLAB, programmers define, design, and implement event handlers

4 3. Which of the following is not part of implementing a GUI? A. Create an overall window using MATLAB s built-in function figure() B. Create individual GUI components (event sources) using MATLAB s built-in uicontrol() function C. Attach event sources to their event handlers function handle D. Implement event handlers as nested functions E. All of the above are parts of implementing a GUI

5 4. Which of the following is not true about event handlers? A. We implement event handlers as nested functions so that variables of the primary function or main script can be accessed within the functions without having to pass them in B. An event handler can be linked or attached to an event source using the field name callback and a function C. In addition to callback, there are other event types buttondownfcn, widnowbuttonupfcn, windownbuttonmotionfcn, closerequestfcn, etc. D. An event handler can only be attached to one event source

6 5. Consider the given code. Which of the following is an event source that would trigger an event handler? A. The list B. The edit box C. The push button D. The figure S.fh = figure('units','pixels',... 'position',[ ],... 'menubar','none',... 'name','gui_2',... 'numbertitle','off',... 'resize','off'); S.ls = uicontrol('style','list',... 'position',[ ],... 'min',0,'max',2,... 'string',{'one';'two';'three';'four'}); S.ed = uicontrol('style','edit',... 'position',[ ],... 'string','new String'); S.pb = uicontrol('style','push',... 'units','pix',... 'position',[ ],... 'string','add String',... 'callback',{@ed_call,s});

7 6. Consider the given code. What is not true about the event handler? A. It is triggered when user clicks the push button B. It is attached or linked to the event source edit box and the event source list C. Grab the existing strings in the list, grab the existing strings in the edit box, concatenate them, and replace the existing strings in the list with the concatenated string D. Changing the struct S inside the event handler function also changes the struct S outside the function S.fh = figure('units','pixels',... 'resize','off'); S.ls = uicontrol('style','list',... 'string',{'one';'two';'three';'four'}); S.ed = uicontrol('style','edit',... 'string','new String'); S.pb = uicontrol('style','push',... 'string','add String',... 'callback',{@ed_call,s}); function [] = ed_call(varargin) S = varargin{3}; % Get the structure. oldstr = get(s.ls,'string'); addstr = {get(s.ed,'string')}; set(s.ls,'string',{addstr{:},oldstr{:}}); end

8 7. Consider the given code. Which of the following GUIs corresponds to the code? C S.fh = figure('units','pixels',... 'position',[ ],... 'menubar','none',... 'name','gui_2',... 'numbertitle','off',... 'resize','off'); S.ls = uicontrol('style','list',... 'position',[ ],... 'min',0,'max',2,... 'string',{'one';'two';'three';'four'}); S.ed = uicontrol('style','edit',... 'position',[ ],... 'string','new String'); S.pb = uicontrol('style','push',... 'units','pix',... 'position',[ ],... 'string','add String',... 'callback',{@ed_call,s}); A B D

9 8. Consider the given code. Which of the following GUIs corresponds to the code? A C B D S.fh = figure('units','pixels',... 'position',[ ],... 'menubar','none',... 'name','gui_16',... 'numbertitle','off',... 'resize','off'); S.sl = uicontrol('style','slide',... 'position',[ ],... 'min',1,'max',100,'val',50); S.ed(1) = uicontrol('style','edit',... 'position',[ ],... 'fontsize',12,... 'string','1'); % Displays the min. S.ed(2) = uicontrol('style','edit',... 'position',[ ],... 'fontsize',16,... 'string','50'); % Displays the value. S.ed(3) = uicontrol('style','edit',... 'position',[ ],... 'fontsize',12,... 'string','100'); % Displays the max. set([s.ed(:);s.sl],'call',{@sl_call,s});

BUILDING A MATLAB GUI. Education Transfer Plan Seyyed Khandani, Ph.D. IISME 2014

BUILDING A MATLAB GUI. Education Transfer Plan Seyyed Khandani, Ph.D. IISME 2014 BUILDING A MATLAB GUI Education Transfer Plan Seyyed Khandani, Ph.D. IISME 2014 Graphical User Interface (GUI) A GUI is useful for presenting your final software. It makes adjusting parameters and visualizing

More information

Event driven programming

Event driven programming Event driven programming Francesco Vespignani February 5, 2009 Today Event driven programming Matlab Sounds Matlab GUI Execution Scripts are usually a set of instructions that have to be executed sequentially.

More information

Still More About Matlab GUI s (v. 1.3) Popup Menus. Popup Menu Exercise. Still More GUI Info - GE /29/2012. Copyright C. S. Tritt, Ph.D.

Still More About Matlab GUI s (v. 1.3) Popup Menus. Popup Menu Exercise. Still More GUI Info - GE /29/2012. Copyright C. S. Tritt, Ph.D. Still More About Matlab GUI s (v. 1.3) Dr. C. S. Tritt with slides from Dr. J. LaMack January 24, 2012 Popup Menus User selects one from a mutually exclusive list of options The String property is typically

More information

Building a Graphical User Interface

Building a Graphical User Interface 148 CHAPTER 9 Building a Graphical User Interface Building a Graphical User Interface CHAPTER 9 9.1 Getting started with GUIDE 9.2 Starting an action with a GUI element 9.3 Communicating with GUI elements

More information

Graphical User Interface. GUI in MATLAB. Eng. Banan Ahmad Allaqta

Graphical User Interface. GUI in MATLAB. Eng. Banan Ahmad Allaqta raphical ser nterface in MATLAB Eng. Banan Ahmad Allaqta What is? A graphical user interface () is a graphical display in one or more windows containing controls, called components, that enable a user

More information

Level 3 Computing Year 2 Lecturer: Phil Smith

Level 3 Computing Year 2 Lecturer: Phil Smith Level 3 Computing Year 2 Lecturer: Phil Smith We looked at: Debugging Previously BTEC Level 3 Year 2 Unit 16 Procedural programming Now Now we will look at: GUI applications. BTEC Level 3 Year 2 Unit 16

More information

Event-driven Programming: GUIs

Event-driven Programming: GUIs Dr. Sarah Abraham University of Texas at Austin Computer Science Department Event-driven Programming: GUIs Elements of Graphics CS324e Spring 2018 Event-driven Programming Programming model where code

More information

Mid Unit Review. Of the four learning outcomes for this unit, we have covered the first two. 1.1 LO1 2.1 LO2 LO2

Mid Unit Review. Of the four learning outcomes for this unit, we have covered the first two. 1.1 LO1 2.1 LO2 LO2 Lecture 8 Mid Unit Review Of the four learning outcomes for this unit, we have covered the first two. LO Learning outcome (LO) AC Assessment criteria for pass The learner can: LO1 Understand the principles

More information

GUI Building for Test & Measurement Applications

GUI Building for Test & Measurement Applications by: Ahmed Abdalla, The MathWorks GUI Building for Test & Measurement Applications This article demonstrates how you can utilize the below-listed products to create a custom test and measurement GUI application

More information

Part #10. AE0B17MTB Matlab. Miloslav Čapek Viktor Adler, Pavel Valtr, Filip Kozák

Part #10. AE0B17MTB Matlab. Miloslav Čapek Viktor Adler, Pavel Valtr, Filip Kozák AE0B17MTB Matlab Part #10 Miloslav Čapek miloslav.capek@fel.cvut.cz Viktor Adler, Pavel Valtr, Filip Kozák Department of Electromagnetic Field B2-634, Prague Learning how to GUI #2 user? GUI function3

More information

SBT 645 Introduction to Scientific Computing in Sports Science #5

SBT 645 Introduction to Scientific Computing in Sports Science #5 SBT 645 Introduction to Scientific Computing in Sports Science #5 SERDAR ARITAN serdar.aritan@hacettepe.edu.tr Biyomekanik Araştırma Grubu www.biomech.hacettepe.edu.tr Spor Bilimleri Fakültesi www.sbt.hacettepe.edu.tr

More information

There are two ways to launch Graphical User Interface (GUI). You can either

There are two ways to launch Graphical User Interface (GUI). You can either How to get started? There are two ways to launch Graphical User Interface (GUI). You can either 1. Click on the Guide icon 2. Type guide at the prompt Just follow the instruction below: To start GUI we

More information

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists 4,000 116,000 120M Open access books available International authors and editors Downloads Our

More information

Completing this project will help you learn about one-dimensional arrays and how to implement and use functions. More on Matlab graphics GUI design.

Completing this project will help you learn about one-dimensional arrays and how to implement and use functions. More on Matlab graphics GUI design. CS5 Fall 23 Project 3 Due Thursday October at pm You must work either on your own or with one partner. You may discuss background issues and general solution strategies with others, but the project you

More information

UI Toolkits. HCID 520 User Interface Software & Technology

UI Toolkits. HCID 520 User Interface Software & Technology UI Toolkits HCID 520 User Interface Software & Technology http://www.cryptonomicon.com/beginning.html Xerox Alto 1973 Evolution of User Interfaces Command Line (UNIX shell, DOS prompt) Interaction driven

More information

Sharing is the Key. Lecture 25: Parallelism. Canonical Example. Bad Interleavings. Common to have: CS 62 Fall 2016 Kim Bruce & Peter Mawhorter

Sharing is the Key. Lecture 25: Parallelism. Canonical Example. Bad Interleavings. Common to have: CS 62 Fall 2016 Kim Bruce & Peter Mawhorter Sharing is the Key Lecture 25: Parallelism CS 62 Fall 2016 Kim Bruce & Peter Mawhorter Some slides based on those from Dan Grossman, U. of Washington Common to have: Different threads access the same resources

More information

Widgets. Widgets Widget Toolkits. 2.3 Widgets 1

Widgets. Widgets Widget Toolkits. 2.3 Widgets 1 Widgets Widgets Widget Toolkits 2.3 Widgets 1 User Interface Widget Widget is a generic name for parts of an interface that have their own behavior: buttons, drop-down menus, spinners, file dialog boxes,

More information

Special Topics II: Graphical User Interfaces (GUIs)

Special Topics II: Graphical User Interfaces (GUIs) Special Topics II: Graphical User Interfaces (GUIs) December 8, 2011 Structures Structures (structs, for short) are a way of managing and storing data in most programming languages, including MATLAB. Assuming

More information

MATLAB. Creating Graphical User Interfaces Version 7. The Language of Technical Computing

MATLAB. Creating Graphical User Interfaces Version 7. The Language of Technical Computing MATLAB The Language of Technical Computing Note This revision of Creating Graphical User Interfaces, issued May 2006, adds three new chapters that provide more information for creating GUIs programmatically.

More information

GI PageBus AMS Integration Demo

GI PageBus AMS Integration Demo GI PageBus AMS Integration Demo Last updated: 24/05/2012 Table of contents 1 INTRODUCTION...3 2 USING THE DEMO...4 2.1 Available Stock List...4 2.2 Update Panel...5 2.3 Configuration Panel...5 2.4 Monitor

More information

Widgets. Widgets Widget Toolkits. User Interface Widget

Widgets. Widgets Widget Toolkits. User Interface Widget Widgets Widgets Widget Toolkits 2.3 Widgets 1 User Interface Widget Widget is a generic name for parts of an interface that have their own behavior: buttons, drop-down menus, spinners, file dialog boxes,

More information

The Life Cycle of an Event

The Life Cycle of an Event The Life Cycle of an Event The topic here is the behavior of event-driven GUI applications built on the flow object model 1. This paper describes the behavior of these applications in response to user-interface

More information

UI Toolkits. HCID 520 User Interface Software & Technology

UI Toolkits. HCID 520 User Interface Software & Technology UI Toolkits HCID 520 User Interface Software & Technology http://www.cryptonomicon.com/beginning.html Xerox Alto 1973 Evolution of User Interfaces Command Line (UNIX shell, DOS prompt) Interaction driven

More information

CS 4300 Computer Graphics

CS 4300 Computer Graphics CS 4300 Computer Graphics Prof. Harriet Fell Fall 2011 Lecture 8 September 22, 2011 GUIs GUIs in modern operating systems cross-platform GUI frameworks common GUI widgets event-driven programming Model-View-Controller

More information

PTN-202: Advanced Python Programming Course Description. Course Outline

PTN-202: Advanced Python Programming Course Description. Course Outline PTN-202: Advanced Python Programming Course Description This 4-day course picks up where Python I leaves off, covering some topics in more detail, and adding many new ones, with a focus on enterprise development.

More information

Computational Methods of Scientific Programming. Matlab Lecture 3 Lecturers Thomas A Herring Chris Hill

Computational Methods of Scientific Programming. Matlab Lecture 3 Lecturers Thomas A Herring Chris Hill 12.010 Computational Methods of Scientific Programming Matlab Lecture 3 Lecturers Thomas A Herring Chris Hill Summary of last class Continued examining Matlab operations path and addpath commands Variables

More information

User can customize the default power behavior as follows. Close Lid: Choose what Windows does when a laptop lid is closed.

User can customize the default power behavior as follows. Close Lid: Choose what Windows does when a laptop lid is closed. [How To] Power Plan Setting in Windows 10 Affected Model: Windows 10 system User can customize the default power behavior as follows. Sleep: Windows starts up faster and instantly back to where you left

More information

DEVELOPMENT OF MOTOR CONTROL USING GRAPHICAL USER INTERFACE KHAIRUL ANUAR BIN ARIS UNIVERSITY MALAYSIA PAHANG

DEVELOPMENT OF MOTOR CONTROL USING GRAPHICAL USER INTERFACE KHAIRUL ANUAR BIN ARIS UNIVERSITY MALAYSIA PAHANG DEVELOPMENT OF MOTOR CONTROL USING GRAPHICAL USER INTERFACE KHAIRUL ANUAR BIN ARIS UNIVERSITY MALAYSIA PAHANG v ABSTRACT DC Motor control is very common in robotic application. The developments of this

More information

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Course Overview This course teaches programmers the skills necessary to create Java programming system applications and satisfies the

More information

Introduction to Computer Science

Introduction to Computer Science www.oracle.com/academy Introduction to Computer Science Transferring Schema and Data in APEX These instructions detail the steps required to transfer a schema in one APEX instance to another. The order

More information

User Interaction. User Interaction. Input devices. Input devices. Input devices GUIs and GUI design Event-driven programming 3D interaction

User Interaction. User Interaction. Input devices. Input devices. Input devices GUIs and GUI design Event-driven programming 3D interaction User Interaction User Interaction Input devices GUIs and GUI design Event-driven programming 3D interaction CS 465 lecture 19 2003 Steve Marschner 1 2003 Steve Marschner 2 Input devices Input devices Discrete

More information

Micrium OS Kernel Labs

Micrium OS Kernel Labs Micrium OS Kernel Labs 2018.04.16 Micrium OS is a flexible, highly configurable collection of software components that provides a powerful embedded software framework for developers to build their application

More information

Lab. Lecture 26: Concurrency & Responsiveness. Assignment. Maze Program

Lab. Lecture 26: Concurrency & Responsiveness. Assignment. Maze Program Lab Lecture 26: Concurrency & Responsiveness CS 62 Fall 2016 Kim Bruce & Peter Mawhorter Using parallelism to speed up sorting using Threads and ForkJoinFramework Review relevant material. Some slides

More information

Event Driven Programming

Event Driven Programming Event Driven Programming 1. Objectives... 2 2. Definitions... 2 3. Event-Driven Style of Programming... 2 4. Event Polling Model... 3 5. Java's Event Delegation Model... 5 6. How to Implement an Event

More information

Module 4 Multi threaded Programming, Event Handling. OOC 4 th Sem, B Div Prof. Mouna M. Naravani

Module 4 Multi threaded Programming, Event Handling. OOC 4 th Sem, B Div Prof. Mouna M. Naravani Module 4 Multi threaded Programming, Event Handling OOC 4 th Sem, B Div 2016-17 Prof. Mouna M. Naravani Event Handling Any program that uses a graphical user interface, such as a Java application written

More information

CITS3403 Agile Web Development Semester 1, 2018

CITS3403 Agile Web Development Semester 1, 2018 Javascript Event Handling CITS3403 Agile Web Development Semester 1, 2018 Event Driven Programming Event driven programming or event based programming programming paradigm in which the flow of the program

More information

Cell Arrays, Struct Arrays, Matlab Path

Cell Arrays, Struct Arrays, Matlab Path Cell Arrays, Struct Arrays, Matlab Path NENS 230: Analysis Techniques in Neuroscience Fall 2015 Outline 1. Cell arrays 1. Creating and concatenating cell arrays 2. {} Indexing vs. () Indexing 2. Struct

More information

Critical Thinking Assignment #6: Java Program #6 of 6 (70 Points)

Critical Thinking Assignment #6: Java Program #6 of 6 (70 Points) Critical Thinking Assignment #6: Java Program #6 of 6 (70 Points) Java Interactive GUI Application for Number Guessing with Colored Hints (based on Module 7 material) 1) Develop a Java application that

More information

Computational Methods of Scientific Programming

Computational Methods of Scientific Programming 12.010 Computational Methods of Scientific Programming Lecturers Thomas A Herring, Jim Elliot, Chris Hill, Summary of last class Continued examining Matlab operations path and addpath commands Variables

More information

Module 4 Multi threaded Programming, Event Handling. OOC 4 th Sem, B Div Prof. Mouna M. Naravani

Module 4 Multi threaded Programming, Event Handling. OOC 4 th Sem, B Div Prof. Mouna M. Naravani Module 4 Multi threaded Programming, Event Handling OOC 4 th Sem, B Div 2017-18 Prof. Mouna M. Naravani Event Handling Complete Reference 7 th ed. Chapter No. 22 Event Handling Any program that uses a

More information

Fall UI Design and Implementation 1

Fall UI Design and Implementation 1 Fall 2005 6.831 UI Design and Implementation 1 1 Suggested by Daniel Swanton Fall 2005 6.831 UI Design and Implementation 2 2 Suggested by Robert Kwok Fall 2005 6.831 UI Design and Implementation 3 3 Input

More information

Vive Input Utility Developer Guide

Vive Input Utility Developer Guide Vive Input Utility Developer Guide vivesoftware@htc.com Abstract Vive Input Utility is a tool based on the SteamVR plugin that allows developers to access Vive device status in handy way. We also introduce

More information

SINGLE EVENT HANDLING

SINGLE EVENT HANDLING SINGLE EVENT HANDLING Event handling is the process of responding to asynchronous events as they occur during the program run. An event is an action that occurs externally to your program and to which

More information

CSC Web Programming. JavaScript Browser Objects

CSC Web Programming. JavaScript Browser Objects CSC 242 - Web Programming JavaScript Browser Objects JavaScript Object Types User defined objects Native objects (Array, Math, Date, etc.) Host Objects provided by the browser The window object is a representation

More information

Software. Programming Languages. Types of Software. Types of Languages. Types of Programming. Software does something

Software. Programming Languages. Types of Software. Types of Languages. Types of Programming. Software does something Software Software does something LBSC 690: Week 10 Programming, JavaScript Jimmy Lin College of Information Studies University of Maryland Monday, April 9, 2007 Tells the machine how to operate on some

More information

JavaScript. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C.

JavaScript. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C. It has been around just about as long as PHP, also having been invented in 1995. JavaScript, HTML, and CSS make

More information

Test Case Design using Keywords

Test Case Design using Keywords 1 Test Case Design using Keywords Prepared By: George Ukkuru 1 2 Abstract 3 What is a Keyword? 3 Keyword Example: 3 Types of Keywords: 3 Generic keywords: 3 Product specific keywords: - 3 I. Workflow based:

More information

Rendering a 3-Dimensional Cube Applet Using Light Weight Java Graphing Library (LWJGL) with Java Swing with NetBeans IDE 6.1

Rendering a 3-Dimensional Cube Applet Using Light Weight Java Graphing Library (LWJGL) with Java Swing with NetBeans IDE 6.1 Jasamine Jackson Hanan Alnizami June 10, 2008 Rendering a 3-Dimensional Cube Applet Using Light Weight Java Graphing Library (LWJGL) with Java Swing with NetBeans IDE 6.1 This project is a step towards

More information

Lecture 19 GUI Events

Lecture 19 GUI Events CSE 331 Software Design and Implementation Lecture 19 GUI Events The plan User events and callbacks Event objects Event listeners Registering listeners to handle events Anonymous inner classes Proper interaction

More information

Purpose: How to train an MLP neural network in MATLAB environment!

Purpose: How to train an MLP neural network in MATLAB environment! Purpose: How to train an MLP neural network in MATLAB environment! that is For good computations, we need good formulae for good algorithms; and good visualization for good illustration and proper testing

More information

using event driven model with Mathematica Manipulate[] programming

using event driven model with Mathematica Manipulate[] programming using event driven model with Mathematica Manipulate[] programming Nasser M. Abbasi July 2, 2015 page compiled on July 2, 2015 at 3:18am Contents 1 Introduction 1 2 Using state machine for Manipulate expression

More information

CSE 331 Software Design & Implementation

CSE 331 Software Design & Implementation CSE 331 Software Design & Implementation Hal Perkins Spring 2017 GUI Event-Driven Programming 1 The plan User events and callbacks Event objects Event listeners Registering listeners to handle events Anonymous

More information

CS 498RK FALL RESTFUL APIs

CS 498RK FALL RESTFUL APIs CS 498RK FALL 2017 RESTFUL APIs Designing Restful Apis blog.mwaysolutions.com/2014/06/05/10-best-practices-for-better-restful-api/ www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api Resources

More information

Contents INTERFACING MATLAB WITH EMBEDDED SYSTEMS

Contents INTERFACING MATLAB WITH EMBEDDED SYSTEMS Contents MATLAB INTRODUCTION:... 1 Why it is useful for prototyping AI projects??... 2 Using MATLAB as a calculator:... 3 How to use conditions... 8 Serial/Parallel communication:... 9 Color Detection

More information

MOBILE COMPUTING 1/20/18. How many of you. CSE 40814/60814 Spring have implemented a command-line user interface?

MOBILE COMPUTING 1/20/18. How many of you. CSE 40814/60814 Spring have implemented a command-line user interface? MOBILE COMPUTING CSE 40814/60814 Spring 2018 How many of you have implemented a command-line user interface? How many of you have implemented a graphical user interface? HTML/CSS Java Swing.NET Framework

More information

CS 231 Data Structures and Algorithms Fall Event Based Programming Lecture 06 - September 17, Prof. Zadia Codabux

CS 231 Data Structures and Algorithms Fall Event Based Programming Lecture 06 - September 17, Prof. Zadia Codabux CS 231 Data Structures and Algorithms Fall 2018 Event Based Programming Lecture 06 - September 17, 2018 Prof. Zadia Codabux 1 Agenda Event-based Programming Misc. Java Operator Precedence Java Formatting

More information

Level 3 Computing Year 1 Lecturer: Phil Smith

Level 3 Computing Year 1 Lecturer: Phil Smith Level 3 Computing Year 1 Lecturer: Phil Smith Previously.. We looked at forms and controls. The event loop cycle. Triggers. Event handlers. Objectives for today.. 1. To gain knowledge and understanding

More information

Introduction To MATLAB Interactive Graphics

Introduction To MATLAB Interactive Graphics Introduction To MATLAB Interactive Graphics Eric Peasley, Department of Engineering Science, University of Oxford version 3.0, 2017 An Introduction to MATLAB Interactive Graphics Table of Contents Data

More information

CS 354R: Computer Game Technology

CS 354R: Computer Game Technology CS 354R: Computer Game Technology GUI Programming Fall 2017 Graphical User Interfaces 2 What Is in a GUI? Not just art assets! GUIs display important information for the player: Character status Enemy

More information

EVENT-DRIVEN PROGRAMMING

EVENT-DRIVEN PROGRAMMING LESSON 13 EVENT-DRIVEN PROGRAMMING This lesson shows how to package JavaScript code into self-defined functions. The code in a function is not executed until the function is called upon by name. This is

More information

Mobile Development Workshop DAY 2: INTRODUCTION TO JAVA

Mobile Development Workshop DAY 2: INTRODUCTION TO JAVA Mobile Development Workshop DAY 2: INTRODUCTION TO JAVA Overview Morning session For loops Strings and collections Graphical User Interfaces Recap Last time we covered Java the programming language and

More information

Chapter 2 Visual Basic Interface

Chapter 2 Visual Basic Interface Visual Basic Interface Slide 1 Windows GUI A GUI is a graphical user interface. The interface is what appears on the screen when an application is running. A GUI is event-driven, which means it executes

More information

Computational Methods of Scientific Programming Fall 2007

Computational Methods of Scientific Programming Fall 2007 MIT OpenCourseWare http://ocw.mit.edu 12.010 Computational Methods of Scientific Programming Fall 2007 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

CS123. Programming Your Personal Robot. Part 2: Event Driven Behavior

CS123. Programming Your Personal Robot. Part 2: Event Driven Behavior CS123 Programming Your Personal Robot Part 2: Event Driven Behavior You Survived! Smooth Sailing Topics 2.1 Event Driven Programming Programming Paradigms and Paradigm Shift Event Driven Programming Concept

More information

Graphical User Interfaces. Comp 152

Graphical User Interfaces. Comp 152 Graphical User Interfaces Comp 152 Procedural programming Execute line of code at a time Allowing for selection and repetition Call one function and then another. Can trace program execution on paper from

More information

Model-View-Controller Architecture

Model-View-Controller Architecture --Controller Architecture --Controller Architecture Controller --Controller (MVC) is an architectural pattern, a standard design in the field of software architecture. Heavily used by Apple in writing

More information

CSE 331 Software Design and Implementation. Lecture 19 GUI Events

CSE 331 Software Design and Implementation. Lecture 19 GUI Events CSE 331 Software Design and Implementation Lecture 19 GUI Events Leah Perlmutter / Summer 2018 Announcements Announcements Quiz 7 due Thursday 8/9 Homework 8 due Thursday 8/9 HW8 has a regression testing

More information

Homeworks on FFT Instr. and Meas. for Communication Systems- Gianfranco Miele. Name Surname

Homeworks on FFT Instr. and Meas. for Communication Systems- Gianfranco Miele. Name Surname Homeworks on FFT 90822- Instr. and Meas. for Communication Systems- Gianfranco Miele Name Surname October 15, 2014 1 Name Surname 90822 (Gianfranco Miele): Homeworks on FFT Contents Exercise 1 (Solution)............................................

More information

Project Zygote. Rapid prototyping for the Internet of Things

Project Zygote. Rapid prototyping for the Internet of Things Project Zygote Rapid prototyping for the Internet of Things The Problem we set out to solve How to make interconnecting things easier? What IoT means to us Seamless interconnection between any IoT enabled

More information

Embedded PC Master Application

Embedded PC Master Application Embedded PC Master Application Overview June 3, 2002 Rev. 0.2 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of

More information

Graphical User Interface (Part-1) Supplementary Material for CPSC 233

Graphical User Interface (Part-1) Supplementary Material for CPSC 233 Graphical User Interface (Part-1) Supplementary Material for CPSC 233 Introduction to Swing A GUI (graphical user interface) is a windowing system that interacts with the user The Java AWT (Abstract Window

More information

Event-driven Programming, Separation of Concerns, the Observer pattern and the JavaFX Event Infrastructure

Event-driven Programming, Separation of Concerns, the Observer pattern and the JavaFX Event Infrastructure Java GUIs in JavaFX Event-driven Programming, Separation of Concerns, the Observer pattern and the JavaFX Event Infrastructure 1 GUIs process inputs and deliver outputs for a computing system Inputs Click

More information

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes Java CORE JAVA Core Java Programing (Course Duration: 40 Hours) Introduction to Java What is Java? Why should we use Java? Java Platform Architecture Java Virtual Machine Java Runtime Environment A Simple

More information

2015 The MathWorks, Inc. 1

2015 The MathWorks, Inc. 1 2015 The MathWorks, Inc. 1 Interactive programming Hyunuk Ha and enhanced GUI 2015 The MathWorks, Inc. 2 Table of contents Live editor Short introduction to live editor Key features till Feature highlights

More information

CNBC Matlab Mini-Course

CNBC Matlab Mini-Course CNBC Matlab Mini-Course David S. Touretzky October 2017 Day 3: The Really Cool Stuff 1 Multidimensional Arrays Matlab supports arrays with more than 2 dimensions. m = rand(4, 3, 2) whos m size(m) Matrix

More information

Kernel Korner AEM: A Scalable and Native Event Mechanism for Linux

Kernel Korner AEM: A Scalable and Native Event Mechanism for Linux Kernel Korner AEM: A Scalable and Native Event Mechanism for Linux Give your application the ability to register callbacks with the kernel. by Frédéric Rossi In a previous article [ An Event Mechanism

More information

Review: Recursions. CSCE155N Matlab Fall 2016

Review: Recursions. CSCE155N Matlab Fall 2016 Review: Recursions CSCE155N Matlab Fall 2016 1. For the recursive function shown, if n = 4, how many times is the mystery function called, including the first invocation? A. 7 B. 9 C. 4 function mystery(n)

More information

Tim Love. July 24, Introduction 2. 2 Info and help commands 2

Tim Love. July 24, Introduction 2. 2 Info and help commands 2 Using Matlab at CUED Tim Love July 24, 2006 Abstract This document does not try to describe matlab comprehensively (see matlab s HelpDesk or the installed tutorial documents 1 for this), rather it introduces

More information

Static Analysis for Android: GUIs, Callbacks, and Beyond

Static Analysis for Android: GUIs, Callbacks, and Beyond Static Analysis for Android: GUIs, Callbacks, and Beyond Atanas (Nasko) Rountev Joint work with Dacong Yan Shengqian Yang Haowei Wu Yan Wang Hailong Zhang Ohio State University PRESTO: Program Analyses

More information

MRCP. Client Integration Manual. Developer Guide. Powered by Universal Speech Solutions LLC

MRCP. Client Integration Manual. Developer Guide. Powered by Universal Speech Solutions LLC Powered by Universal Speech Solutions LLC MRCP Client Integration Manual Developer Guide Revision: 37 Last updated: May 20, 2017 Created by: Arsen Chaloyan Universal Speech Solutions LLC Overview 1 Table

More information

User guide of Google Nest s cloud database

User guide of Google Nest s cloud database User guide of Google Nest s cloud database The example guides how to import and get data from Google Nest s cloud database through Ameba and some simple Javascript and Java examples. Table of Contents

More information

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 1 Introduction to Programming and Visual Basic Addison Wesley is an imprint of 2011 Pearson Addison-Wesley. All rights reserved. Section 1.1 COMPUTER SYSTEMS: HARDWARE AND SOFTWARE Computer systems

More information

Graphics. Lecture 18 COP 3252 Summer June 6, 2017

Graphics. Lecture 18 COP 3252 Summer June 6, 2017 Graphics Lecture 18 COP 3252 Summer 2017 June 6, 2017 Graphics classes In the original version of Java, graphics components were in the AWT library (Abstract Windows Toolkit) Was okay for developing simple

More information

HTML 5 and CSS 3, Illustrated Complete. Unit L: Programming Web Pages with JavaScript

HTML 5 and CSS 3, Illustrated Complete. Unit L: Programming Web Pages with JavaScript HTML 5 and CSS 3, Illustrated Complete Unit L: Programming Web Pages with JavaScript Objectives Explore the Document Object Model Add content using a script Trigger a script using an event handler Create

More information

Chapter 16 Graphical User Interfaces

Chapter 16 Graphical User Interfaces Chapter 16 Graphical User Interfaces Hartmut Kaiser hkaiser@cct.lsu.edu http://www.cct.lsu.edu/~hkaiser/fall_2010/csc1253.html Slides adapted from: Bjarne Stroustrup, Programming Principles and Practice

More information

Intermediate Python 3.x

Intermediate Python 3.x Intermediate Python 3.x This 4 day course picks up where Introduction to Python 3 leaves off, covering some topics in more detail, and adding many new ones, with a focus on enterprise development. This

More information

ClareVision SD Card Motion Record Settings Product Bulletin

ClareVision SD Card Motion Record Settings Product Bulletin ClareVision SD Card Motion Record Settings Product Bulletin Content Content... 1 Introduction... 1 Configuring motion detection... 1 Arming schedule for motion detection... 2 Setting the alarm actions

More information

Chapter 16 Graphical User Interfaces

Chapter 16 Graphical User Interfaces Chapter 16 Graphical User Interfaces Dr. Hyunyoung Lee Based on slides by Dr. Bjarne Stroustrup www.stroustrup.com/programming Overview Perspective I/O alternatives GUI Layers of software GUI example GUI

More information

% Edit the above text to modify the response to help Video_Player. % Last Modified by GUIDE v May :38:12

% Edit the above text to modify the response to help Video_Player. % Last Modified by GUIDE v May :38:12 FILE NAME: Video_Player DESCRIPTION: Video Player Name Date Reason Sahariyaz 28-May-2015 Basic GUI concepts function varargout = Video_Player(varargin) VIDEO_PLAYER MATLAB code for Video_Player.fig VIDEO_PLAYER,

More information

Widget. Widget is a generic name for parts of an interface that have their own behaviour. e.g., buttons, progress bars, sliders, drop-down

Widget. Widget is a generic name for parts of an interface that have their own behaviour. e.g., buttons, progress bars, sliders, drop-down Widgets Jeff Avery Widget Widget is a generic name for parts of an interface that have their own behaviour. e.g., buttons, progress bars, sliders, drop-down menus, spinners, file dialog boxes, etc are

More information

Introduction to scripting with Gig Performer Draft V0.51. Dr. David H Jameson Nebojsa Djogo. Deskew Technologies, LLC May 4, 2018

Introduction to scripting with Gig Performer Draft V0.51. Dr. David H Jameson Nebojsa Djogo. Deskew Technologies, LLC May 4, 2018 Introduction to scripting with Gig Performer Draft V0.51 Dr. David H Jameson Nebojsa Djogo Deskew Technologies, LLC May 4, 2018 Introduction The Gig Performer scripting language, which we have rather unimaginatively

More information

Digital Input and Output

Digital Input and Output Digital Input and Output Topics: Parallel Digital I/O Simple Input (example) Parallel I/O I/O Scheduling Techniques Programmed Interrupt Driven Direct Memory Access Serial I/O Asynchronous Synchronous

More information

A Generative Programming Approach to Middleware Development

A Generative Programming Approach to Middleware Development A Generative Programming Approach to Middleware Development Venkita Subramonian and Christopher Gill Washington University, St. Louis {venkita,cdgill}@cse.wustl.edu OMG Workshop on Distributed Object Computing

More information

Solving Linear Programs Using the Simplex Method (Manual)

Solving Linear Programs Using the Simplex Method (Manual) Solving Linear Programs Using the Simplex Method (Manual) GáborRétvári E-mail: retvari@tmit.bme.hu The GNU Octave Simplex Solver Implementation As part of the course material two simple GNU Octave/MATLAB

More information

EVAL FUNCTION. eval Execute a string containing a MATLAB expression

EVAL FUNCTION. eval Execute a string containing a MATLAB expression EVAL FUNCTION eval Execute a string containing a MATLAB expression Syntax The eval command is one of the most powerful and flexible commands in MATLAB. eval is short for evaluate, which is exactly what

More information

The Language of Technical Computing. Computation. Visualization. Programming. Creating Graphical User Interfaces Version 1

The Language of Technical Computing. Computation. Visualization. Programming. Creating Graphical User Interfaces Version 1 MATLAB The Language of Technical Computing Computation Visualization Programming Creating Graphical User Interfaces Version 1 How to Contact The MathWorks: 508-647-7000 Phone 508-647-7001 Fax The MathWorks,

More information

Program Graph. Lecture 25: Parallelism & Concurrency. Performance. What does it mean?

Program Graph. Lecture 25: Parallelism & Concurrency. Performance. What does it mean? Program Graph Lecture 25: Parallelism & Concurrency CS 62 Fall 2015 Kim Bruce & Michael Bannister Some slides based on those from Dan Grossman, U. of Washington Program using fork and join can be seen

More information

Android User Interface Overview. Most of the material in this sec7on comes from h8p://developer.android.com/guide/topics/ui/index.

Android User Interface Overview. Most of the material in this sec7on comes from h8p://developer.android.com/guide/topics/ui/index. Android User Interface Overview Most of the material in this sec7on comes from h8p://developer.android.com/guide/topics/ui/index.html Android User Interface User interface built using views and viewgroup

More information

From Bing.com on Nov

From Bing.com on Nov Functions From Bing.com on Nov 8. 017 We re going to look at some common patterns / algorithms for using an array The idea is that you first understand these Then you can apply them elsewhere And modify

More information

1 CUSTOM TAG FUNDAMENTALS PREFACE... xiii. ACKNOWLEDGMENTS... xix. Using Custom Tags The JSP File 5. Defining Custom Tags The TLD 6

1 CUSTOM TAG FUNDAMENTALS PREFACE... xiii. ACKNOWLEDGMENTS... xix. Using Custom Tags The JSP File 5. Defining Custom Tags The TLD 6 PREFACE........................... xiii ACKNOWLEDGMENTS................... xix 1 CUSTOM TAG FUNDAMENTALS.............. 2 Using Custom Tags The JSP File 5 Defining Custom Tags The TLD 6 Implementing Custom

More information