diff options
Diffstat (limited to 'src/main/java/fr')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/viewer/Viewer.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/viewer/Viewer.java b/src/main/java/fr/umlv/java/wallj/viewer/Viewer.java index 3b46b34..aed9581 100644 --- a/src/main/java/fr/umlv/java/wallj/viewer/Viewer.java +++ b/src/main/java/fr/umlv/java/wallj/viewer/Viewer.java | |||
@@ -4,17 +4,31 @@ import fr.umlv.zen5.ApplicationContext; | |||
4 | 4 | ||
5 | import java.awt.*; | 5 | import java.awt.*; |
6 | 6 | ||
7 | /** | ||
8 | * Link between application and Zen 5 | ||
9 | */ | ||
7 | public class Viewer { | 10 | public class Viewer { |
8 | 11 | ||
9 | public static void main(String[] strings) { | 12 | public static void main(String[] strings) { |
10 | 13 | ||
11 | } | 14 | } |
12 | 15 | ||
16 | /** | ||
17 | * | ||
18 | * @param applicationContext the application context from Zen 5 | ||
19 | */ | ||
13 | public static void eventLoop(ApplicationContext applicationContext) { | 20 | public static void eventLoop(ApplicationContext applicationContext) { |
14 | //TODO lambda exp for Application.run(Consumer<...>) | 21 | //TODO lambda exp for Application.run(Consumer<...>) |
22 | //usage : Viewer::eventLoop | ||
15 | } | 23 | } |
16 | 24 | ||
17 | public static void renderFrame(Graphics2D graphics2D) { | 25 | /** |
26 | * | ||
27 | * @param graphics2D the graphic2D from Zen 5 | ||
28 | * @param applicationContext the application context from Zen 5 | ||
29 | */ | ||
30 | public static void renderFrame(Graphics2D graphics2D,ApplicationContext applicationContext) { | ||
18 | //TODO lambda exp for ApplicationContext.renderFrame(Consumer<...>) | 31 | //TODO lambda exp for ApplicationContext.renderFrame(Consumer<...>) |
32 | //usage : graphics->Viewer.renderFrame(graphics2D,applicationContext) | ||
19 | } | 33 | } |
20 | } \ No newline at end of file | 34 | } \ No newline at end of file |