Slide 1

Slide 1 text

Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.info o ffi ce: 14 -227 CSC 305 Individual Software Design and Development Lecture 16. Decorator Pattern II

Slide 2

Slide 2 text

Previously

Slide 3

Slide 3 text

GoF Patterns 3

Slide 4

Slide 4 text

Connecting the Dots

Slide 5

Slide 5 text

Application 5

Slide 6

Slide 6 text

Application | GUI 6 Main JFrame ChartPanel JPanel

Slide 7

Slide 7 text

Application | Data Gathering 7 Main JFrame ChartPanel Thread Genius JPanel

Slide 8

Slide 8 text

Application | Observer 8 Main JFrame ChartPanel Thread <> Board Genius JPanel PropertyChange Listener PropertyChange Support

Slide 9

Slide 9 text

MarkerDecoratorShadow MarkerDecoratorDot MarkerSimple Application | Decorator 9 MarkerDecoratorDot MarkerSimple MarkerSimple

Slide 10

Slide 10 text

ChallengePlotter | Main 10 https://github.com/CSC3100/Patterns

Slide 11

Slide 11 text

ChallengePlotter | Genius | Runnable 11 https://github.com/CSC3100/Patterns

Slide 12

Slide 12 text

ChallengePlotter | Board | Singleton, Observable 12 https://github.com/CSC3100/Patterns

Slide 13

Slide 13 text

ChallengePlotter | ChartPanel | Observer 13 https://github.com/CSC3100/Patterns

Slide 14

Slide 14 text

ChallengePlotter | Marker | Decorator 14 https://github.com/CSC3100/Patterns

Slide 15

Slide 15 text

ChallengePlotter | MarkerDecorator | Decorator 15 https://github.com/CSC3100/Patterns

Slide 16

Slide 16 text

ChallengePlotter | MarkerDecoratorBar | Decorator 16 https://github.com/CSC3100/Patterns

Slide 17

Slide 17 text

ChallengePlotter | MarkerDecoratorDot | Decorator 17 https://github.com/CSC3100/Patterns

Slide 18

Slide 18 text

ChallengePlotter | MarkerSimple | Decorator 18 https://github.com/CSC3100/Patterns

Slide 19

Slide 19 text

Questions 19

Slide 20

Slide 20 text

Lab 11. Decorator II

Slide 21

Slide 21 text

Homework 1. Let’s add Decorations to our Shapes

Slide 22

Slide 22 text

Shape Decorator 22 New 1st-click 2nd-click 3rd-click 4th-click

Slide 23

Slide 23 text

GUI 23

Slide 24

Slide 24 text

CSC 305 Individual Software Design and Development Javier Gonzalez-Sanchez, Ph.D. [email protected] Summer 2024 Copyright. These slides can only be used as study material for the class CSC305 at Cal Poly. They cannot be distributed or used for another purpose.