Figura > Rectangle areaPresentacion boolean seleccionada clone() dibujar(Graphics g) dibujarSeleccion(Graphics g) cambiarAreaPresentacion(Point p1, Point.

Slides:



Advertisements
Similar presentations
Complete Structure class Date {class Date { private :private : // private data and functions// private data and functions public :public : // public data.
Advertisements

Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
1 Linked lists Sections 3.2, 3.3, 3.5 Chapter 3 Lists, Stacks, and Queues Abstract Data Types, Vectors.
For(int i = 1; i
7.2 Areas in the Plane Gateway Arch, St. Louis, Missouri Greg Kelly, Hanford High School, Richland, WashingtonPhoto by Vickie Kelly, 2003.
U2 L8 Chain and Quotient Rule CHAIN & QUOTIENT RULE
static void Main() { int i = 0; if (i == 0) { int a = 5; int b = 15; if (a == 5) { int c = 3; int d = 99; }
void count_down (int count) { for(i=count; i>1; i--) printf(" %d\t", count); } printf("A%d\n", count); if(count>1) count_down(count-1); printf("B%d\n",
Computer Graphics Tz-Huan Huang National Taiwan University (Slides are based on Prof. Chen’s)
Bar Graph Design. Left-side/Right-side mechanical processing creative, abstract reasoning.
Figura Rectangle areaPresentacion boolean seleccionada clone() dibujar(Graphics g) dibujarSeleccion(Graphics g) cambiarAreaPresentacion(Point p1, Point.
Tinaliah, S. Kom.. * * * * * * * * * * * * * * * * * #include using namespace std; void main () { for (int i = 1; i
Triana Elizabeth, S.Kom. #include using namespace std; void main () { for (int i = 1; i
Figura Rectangle areaPresentacion dibujar(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() java.awt.Rectangle java.awt.Point.
P449. p450 Figure 15-1 p451 Figure 15-2 p453 Figure 15-2a p453.
CS1110: Computer Science I Chapter 5 Arrays. One-dimensional Arrays int [] data = new int [4]; data[0] = 1; data[1] = 3; data[2] = 5; data[3] = 7; Arrays.
P247. Figure 9-1 p248 Figure 9-2 p251 p251 Figure 9-3 p253.
Pointers Example Use int main() { int *x; int y; int z; y = 10; x = &y; y = 11; *x = 12; z = 15; x = &z; *x = 5; z = 8; printf(“%d %d %d\n”, *x, y, z);
Perimeter and Area of Rectangles Kaitlyn Geary. Definitions Perimeter: the border or outside boundary of a two dimensional figure Area: the quantitative.
Program.-(4)* Write a program for input two integer number with message and display their sum. Algorithm steps Algorithm steps 1.Display message for input.
Quadrilaterals.
Data types and their representation Jordi Cortadella Department of Computer Science.
Chapter 12 Event Handling. Chapter Goals To understand the Java event model To install action and mouse event listeners To accept input from buttons,
Fall 2006Adapded from Java Concepts Companion Slides1 Event Handling Advanced Programming ICOM 4015 Lecture 13 Reading: Java Concepts Chapter 12.
Surface Area of Cylinders Unit 5, Lesson 3. What is a Cylinder? Definition: –A three dimensional figure with 2 circular bases. Formula for Surface Area:
3.1 Definition of the Derivative & Graphing the Derivative
6.1 Areas Between Curves 1 Dr. Erickson. 6.1 Areas Between Curves2 How can we find the area between these two curves? We could split the area into several.
3-Dimensional Figures. Prisms – Two parallel bases – Named after the shape of its base – All other faces are rectangles Rectangular Prism Triangular Prism.
2.3 The Java API Documentation. What follows are the contents of the Java Application Programming Interface (API) Documentation for the system supplied.
CHAPTER 10 EVENT HANDLING. CHAPTER GOALS To understand the Java event model To install mouse and action listeners To accept mouse and text input To display.
7.1 Area of a Region Between Two Curves. Consider a very thin vertical strip. The length of the strip is: or Since the width of the strip is a very small.
The Canvas Class Lecture 8 Fri, Sep 12, The Canvas Class We will create a simple Canvas class that will encapsulate the commands that create and.
Area of Composite Figures
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
Figura > Rectangle areaPresentacion clone() dibujar(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() java.awt.Rectangle.
Area between curves AP Calculus Mrs. Mongold Gateway Arch, St. Louis, Missouri.
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
2-Dimensional Figures Riddle A: I have 4 vertices.
LESSON 3-2 ANGLES AND PARALLEL LINES. Concept Example 1 Use Corresponding Angles Postulate A. In the figure, m  11 = 51. Find m  15.
Classifying Quadrilaterals
HELLO EVERYBODY! WELCOME TO MY PRESENTATIONS ABOUT: VECTORS AND TWO- DIMENSIONAL MOTION.
public class ParkApp extends AndroidApp
Walker Chan Sharon Chou Huy Nguyen
7.1 Area between curves Gateway Arch, St. Louis, Missouri.
Warmup.
Classifying Quadrilaterals
CS-401 Compute Architecture & Assembly Language Programming
Projectile Motion Projectile motion is independent vertical and horizontal motion through the air only under the influence of gravity after a having an.
6.1 Areas in the Plane Gateway Arch, St. Louis, Missouri
בניית מחלקות.
e2 log(x) Example Consider the integral x(e2y – 2e4y)10 dy dx = 1
Chapter 12 Event Handling
בניית מחלקות.
Vectors.
Chapter 9 One-Dimensional Arrays
Multidimensional Arrays
7.2 Areas in the Plane Gateway Arch, St. Louis, Missouri
Similar Figures.
Area of Rectangles and Parallelograms
Two Dimensional Motion
class PrintOnetoTen { public static void main(String args[]) {
Programming for Art: Images
Objective - To find the area of squares and rectangles.
Area of Composite Figures
Classifying Quadrilaterals
What is area? The amount of space that a figure encloses
Lesson 9.5 ext. – Cross Sections of 3-Dimensional Figures
Chapter 11 Classes.
Integration and the Logarithmic Function
Figure:
Presentation transcript:

Figura > Rectangle areaPresentacion boolean seleccionada clone() dibujar(Graphics g) dibujarSeleccion(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() setSeleccionada(boolean) Dimensiones getDimensiones() notificar() contienePunto(Point p) boolean esFiguraVacia() mover (int dx, int dy) añadirFigura(Figura f) java.awt.Rectangle java.awt.Point Observer

Figura > Vector observers; Vector manipuladores registrarObservador(Observer) eliminarObservador(Observer) aumentar(Point) estirar(Point) Manipulador getManipulador(Point) java.awt.Rectangle java.awt.Point Observer Manipulador

VentanaEditor Dibujo areaDibujo actionPerformed(ActionEvent e) Dibujo BotonHerramienta java.awt.event.ActionEvent

GrupoFiguras >

Dibujo Vector listaFiguras GrupoFiguras grupo Herramienta herramientaActiva insertarFigura(Figura f) Figura eliminarFigura(Figura f) insertarFiguraGrupo(Figura f) Figura encuentraFigura(Point) paintComponent(Graphics g) setHerramientaActiva(Herramienta) void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) Figura java.awt.MouseEvent Herramienta GrupoFiguras

Manipulador > Figura propietario dibujar(Graphics g) contienePunto(Point) manipularFigura( ) Figura

ManipuladorMover > >

BotonHerramienta Herramienta herramienta Herramienta getHerramienta() javax.swing.JButton Herramienta

void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) java.awt.MouseEvent

HerramientaCreacion Figura prototipo Dibujo areaDibujo Figura ultiFiguraCreada Point ultPulsacion void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) java.awt.MouseEvent Figura Dibujo java.awt.Point

HerramientaSeleccion > Dibujo areaDibujo Figura figSeleccionada Point ultPulsacion void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) java.awt.MouseEvent Dibujo Figura java.awt.Point Manipulador

HerramientaAgrupar Dibujo areaDibujo void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) java.awt.MouseEvent Dibujo

ObserverFigura actualizar(Figura f) Figura

ObserverLineaTexto JTextField linea actualizar(Figura f) Figura javax.swing.JTextField

ObserverAreaTexto JTextArea areaTexto actualizar(Figura f) Figura javax.swing.JTextArea