diff options
author | Adam NAILI | 2018-01-09 01:28:59 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-09 01:28:59 +0100 |
commit | 0c03018b37bceb81bcefcd89288e9baaea64a2c2 (patch) | |
tree | 3c381a6face4c3de7b759f9a632aba41a5d3ec36 | |
parent | 1ad7d521ef73c956bec5063d152771cf06180970 (diff) | |
download | wallj-0c03018b37bceb81bcefcd89288e9baaea64a2c2.tar.gz |
Modifying the signature of method to provide ApplicationContext to render
-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 |