# cs1302uga/cs1302-tutorials architecture

> Architecture diagram of the GitHub repository cs1302uga/cs1302-tutorials, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cs1302uga/cs1302-tutorials
- Repository: https://github.com/cs1302uga/cs1302-tutorials

## Overview

cs1302-tutorials is a collection of independent Java teaching examples, not one integrated application. The clearest user-to-result flow is the JavaFX image viewer: a user enters an image URL and activates Load, and the app displays the resulting image. Other branches demonstrate interfaces and polymorphism, generics, inheritance, lambdas, exceptions, varargs, and web examples. The graph preserves these separate learning areas; unsampled examples are represented without guessing their internal behavior.

Main entry points: [`interfaces/src/cs1302/interfaces/contract/Styleable.java`](https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/src/cs1302/interfaces/contract/Styleable.java) (Styleable contract), [`components/src/cs1302/gui/ImageApp.java`](https://github.com/cs1302uga/cs1302-tutorials/blob/master/components/src/cs1302/gui/ImageApp.java) (Image URL viewer), [`interfaces/donator/src/cs1302/interfaces`](https://github.com/cs1302uga/cs1302-tutorials/tree/master/interfaces/donator/src/cs1302/interfaces) (Donator types), [`interfaces/src/cs1302/interfaces/StyleDriver.java`](https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/src/cs1302/interfaces/StyleDriver.java) (Style demo driver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gui["GUI Examples"]
  node_image_app["Image URL viewer<br/>[ImageApp.java]"]
  node_example_app["Hello World app<br/>[ExampleApp.java]"]
end

subgraph group_interfaces["Interfaces and Objects"]
  node_style_contract["Styleable contract<br/>[Styleable.java]"]
  node_style_impl["Styled messages"]
  node_style_driver["Style demo driver<br/>[StyleDriver.java]"]
  node_default_impl["Default-method styles"]
  node_default_driver["Default-method demo<br/>[StyleDriver.java]"]
  node_donator_contract["Donator contract<br/>[Donator.java]"]
  node_donator_types["Donator types"]
  node_donator_utility["Donator generator<br/>[Utility.java]"]
  node_donator_driver["Donation demo"]
end

subgraph group_language["Java Language Concepts"]
  node_generic_shapes["Generic shape types"]
  node_generic_utility["Null-check utility<br/>[Utility.java]"]
  node_generic_classes["Generic classes"]
  node_generic_methods["Generic methods"]
  node_inheritance_animal["Animal inheritance"]
  node_inheritance_person["Person inheritance"]
  node_lambda_examples["Lambda examples"]
  node_exception_examples["Exception examples"]
  node_varargs_helper["Varargs helper<br/>[Helper.java]"]
  node_varargs_driver["Varargs demo<br/>[Driver.java]"]
end

subgraph group_web["Web Examples"]
  node_web_examples["Web examples"]
end

node_image_user(("Image viewer user"))

node_image_user -->|"enters URL"| node_image_app
node_image_app -->|"loads and displays"| node_image_app
node_style_driver -->|"tests styles"| node_style_impl
node_style_driver -->|"uses contract"| node_style_contract
node_style_impl -->|"implements"| node_style_contract
node_default_driver -->|"tests styles"| node_default_impl
node_default_driver -->|"uses contract"| node_style_contract
node_default_impl -->|"implements"| node_style_contract
node_donator_types -->|"implements"| node_donator_contract
node_donator_utility -->|"generates instances"| node_donator_types
node_donator_driver -->|"uses types"| node_donator_types
node_generic_shapes -->|"checks arguments"| node_generic_utility
node_varargs_driver -->|"calls"| node_varargs_helper
node_example_app -->|"shows greeting"| node_example_app

click node_image_app "https://github.com/cs1302uga/cs1302-tutorials/blob/master/components/src/cs1302/gui/ImageApp.java"
click node_example_app "https://github.com/cs1302uga/cs1302-tutorials/blob/master/javafx/src/cs1302/gui/ExampleApp.java"
click node_style_contract "https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/src/cs1302/interfaces/contract/Styleable.java"
click node_style_impl "https://github.com/cs1302uga/cs1302-tutorials/tree/master/interfaces/src/cs1302/interfaces/impl"
click node_style_driver "https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/src/cs1302/interfaces/StyleDriver.java"
click node_default_impl "https://github.com/cs1302uga/cs1302-tutorials/tree/master/default-methods/src/cs1302/interfaces/impl"
click node_default_driver "https://github.com/cs1302uga/cs1302-tutorials/blob/master/default-methods/src/cs1302/interfaces/StyleDriver.java"
click node_donator_contract "https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/donator/src/cs1302/interfaces/Donator.java"
click node_donator_types "https://github.com/cs1302uga/cs1302-tutorials/tree/master/interfaces/donator/src/cs1302/interfaces"
click node_donator_utility "https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/donator/src/cs1302/interfaces/Utility.java"
click node_donator_driver "https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/donator/src/cs1302/interfaces/DonationDriver.java"
click node_generic_shapes "https://github.com/cs1302uga/cs1302-tutorials/tree/master/generics/generic-types/src/cs1302/generics"
click node_generic_utility "https://github.com/cs1302uga/cs1302-tutorials/blob/master/generics/generic-types/src/cs1302/Utility.java"
click node_generic_classes "https://github.com/cs1302uga/cs1302-tutorials/tree/master/generics/generic-classes/src/cs1302/generics"
click node_generic_methods "https://github.com/cs1302uga/cs1302-tutorials/tree/master/generics/generic-methods/src/cs1302/generics"
click node_inheritance_animal "https://github.com/cs1302uga/cs1302-tutorials/tree/master/inheritance/animal/src/cs1302/animal"
click node_inheritance_person "https://github.com/cs1302uga/cs1302-tutorials/tree/master/inheritance/person/src/cs1302/identity"
click node_lambda_examples "https://github.com/cs1302uga/cs1302-tutorials/tree/master/lambda/src/cs1302/lambda"
click node_exception_examples "https://github.com/cs1302uga/cs1302-tutorials/tree/master/exceptions/src/cs1302/exceptions"
click node_varargs_helper "https://github.com/cs1302uga/cs1302-tutorials/blob/master/varargs/src/cs1302/util/Helper.java"
click node_varargs_driver "https://github.com/cs1302uga/cs1302-tutorials/blob/master/varargs/src/cs1302/util/Driver.java"
click node_web_examples "https://github.com/cs1302uga/cs1302-tutorials/tree/master/web/src/main/java/cs1302/web"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_image_app,node_example_app,node_image_user toneBlue
class node_style_contract,node_style_impl,node_style_driver,node_default_impl,node_default_driver,node_donator_contract,node_donator_types,node_donator_utility,node_donator_driver toneAmber
class node_generic_shapes,node_generic_utility,node_generic_classes,node_generic_methods,node_inheritance_animal,node_inheritance_person,node_lambda_examples,node_exception_examples,node_varargs_helper,node_varargs_driver toneMint
class node_web_examples toneRose
```

## Components

### GUI Examples

- [Image URL viewer](https://github.com/cs1302uga/cs1302-tutorials/blob/master/components/src/cs1302/gui/ImageApp.java): `components/src/cs1302/gui/ImageApp.java`
- [Hello World app](https://github.com/cs1302uga/cs1302-tutorials/blob/master/javafx/src/cs1302/gui/ExampleApp.java): `javafx/src/cs1302/gui/ExampleApp.java`

### Interfaces and Objects

- [Styleable contract](https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/src/cs1302/interfaces/contract/Styleable.java): `interfaces/src/cs1302/interfaces/contract/Styleable.java`
- [Styled messages](https://github.com/cs1302uga/cs1302-tutorials/tree/master/interfaces/src/cs1302/interfaces/impl): `interfaces/src/cs1302/interfaces/impl`
- [Style demo driver](https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/src/cs1302/interfaces/StyleDriver.java): `interfaces/src/cs1302/interfaces/StyleDriver.java`
- [Default-method styles](https://github.com/cs1302uga/cs1302-tutorials/tree/master/default-methods/src/cs1302/interfaces/impl): `default-methods/src/cs1302/interfaces/impl`
- [Default-method demo](https://github.com/cs1302uga/cs1302-tutorials/blob/master/default-methods/src/cs1302/interfaces/StyleDriver.java): `default-methods/src/cs1302/interfaces/StyleDriver.java`
- [Donator contract](https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/donator/src/cs1302/interfaces/Donator.java): `interfaces/donator/src/cs1302/interfaces/Donator.java`
- [Donator types](https://github.com/cs1302uga/cs1302-tutorials/tree/master/interfaces/donator/src/cs1302/interfaces): `interfaces/donator/src/cs1302/interfaces`
- [Donator generator](https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/donator/src/cs1302/interfaces/Utility.java): `interfaces/donator/src/cs1302/interfaces/Utility.java`
- [Donation demo](https://github.com/cs1302uga/cs1302-tutorials/blob/master/interfaces/donator/src/cs1302/interfaces/DonationDriver.java): `interfaces/donator/src/cs1302/interfaces/DonationDriver.java`

### Java Language Concepts

- [Generic shape types](https://github.com/cs1302uga/cs1302-tutorials/tree/master/generics/generic-types/src/cs1302/generics): `generics/generic-types/src/cs1302/generics`
- [Null-check utility](https://github.com/cs1302uga/cs1302-tutorials/blob/master/generics/generic-types/src/cs1302/Utility.java): `generics/generic-types/src/cs1302/Utility.java`
- [Generic classes](https://github.com/cs1302uga/cs1302-tutorials/tree/master/generics/generic-classes/src/cs1302/generics): `generics/generic-classes/src/cs1302/generics`
- [Generic methods](https://github.com/cs1302uga/cs1302-tutorials/tree/master/generics/generic-methods/src/cs1302/generics): `generics/generic-methods/src/cs1302/generics`
- [Animal inheritance](https://github.com/cs1302uga/cs1302-tutorials/tree/master/inheritance/animal/src/cs1302/animal): `inheritance/animal/src/cs1302/animal`
- [Person inheritance](https://github.com/cs1302uga/cs1302-tutorials/tree/master/inheritance/person/src/cs1302/identity): `inheritance/person/src/cs1302/identity`
- [Lambda examples](https://github.com/cs1302uga/cs1302-tutorials/tree/master/lambda/src/cs1302/lambda): `lambda/src/cs1302/lambda`
- [Exception examples](https://github.com/cs1302uga/cs1302-tutorials/tree/master/exceptions/src/cs1302/exceptions): `exceptions/src/cs1302/exceptions`
- [Varargs helper](https://github.com/cs1302uga/cs1302-tutorials/blob/master/varargs/src/cs1302/util/Helper.java): `varargs/src/cs1302/util/Helper.java`
- [Varargs demo](https://github.com/cs1302uga/cs1302-tutorials/blob/master/varargs/src/cs1302/util/Driver.java): `varargs/src/cs1302/util/Driver.java`

### Web Examples

- [Web examples](https://github.com/cs1302uga/cs1302-tutorials/tree/master/web/src/main/java/cs1302/web): `web/src/main/java/cs1302/web`

### Other components

- **Image viewer user**

## Connections

- Image viewer user → Image URL viewer: enters URL (evidence: `components/src/cs1302/gui/ImageApp.java`)
- Image URL viewer → Image URL viewer: loads and displays (evidence: `components/src/cs1302/gui/ImageApp.java`)
- Style demo driver → Styled messages: tests styles (evidence: `interfaces/src/cs1302/interfaces/StyleDriver.java`)
- Style demo driver → Styleable contract: uses contract (evidence: `interfaces/src/cs1302/interfaces/StyleDriver.java`)
- Styled messages → Styleable contract: implements (evidence: `interfaces/src/cs1302/interfaces/impl/SuperFancy.java`)
- Default-method demo → Default-method styles: tests styles (evidence: `default-methods/src/cs1302/interfaces/StyleDriver.java`)
- Default-method demo → Styleable contract: uses contract (evidence: `default-methods/src/cs1302/interfaces/StyleDriver.java`)
- Default-method styles → Styleable contract: implements (evidence: `default-methods/src/cs1302/interfaces/impl/BasicFancy.java`)
- Donator types → Donator contract: implements (evidence: `interfaces/donator/src/cs1302/interfaces/Alumnus.java`)
- Donator generator → Donator types: generates instances (evidence: `interfaces/donator/src/cs1302/interfaces/Utility.java`)
- Donation demo → Donator types: uses types (evidence: `interfaces/donator/src/cs1302/interfaces/DonationDriver.java`)
- Generic shape types → Null-check utility: checks arguments (evidence: `generics/generic-types/src/cs1302/generics/Shape.java`)
- Varargs demo → Varargs helper: calls (evidence: `varargs/src/cs1302/util/Driver.java`)
- Hello World app → Hello World app: shows greeting (evidence: `javafx/src/cs1302/gui/ExampleApp.java`)
