Ajouts des bons diagrammes de classe
This commit is contained in:
@@ -1,100 +1,84 @@
|
||||
@startuml
|
||||
class fr.monkhanny.dorfromantik.utils.PlayerScore {
|
||||
- String serie
|
||||
- int score
|
||||
+ <<Create>> PlayerScore(String,int)
|
||||
+ String getSerieName()
|
||||
+ int getScore()
|
||||
@startuml utils
|
||||
!theme plain
|
||||
top to bottom direction
|
||||
skinparam linetype ortho
|
||||
|
||||
class Database {
|
||||
+ Database():
|
||||
- database: Connection
|
||||
+ addScore(long, int): void
|
||||
+ getSeedBySeriesId(long): long
|
||||
+ countSeriesByDateRange(Date, Date, boolean): int
|
||||
+ getSeriesByDateRange(Date, Date): List<String>
|
||||
+ getScoresBySeriesId(long): List<Integer>
|
||||
+ getAllScores(long): List<PlayerScore>
|
||||
+ getSeriesByDateRangePaginated(Date, Date, int, int, boolean): List<String>
|
||||
+ addCustomSeed(long): void
|
||||
+ close(): void
|
||||
+ getSeedByName(String): long
|
||||
database: Connection
|
||||
topPlayers: List<PlayerScore>
|
||||
allSeries: List<String>
|
||||
}
|
||||
class FontLoader {
|
||||
+ FontLoader():
|
||||
+ loadFont(Fonts): Font
|
||||
}
|
||||
class FontManager {
|
||||
+ FontManager():
|
||||
- buttonFont: Font
|
||||
- titleFont: Font
|
||||
+ getTitleFont(float): Font
|
||||
+ loadCustomFont(Fonts): void
|
||||
+ getAdjustedTitleFont(Component, float, float): Font
|
||||
+ getAdjustedButtonFont(Component, float, float): Font
|
||||
+ getButtonFont(float): Font
|
||||
buttonFont: Font
|
||||
titleFont: Font
|
||||
}
|
||||
class Hexagon {
|
||||
+ Hexagon(int, int, int):
|
||||
+ Hexagon(Point, int):
|
||||
+ Hexagon(Point, int, double):
|
||||
+ Hexagon(int, int, int, double):
|
||||
- calculateAngle(int, double): double
|
||||
}
|
||||
class HexagonDrawer {
|
||||
+ HexagonDrawer(Tile):
|
||||
+ drawHexagon(Graphics2D, double, Point): void
|
||||
- drawHexagonRow(Graphics2D, double, double, double, int): void
|
||||
}
|
||||
class ImageLoader {
|
||||
+ ImageLoader():
|
||||
+ loadImage(String): Image?
|
||||
}
|
||||
class MusicPlayer {
|
||||
+ MusicPlayer():
|
||||
- soundClip: Clip
|
||||
- musicClip: Clip
|
||||
+ loadMusic(Musics): void
|
||||
+ playSound(): void
|
||||
+ pauseMusic(): void
|
||||
+ loadSound(Sounds): void
|
||||
+ setVolume(Clip, int): void
|
||||
+ playMusic(): void
|
||||
+ stopMusic(): void
|
||||
playingSound: boolean
|
||||
soundClip: Clip
|
||||
playingMusic: boolean
|
||||
musicClip: Clip
|
||||
}
|
||||
class PlayerScore {
|
||||
+ PlayerScore(String, int):
|
||||
- score: int
|
||||
serieName: String
|
||||
score: int
|
||||
}
|
||||
class SoundLoader {
|
||||
+ SoundLoader():
|
||||
+ loadMusic(String): Clip?
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.Hexagon {
|
||||
- {static} int ANGLE_BETWEEN_VERTICES
|
||||
+ <<Create>> Hexagon(int,int,int,double)
|
||||
+ <<Create>> Hexagon(Point,int,double)
|
||||
+ <<Create>> Hexagon(int,int,int)
|
||||
+ <<Create>> Hexagon(Point,int)
|
||||
- double calculateAngle(int,double)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.ImageLoader {
|
||||
+ {static} Image APPLICATION_ICON
|
||||
+ {static} Image loadImage(String)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.FontManager {
|
||||
- {static} Font titleFont
|
||||
- {static} Font buttonFont
|
||||
+ {static} void loadCustomFont(Fonts)
|
||||
+ {static} Font getTitleFont(float)
|
||||
+ {static} Font getButtonFont(float)
|
||||
+ {static} Font getAdjustedTitleFont(Component,float,float)
|
||||
+ {static} Font getAdjustedButtonFont(Component,float,float)
|
||||
+ {static} void setTitleFont(Font)
|
||||
+ {static} void setButtonFont(Font)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.HexagonDrawer {
|
||||
- Tile tile
|
||||
+ <<Create>> HexagonDrawer(Tile)
|
||||
+ void drawHexagon(Graphics2D,double,Point)
|
||||
- void drawHexagonRow(Graphics2D,double,double,double,int)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.SoundLoader {
|
||||
+ {static} Clip loadMusic(String)
|
||||
}
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.MusicPlayer {
|
||||
- {static} Clip musicClip
|
||||
- {static} Clip soundClip
|
||||
- {static} boolean isPlayingMusic
|
||||
- {static} boolean isPlayingSound
|
||||
+ {static} void loadMusic(Musics)
|
||||
+ {static} void loadSound(Sounds)
|
||||
+ {static} void playMusic()
|
||||
+ {static} void playSound()
|
||||
+ {static} void pauseMusic()
|
||||
+ {static} void stopMusic()
|
||||
+ {static} void setVolume(Clip,int)
|
||||
+ {static} boolean isPlayingMusic()
|
||||
+ {static} boolean isPlayingSound()
|
||||
+ {static} Clip getMusicClip()
|
||||
+ {static} Clip getSoundClip()
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.FontLoader {
|
||||
+ {static} Font loadFont(Fonts)
|
||||
}
|
||||
|
||||
class fr.monkhanny.dorfromantik.utils.Database {
|
||||
- {static} String URL
|
||||
- {static} String LOGIN
|
||||
- {static} String PASSWORD
|
||||
- Connection database
|
||||
+ <<Create>> Database()
|
||||
+ Connection getDatabase()
|
||||
+ long getSeedBySeriesId(long)
|
||||
+ List<PlayerScore> getAllScores(long)
|
||||
+ List<String> getAllSeries()
|
||||
+ List<String> getSeriesByDateRange(Date,Date)
|
||||
+ int countSeriesByDateRange(Date,Date,boolean)
|
||||
+ List<String> getSeriesByDateRangePaginated(Date,Date,int,int,boolean)
|
||||
+ long getSeedByName(String)
|
||||
+ void addScore(long,int)
|
||||
+ void addCustomSeed(long)
|
||||
+ List<PlayerScore> getTopPlayers()
|
||||
+ List<Integer> getScoresBySeriesId(long)
|
||||
+ void close()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
java.awt.Polygon <|-- fr.monkhanny.dorfromantik.utils.Hexagon
|
||||
Database -[#595959,dashed]-> PlayerScore : "«create»"
|
||||
HexagonDrawer -[#595959,dashed]-> Hexagon : "«create»"
|
||||
@enduml
|
Reference in New Issue
Block a user