Ajout des diagrammes de classe pour les différents packages
This commit is contained in:
206
Documentation/DiagrammeUML/GUI/Diagram_GUI.puml
Normal file
206
Documentation/DiagrammeUML/GUI/Diagram_GUI.puml
Normal file
@@ -0,0 +1,206 @@
|
||||
@startuml
|
||||
class fr.monkhanny.dorfromantik.gui.TutorialPanel {
|
||||
- List<Step> steps
|
||||
- int currentStepIndex
|
||||
- Title title
|
||||
- JLabel stepText
|
||||
- JLabel stepImage
|
||||
- JButton nextButton
|
||||
- JButton prevButton
|
||||
- MainMenu mainMenu
|
||||
- JFrame tutorialFrame
|
||||
+ <<Create>> TutorialPanel(List<Step>,MainMenu,JFrame)
|
||||
# void paintComponent(Graphics)
|
||||
- void updateStepDisplay()
|
||||
- void styleButton(JButton)
|
||||
- void showPreviousStep()
|
||||
- void showNextStep()
|
||||
- JButton createReturnButtonWithIcon()
|
||||
- String addLineBreaks(String,int)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.BarChartPanel {
|
||||
- List<Integer> groupAverages
|
||||
- int highlightedGroup
|
||||
+ <<Create>> BarChartPanel(List<Integer>,int,JPanel)
|
||||
# void paintComponent(Graphics)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.SettingsPanel {
|
||||
- MainMenu mainMenu
|
||||
- JFrame settingsFrame
|
||||
- JButton returnButton
|
||||
+ <<Create>> SettingsPanel(MainMenu,JFrame)
|
||||
- void initializeSettingsFrame()
|
||||
- void setupBackground()
|
||||
- void setupTopPanel()
|
||||
+ void setReturnButtonVisible(boolean)
|
||||
# void paintComponent(Graphics)
|
||||
- void setupMainPanel()
|
||||
- JPanel createSoundPanel(String,JSlider,ChangeListener,MuteCheckBoxListener)
|
||||
- JPanel createAutoFocusPanel()
|
||||
- JPanel createSliderPanel(JSlider)
|
||||
- GridBagConstraints createGridBagConstraints(int,int,int)
|
||||
- JButton createReturnButtonWithIcon()
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.LeaderboardWorldWide {
|
||||
+ <<Create>> LeaderboardWorldWide()
|
||||
+ void refresh()
|
||||
- JPanel createPlayerPanel(String,int,int)
|
||||
- ImageIcon resizeIcon(String,int,int)
|
||||
- JPanel createTopPlayerPanel(String,int,String,boolean)
|
||||
}
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.ButtonHoverAnimator {
|
||||
- JButton button
|
||||
- Color originalColor
|
||||
- {static} Font originalFont
|
||||
- Timer animationTimer
|
||||
+ <<Create>> ButtonHoverAnimator(JButton)
|
||||
+ void startAnimation(boolean)
|
||||
+ {static} void updateOriginalFont(float)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.MainMenu {
|
||||
- Title titleLabel
|
||||
- ButtonPanel buttonPanel
|
||||
- JPanel leaderboardContainer
|
||||
- Leaderboard currentLeaderboard
|
||||
+ <<Create>> MainMenu()
|
||||
+ Title getTitleLabel()
|
||||
+ ButtonPanel getButtonPanel()
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.GameOver {
|
||||
- JFrame gameFrame
|
||||
+ <<Create>> GameOver(JFrame,int,Database,MainMenu)
|
||||
- boolean scoreInGroup(List<Integer>,int,int,int)
|
||||
- String getFunnyQuote(int)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.LeaderboardByTier {
|
||||
+ <<Create>> LeaderboardByTier()
|
||||
+ void refresh()
|
||||
}
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.Reward {
|
||||
- String name
|
||||
- String description
|
||||
- boolean isUnlocked
|
||||
- ImageIcon icon
|
||||
+ <<Create>> Reward(String,String,boolean,ImageIcon)
|
||||
+ String getName()
|
||||
+ String getDescription()
|
||||
+ boolean isUnlocked()
|
||||
+ ImageIcon getIcon()
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.LeaderboardBarChartPanel {
|
||||
- int totalPlayers
|
||||
- int rank
|
||||
+ <<Create>> LeaderboardBarChartPanel(int,int)
|
||||
# void paintComponent(Graphics)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.Step {
|
||||
- String title
|
||||
- String text
|
||||
- String imagePath
|
||||
+ <<Create>> Step(String,String,String)
|
||||
+ String getText()
|
||||
+ String getImagePath()
|
||||
+ String getTitle()
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.ButtonPanel {
|
||||
- JButton newGameButton
|
||||
- JButton howToPlayButton
|
||||
- JButton settingsButton
|
||||
- JButton exitButton
|
||||
+ <<Create>> ButtonPanel(float)
|
||||
+ JButton getNewGameButton()
|
||||
+ JButton getHowToPlayButton()
|
||||
+ JButton getSettingsButton()
|
||||
+ JButton getExitButton()
|
||||
+ List<JButton> getButtons()
|
||||
+ void updateButtonFonts(int)
|
||||
}
|
||||
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.GameControlsMenu {
|
||||
- boolean isVisible
|
||||
- {static} String ICON_PATH
|
||||
+ <<Create>> GameControlsMenu()
|
||||
- JPanel createPanel(String,String)
|
||||
- JPanel createPanelWithMultipleIcons(String,String)
|
||||
- ImageIcon loadIcon(String)
|
||||
+ void toggleVisibility()
|
||||
+ void setControlsMenuVisible(boolean)
|
||||
}
|
||||
|
||||
|
||||
abstract class fr.monkhanny.dorfromantik.gui.Leaderboard {
|
||||
+ <<Create>> Leaderboard()
|
||||
+ {abstract}void refresh()
|
||||
}
|
||||
|
||||
class fr.monkhanny.dorfromantik.gui.GameModeSelectionPanel {
|
||||
- JLabel titleLabel
|
||||
- JTextField seedField
|
||||
- JButton startButton
|
||||
- List<JButton> seriesButtons
|
||||
- Database database
|
||||
- JPanel modePanel
|
||||
- JButton prevButton
|
||||
- JButton nextButton
|
||||
- int currentPage
|
||||
- int itemsPerPage
|
||||
- JLabel pageLabel
|
||||
- JSpinner startDateSpinner
|
||||
- JSpinner endDateSpinner
|
||||
- ActionListener buttonListener
|
||||
- JCheckBox developerSeriesCheckBox
|
||||
+ <<Create>> GameModeSelectionPanel(ActionListener,JFrame,MainMenu)
|
||||
+ void loadSeriesForCurrentPage()
|
||||
- void updatePageLabelAndButtons(int,int)
|
||||
- JPanel createDateFilterPanel()
|
||||
- void stylizeDateSpinner(JSpinner)
|
||||
- JPanel createPaginationPanel()
|
||||
- JPanel createTopPanel(JFrame,MainMenu)
|
||||
- JButton createReturnButtonWithIcon(JFrame,MainMenu)
|
||||
- JPanel createMainPanel()
|
||||
- GridBagConstraints createGridBagConstraints(int,int,int)
|
||||
- JButton createGameModeButton(String,ActionListener)
|
||||
+ int getCurrentPage()
|
||||
+ void setCurrentPage(int)
|
||||
- JPanel createSeedPanel(ActionListener)
|
||||
+ String getStringSeed()
|
||||
+ long getLongSeed()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.TutorialPanel
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.BarChartPanel
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.SettingsPanel
|
||||
fr.monkhanny.dorfromantik.gui.Leaderboard <|-- fr.monkhanny.dorfromantik.gui.LeaderboardWorldWide
|
||||
fr.monkhanny.dorfromantik.gui.JFrame <|-- fr.monkhanny.dorfromantik.gui.MainMenu
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.GameOver
|
||||
fr.monkhanny.dorfromantik.gui.Leaderboard <|-- fr.monkhanny.dorfromantik.gui.LeaderboardByTier
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.LeaderboardBarChartPanel
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.ButtonPanel
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.GameControlsMenu
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.Leaderboard
|
||||
fr.monkhanny.dorfromantik.gui.JPanel <|-- fr.monkhanny.dorfromantik.gui.GameModeSelectionPanel
|
||||
@enduml
|
Reference in New Issue
Block a user