Skip to content

A drawing program that was developed solely with the purpose of practicing implementing design patterns.

Notifications You must be signed in to change notification settings

gbrggrn/java-swing-draw-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Draw + Design Patterns

Context

  • Origin Developed as part of a course in Java, UML and Design Patterns at Karlstad University.
  • Objective A drawing program where users can draw different shapes with chosen line width/line color/fill color. Implements several distinct design patterns.
  • Status 🟢 Complete/Functional

Notes

  • This app was integrated against a pre-made composite-pattern (model/composite)
  • v4 contains the initial integration
  • v4.1 contains the complete drawing program

Systems Architechture

  • Logic MVC
  • Tech Stack Java + Java Swing (Eclipse IDE)

Functionality

  • Draw different shapes (circle, line, rectangle)
  • Pick line width, -color, -thickness and fill color.
  • Data persistence throuch object serialization (.dat)
  • Distinct design patterns implemented and where to look for them:
    • Chain of responsibility (app/controller/chain)
    • Composite (model/composite)
    • State (model/state)
    • Visitor (model/visitor)
    • Facade (model)
    • Command (controller/commands)

Setup & Usage

  1. Clone the repository
  2. Open in IDE of your choice

Learning Outcomes

  • Implementing Gang of Four design patterns in a Java setting
  • Creating a layered MVC structure from scratch
  • Integrating with legacy code (the pre-existing composite)

About

A drawing program that was developed solely with the purpose of practicing implementing design patterns.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages