# rafisto/uni architecture

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

- Interactive diagram: https://gitdiagram.com/rafisto/uni
- Repository: https://github.com/rafisto/uni

## Overview

This is a personal university-notes repository: its principal workflow is students browsing course materials and exercises, not running one unified application. The README identifies major subject areas, while the tree shows their separate course directories. One sampled runtime branch is a JavaFX drawing editor: users choose a shape or interact with the canvas; its controller delegates mouse actions, creates figures, and supports saving/opening panes. Source evidence for that branch is stronger than for most other coursework, so the remaining course branches are documented as collections rather than inferred runtime pipelines.

Main entry points: [`2_semester_2024/oop/lab5/app/controller/GUIController.java`](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIController.java) (Canvas controller), [`2_semester_2024/oop/lab5/app/controller/GUIColorPicker.java`](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIColorPicker.java) (Color picker), [`2_semester_2024/oop/lab5/app/generator/ShapeGenerator.java`](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/generator/ShapeGenerator.java) (Shape generators), [`2_semester_2024/oop/lab5/app/model/IFigure.java`](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/model/IFigure.java) (Figure models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_courses["Course materials"]
  node_repository["Study resources"]
  node_algebra["Algebra exercises"]
  node_embedded["Embedded tasks"]
  node_programming["Programming tasks"]
  node_algorithms["Algorithms exercises"]
  node_networks["Network exercises"]
  node_compression["Compression exercises"]
end

subgraph group_editor["Drawing editor"]
  node_canvas_controller["Canvas controller<br/>[GUIController.java]"]
  node_logger["Application logging<br/>[AppLogger.java]"]
end

subgraph group_editor_ui["Editor interaction"]
  node_mouse_handlers["Mouse handlers"]
  node_mode_state["Mode state<br/>[GUIMode.java]"]
  node_selection["Shape selection<br/>[GUISelect.java]"]
  node_color_picker["Color picker"]
  node_instructions["Help popup<br/>[INFO.java]"]
end

subgraph group_editor_domain["Editor domain"]
  node_shape_generators["Shape generators"]
  node_figure_models["Figure models<br/>[IFigure.java]"]
  node_pane_serializer["Pane persistence"]
end

node_student(("Student"))
node_editor_user(("Canvas user"))

node_student -->|"browses"| node_repository
node_repository -->|"offers exercises"| node_algebra
node_repository -->|"offers tasks"| node_embedded
node_repository -->|"offers tasks"| node_programming
node_repository -->|"offers exercises"| node_algorithms
node_repository -->|"offers exercises"| node_networks
node_repository -->|"offers exercises"| node_compression
node_editor_user -->|"interacts with"| node_canvas_controller
node_canvas_controller -->|"dispatches events"| node_mouse_handlers
node_canvas_controller -->|"changes mode"| node_mode_state
node_canvas_controller -->|"uses selection"| node_selection
node_canvas_controller -->|"uses picker"| node_color_picker
node_canvas_controller -->|"chooses generator"| node_shape_generators
node_canvas_controller -->|"saves and loads"| node_pane_serializer
node_canvas_controller -->|"opens help"| node_instructions
node_shape_generators -->|"creates figures"| node_figure_models
node_color_picker -->|"sets figure color"| node_figure_models

click node_algebra "https://github.com/rafisto/uni/tree/master/6_semester_2026/algebra"
click node_embedded "https://github.com/rafisto/uni/tree/master/6_semester_2026/embedded"
click node_programming "https://github.com/rafisto/uni/tree/master/6_semester_2026/jipp"
click node_algorithms "https://github.com/rafisto/uni/tree/master/4_semester_2025/aisd/lab"
click node_compression "https://github.com/rafisto/uni/tree/master/5_semester_2025/kkd"
click node_canvas_controller "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIController.java"
click node_mouse_handlers "https://github.com/rafisto/uni/tree/master/2_semester_2024/oop/lab5/app/controller/mouse"
click node_mode_state "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIMode.java"
click node_selection "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUISelect.java"
click node_color_picker "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIColorPicker.java"
click node_shape_generators "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/generator/ShapeGenerator.java"
click node_figure_models "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/model/IFigure.java"
click node_pane_serializer "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/io/PaneSerializer.java"
click node_instructions "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/view/INFO.java"
click node_logger "https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/logger/AppLogger.java"

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_repository,node_algebra,node_embedded,node_programming,node_algorithms,node_networks,node_compression,node_editor_user toneBlue
class node_canvas_controller,node_logger toneAmber
class node_mouse_handlers,node_mode_state,node_selection,node_color_picker,node_instructions toneMint
class node_shape_generators,node_figure_models,node_pane_serializer toneRose
class node_student toneIndigo
```

## Components

### Course materials

- **Study resources**
- [Algebra exercises](https://github.com/rafisto/uni/tree/master/6_semester_2026/algebra): `6_semester_2026/algebra`
- [Embedded tasks](https://github.com/rafisto/uni/tree/master/6_semester_2026/embedded): `6_semester_2026/embedded`
- [Programming tasks](https://github.com/rafisto/uni/tree/master/6_semester_2026/jipp): `6_semester_2026/jipp`
- [Algorithms exercises](https://github.com/rafisto/uni/tree/master/4_semester_2025/aisd/lab): `4_semester_2025/aisd/lab`
- **Network exercises**
- [Compression exercises](https://github.com/rafisto/uni/tree/master/5_semester_2025/kkd): `5_semester_2025/kkd`

### Drawing editor

- [Canvas controller](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIController.java): `2_semester_2024/oop/lab5/app/controller/GUIController.java`
- [Application logging](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/logger/AppLogger.java): `2_semester_2024/oop/lab5/app/logger/AppLogger.java`

### Editor interaction

- [Mouse handlers](https://github.com/rafisto/uni/tree/master/2_semester_2024/oop/lab5/app/controller/mouse): `2_semester_2024/oop/lab5/app/controller/mouse`
- [Mode state](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIMode.java): `2_semester_2024/oop/lab5/app/controller/GUIMode.java`
- [Shape selection](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUISelect.java): `2_semester_2024/oop/lab5/app/controller/GUISelect.java`
- [Color picker](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/controller/GUIColorPicker.java): `2_semester_2024/oop/lab5/app/controller/GUIColorPicker.java`
- [Help popup](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/view/INFO.java): `2_semester_2024/oop/lab5/app/view/INFO.java`

### Editor domain

- [Shape generators](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/generator/ShapeGenerator.java): `2_semester_2024/oop/lab5/app/generator/ShapeGenerator.java`
- [Figure models](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/model/IFigure.java): `2_semester_2024/oop/lab5/app/model/IFigure.java`
- [Pane persistence](https://github.com/rafisto/uni/blob/master/2_semester_2024/oop/lab5/app/io/PaneSerializer.java): `2_semester_2024/oop/lab5/app/io/PaneSerializer.java`

### Other components

- **Student**
- **Canvas user**

## Connections

- Student → Study resources: browses (evidence: `README.md`)
- Study resources → Algebra exercises: offers exercises (evidence: `README.md`)
- Study resources → Embedded tasks: offers tasks (evidence: `README.md`)
- Study resources → Programming tasks: offers tasks (evidence: `README.md`)
- Study resources → Algorithms exercises: offers exercises (evidence: `README.md`)
- Study resources → Network exercises: offers exercises (evidence: `README.md`)
- Study resources → Compression exercises: offers exercises (evidence: `README.md`)
- Canvas user → Canvas controller: interacts with (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Canvas controller → Mouse handlers: dispatches events (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Canvas controller → Mode state: changes mode (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Canvas controller → Shape selection: uses selection (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Canvas controller → Color picker: uses picker (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Canvas controller → Shape generators: chooses generator (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Canvas controller → Pane persistence: saves and loads (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Canvas controller → Help popup: opens help (evidence: `2_semester_2024/oop/lab5/app/controller/GUIController.java`)
- Shape generators → Figure models: creates figures (evidence: `2_semester_2024/oop/lab5/app/generator/CircleGenerator.java`)
- Color picker → Figure models: sets figure color (evidence: `2_semester_2024/oop/lab5/app/controller/GUIColorPicker.java`)
