/
githubmirror
/
java-design-patterns
Обзор
Документация
Войти
/
githubmirror
/
java-design-patterns
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
open-source-java-design-patterns-1st-edition
double-buffer/etc/double-buffer.urm.puml
45 строк
1 KB
Ilkka Seppälä
#1113 Add uml-reverse-mapper plugin
07 дек 2019, 19:03
07 дек 2019, 19:03
0685a50
Код
Авторство
О чём код?
@startuml package com.iluwatar.doublebuffer { class App { - LOGGER : Logger {static} + App() + main(args : String[]) {static} - printBlackPixelCoordinate(buffer : Buffer) {static} } interface Buffer { + clear(int, int) {abstract} + clearAll() {abstract} + draw(int, int) {abstract} + getPixels() : Pixel[] {abstract} } class FrameBuffer { + HEIGHT : int {static} + WIDTH : int {static} - pixels : Pixel[] + FrameBuffer() + clear(x : int, y : int) + clearAll() + draw(x : int, y : int) - getIndex(x : int, y : int) : int + getPixels() : Pixel[] } enum Pixel { + BLACK {static} + WHITE {static} - color : int + valueOf(name : String) : Pixel {static} + values() : Pixel[] {static} } class Scene { - LOGGER : Logger {static} - current : int - frameBuffers : Buffer[] - next : int + Scene() + draw(coordinateList : List<Pair<Integer, Integer>>) + getBuffer() : Buffer - swap() } } FrameBuffer ..|> Buffer @enduml