GUI Graphics Chris North cs3724: HCI.

Slides:



Advertisements
Similar presentations
2D Graphics Drawing Things. Graphics In your GUI, you might want to draw graphics E.g. draw lines, circles, shapes, draw strings etc The Graphics class.
Advertisements

1 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
Using MS Paint by A. Satariano Launching MS Paint Click on the Start Button Move the mouse up to the Programs Folder. Then move the mouse up to the Accessories.
User Interface Programming in C#: Graphics
©2004 Brooks/Cole Applets Graphics & GUIs. Figures ©2004 Brooks/Cole CS 119: Intro to JavaFall 2005 Graphical Programs Most applications these days are.
Using Visio for Network Diagrams. Visio The basic idea is that Visio provides connectable devices. Everything else flows from that concept.
Slide Transitions Slide Show, Slide Transition opens Slide Transition task pane Practice each option setting to select the transition style, its speed,
Graphics and Multimedia. Outline Introduction Graphics Contexts and Graphics Objects Color Control.
CS 112 GUI 06 May 2008 Bilkent. Java GUI API Containers: ◦ contain other GUI components. E.g, Window, Panel, Applet, Frame Dialog. Components: ◦ Buttons,
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
® Microsoft Office 2010 PowerPoint Tutorial 2: Adding and Modifying Text and Graphic Objects.
DIGITAL GRAPHICS & ANIMATION
User Interface Programming in C#: Direct Manipulation Chris North CS 3724: HCI.
Graphics and Multimedia. Introduction The language contains many sophisticated drawing capabilities as part of namespace System.Drawing and the other.
Graphics Standard Grade Computing. Graphics Package n A graphics package is another General Purpose Package. n It is used to draw pictures on the monitor.
By: Zaiba Mustafa Copyright ©
Web Design & Development Lecture 18. Java Graphics.
ICS 61 - Graphics. Light Color Wheel Color Perception.
Chapter 3 Working with Symbols and Interactivity.
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington While loops and the UI API.
1 Graphical User Components (II) Outline JTextArea Creating a Customized Subclass of JPanel JPanel Subclass that Handles Its Own Events Windows: Additional.
1-1 OBJ Copyright 2003, Paradigm Publishing Inc. Dr. Joseph Otto Silvia Castaneda Christopher deCastro CSULA Macromedia Flash MX Introduction.
Graphics A graphics program allows you to combine pictures and text in many different ways. Features – General Level Draw graphics Enter Text Common Tools.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Working with Symbols and Interactivity
Computer Science 112 Fundamentals of Programming II Graphics Programming.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved CheckWriter Application Introducing Graphics and Printing.
Mimio Making Madness How can I create a lesson using Mimio? In this session, you will see and use all the unique tools to create an exciting lesson that.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room , Chris Hill, Room ,
Java Graphics. Review 3 kinds of elements in components API? Layout managers Events Extend vs. Implement.
Tutorial 2 Drawing Shapes, Adding Text, and Creating Symbols.
Chapter 9 Fireworks: Part I The Web Warrior Guide to Web Design Technologies.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
User Interface Programming in C#: Direct Manipulation Chris North CS 3724: HCI.
1 After completing this lesson, you will be able to: Plan a FrontPage Web site. Create a new Web. Create a subpage layout. Use the subpage layout to build.
Graphics Copyright 2006 South-Western/Thomson Learning.
Android Graphics Library. Color Android colors are represented with four numbers, one each for alpha, red, green, and blue (ARGB). Each component can.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 21.1 Test-Driving the Painter Application.
Java Direct Manipulation Chris North cs3724: HCI.
(C) 2010 Pearson Education, Inc. All rights reserved.  Class Graphics (from package java.awt) provides various methods for drawing text and shapes onto.
The Abstract Window Toolkit (AWT) supports Graphical User Interface (GUI) programming. AWT features include: a rich set of user interface components; a.
SEEM3460 Tutorial GUI in Java. Some Basic GUI Terms Component (Control in some languages) the basic GUI unit something visible something that user can.
Blue Screen of Death Paint Project Presentation. BSoD Development Team Matthew Chuah – Website Manager Jason Dai – Documents Manager Ian Lieberman – Quality.
Splatter! ALPHA Presentation By: David Kikuta March 29, 2011.
Graphics Concepts CS 2302, Fall /17/20142 Drawing in Android.
Painting (Chapter 12) Java Certification Study Group January 25, 1999 Mark Roth.
Java Dynamic Graphics.
Graphics and Java2D Chapter Java Coordinate System Origin is in _____________ corner –Behind title bar of window X values increase to the ________.
Swing - 2 Session 13. Swing - 2 / 2 of 38 Objectives (1) Discuss trees and tables Discuss progress bars Discuss MVC architecture Describe menus.
Working with Shapes Guided Lesson. Objective  In this lesson you will learn how to insert a shape and format it by changing its fill color, outline color,
Interaction Styles Chris North cs3724: HCI. Presentations mike miller sean king Vote: UI Hall of Fame/Shame?
Layout and Design Chris North cs3724: HCI. Presentations john charonko jaime spicciati Vote: UI Hall of Fame/Shame?
Java With NetBeans First Project. Java Are language for this semester is Java The Development Environment is Netbeans.
Java Graphics Chris North cs3724: HCI. Presentations peter hou Vote: UI Hall of Fame/Shame?
Components Chris North cs3724: HCI. Presentations taylor mitchell chris henry Vote: UI Hall of Fame/Shame?
Getting Started with GUI Programming Chapter 10 CSCI 1302.
Graphics in Java Opening Discussion zDo you have any questions about the quiz? zWhat did we talk about last class? zDo you have any questions.
Introduction to Layers GIMP User Manual. What is a Layer? Every image in GIMP is made by combining one or more images called Layers laid on top of each.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
Chapter 7 Introduction to High-Level Language Programming.
10/20/2005week71 Graphics, mouse and mouse motion events, KeyEvent Agenda Classes in AWT for graphics Example java programs –Graphics –Mouse events –Mouse.
Flash Interface, Commands and Functions
Chapter 2 – Introduction to the Visual Studio .NET IDE
Graphics and Multimedia
Chapter 14 JavaFX Basics Dr. Clincy - Lecture.
AWT Components and Containers
Working with Symbols and Interactivity
POWER POINT WHY HAVE WE USE THIS PROGRAM? TO SHOW YOUR STUDY..
Information Visualization
Presentation transcript:

GUI Graphics Chris North cs3724: HCI

Quiz First 2 things? 3 types of API procs for components? Users! Tasks! 3 types of API procs for components? Properties Methods Events

Presentations bruce billian nick meyers Vote: UI Hall of Fame/Shame?

Project 1: VB Due Thurs Feb 7 Visual Basic Virtual VCR: scheduling, reviewing recordings 50% UI design: direct manip? 50% program: advanced feature 1 page report: design decisions

Graphics Window is like a painter’s canvas Components paint themselves Anything else: Programmer

Pixels

Coordinate System Upside-down Cartesian Yscreen = height - Ycartesian (0,0) (width,0) (0,height) (width, height)

Component Hierarchy Container components Each component has its own window “Window” = invisible rectangle Components have own coordinate system (0,0) form button (0,0) (wb, hb) (wf, hf)

Graphics Primitives Point (x,y) Line (pt1,pt2) Circle (pt, rad) oval Rectangle (ul, w,h) Polygon (pt list) Image (file, x,y) Erase Text (string, x,y)

Graphics Parameters Line width Line style Line color Fill color Fill pattern …

Color Combinations of Red, Green, Blue Each [0, 255] VB: RGB(r, g, b)

VB: drawing program

Repaint Screen is like a painter’s canvas All windows paint on the same surface! Windows don’t “remember” whats under them Need to repaint on Expose events Open, resize, bring to front When other windows in front move, resize, close

MyApp

Open WinExplorer

Close WinExplorer MyApp window receives Expose event

MyApp Repaints

Typical program structure Store data structure of window contents Expose event: Erase window (draw background color) Draw data structure 2 methods to store window contents: Store logical contents in a data structure E.g. drawing program: lines, shapes, colors, … Store visual contents as an off-screen image (bitmap) E.g. pixels

What good are windows? Own coordinate system Don’t need repaint when moving Clipping: hides drawing behind a window Directs mouse input to correct component Some windows remember whats under them: Popup menus

Visual Basic Using Paint event Using AutoRedraw implements off-screen image storage Using line and shape controls ScaleMode Twips = Screen.TwipsPerPixelX * pixels

Drag-n-Drop VB DragMode OLE drag-n-drop Direct manip

Next Presentations: Thurs: taylor mitchell, chris henry Next Tues: john charonko, jaime spicciati Next Thurs: terrence witt, mohamed hassoun