propane 3.2.0-java → 3.3.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.mvn/extensions.xml +9 -0
  3. data/.mvn/wrapper/maven-wrapper.properties +3 -1
  4. data/CHANGELOG.md +3 -1
  5. data/README.md +4 -4
  6. data/lib/propane/app.rb +1 -1
  7. data/lib/propane/version.rb +1 -1
  8. data/pom.rb +79 -0
  9. data/pom.xml +32 -43
  10. data/propane.gemspec +2 -2
  11. data/src/main/java/japplemenubar/JAppleMenuBar.java +47 -41
  12. data/src/main/java/monkstone/vecmath/{AppRender.java → GfxRender.java} +12 -12
  13. data/src/main/java/processing/awt/PSurfaceAWT.java +3 -3
  14. data/src/main/java/processing/core/PApplet.java +14004 -14573
  15. data/src/main/java/processing/core/PGraphics.java +7563 -7213
  16. data/src/main/java/processing/core/PImage.java +2783 -3080
  17. data/src/main/java/processing/core/ThinkDifferent.java +120 -0
  18. data/src/main/java/processing/core/util/image/ImageLoadFacade.java +161 -0
  19. data/src/main/java/processing/core/util/image/ImageSaveFacade.java +169 -0
  20. data/src/main/java/processing/core/util/image/constants/TifConstants.java +45 -0
  21. data/src/main/java/processing/core/util/image/load/AwtImageLoadStrategy.java +80 -0
  22. data/src/main/java/processing/core/util/image/load/Base64StringImageLoadStrategy.java +73 -0
  23. data/src/main/java/processing/core/util/image/load/FallbackImageLoadStrategy.java +70 -0
  24. data/src/main/java/processing/core/util/image/load/ImageIoImageLoadStrategy.java +132 -0
  25. data/src/main/java/processing/core/util/image/load/ImageLoadStrategy.java +48 -0
  26. data/src/main/java/processing/core/util/image/load/ImageLoadUtil.java +45 -0
  27. data/src/main/java/processing/core/util/image/load/TgaImageLoadStrategy.java +255 -0
  28. data/src/main/java/processing/core/util/image/load/TiffImageLoadStrategy.java +98 -0
  29. data/src/main/java/processing/core/util/image/save/ImageSaveStrategy.java +49 -0
  30. data/src/main/java/processing/core/util/image/save/ImageSaveUtil.java +48 -0
  31. data/src/main/java/processing/core/util/image/save/ImageWriterImageSaveStrategy.java +179 -0
  32. data/src/main/java/processing/core/util/image/save/SaveImageException.java +41 -0
  33. data/src/main/java/processing/core/util/image/save/TgaImageSaveStrategy.java +198 -0
  34. data/src/main/java/processing/core/util/image/save/TiffImageSaveStrategy.java +91 -0
  35. data/src/main/java/processing/core/util/image/save/TiffNakedFilenameImageSaveStrategy.java +57 -0
  36. data/src/main/java/processing/core/util/io/InputFactory.java +285 -0
  37. data/src/main/java/processing/core/util/io/PathUtil.java +109 -0
  38. data/vendors/Rakefile +1 -1
  39. metadata +30 -7
  40. data/src/main/java/processing/core/DesktopHandler.java +0 -94
@@ -10,7 +10,7 @@ SOUND_VERSION = 'v1.3.2' # version 1.3.2
10
10
  GLVIDEO = 'processing-glvideo.zip'
11
11
  VIDEO = 'video-2.zip'
12
12
  VIDEO_VERSION = '2' # version 1.0.1
13
- EXAMPLES = '2.4'.freeze
13
+ EXAMPLES = '2.5'.freeze
14
14
  HOME_DIR = ENV['HOME']
15
15
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-16 00:00:00.000000000 Z
11
+ date: 2019-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -69,6 +69,7 @@ files:
69
69
  - ".github/CONTRIBUTING.md"
70
70
  - ".github/ISSUE_TEMPLATE.md"
71
71
  - ".gitignore"
72
+ - ".mvn/extensions.xml"
72
73
  - ".mvn/wrapper/maven-wrapper.properties"
73
74
  - ".yardopts"
74
75
  - CHANGELOG.md
@@ -88,7 +89,7 @@ files:
88
89
  - lib/jogl-all-natives-macosx-universal.jar
89
90
  - lib/jogl-all-natives-windows-amd64.jar
90
91
  - lib/jogl-all.jar
91
- - lib/propane-3.2.0.jar
92
+ - lib/propane-3.3.0.jar
92
93
  - lib/propane.rb
93
94
  - lib/propane/app.rb
94
95
  - lib/propane/creators/sketch_class.rb
@@ -116,6 +117,7 @@ files:
116
117
  - license.txt
117
118
  - mvnw
118
119
  - mvnw.cmd
120
+ - pom.rb
119
121
  - pom.xml
120
122
  - propane.gemspec
121
123
  - src/main/java/japplemenubar/JAppleMenuBar.java
@@ -137,7 +139,7 @@ files:
137
139
  - src/main/java/monkstone/slider/SliderBar.java
138
140
  - src/main/java/monkstone/slider/SliderGroup.java
139
141
  - src/main/java/monkstone/slider/WheelHandler.java
140
- - src/main/java/monkstone/vecmath/AppRender.java
142
+ - src/main/java/monkstone/vecmath/GfxRender.java
141
143
  - src/main/java/monkstone/vecmath/JRender.java
142
144
  - src/main/java/monkstone/vecmath/ShapeRender.java
143
145
  - src/main/java/monkstone/vecmath/package-info.java
@@ -150,7 +152,6 @@ files:
150
152
  - src/main/java/processing/awt/PGraphicsJava2D.java
151
153
  - src/main/java/processing/awt/PShapeJava2D.java
152
154
  - src/main/java/processing/awt/PSurfaceAWT.java
153
- - src/main/java/processing/core/DesktopHandler.java
154
155
  - src/main/java/processing/core/PApplet.java
155
156
  - src/main/java/processing/core/PConstants.java
156
157
  - src/main/java/processing/core/PFont.java
@@ -166,6 +167,27 @@ files:
166
167
  - src/main/java/processing/core/PSurface.java
167
168
  - src/main/java/processing/core/PSurfaceNone.java
168
169
  - src/main/java/processing/core/PVector.java
170
+ - src/main/java/processing/core/ThinkDifferent.java
171
+ - src/main/java/processing/core/util/image/ImageLoadFacade.java
172
+ - src/main/java/processing/core/util/image/ImageSaveFacade.java
173
+ - src/main/java/processing/core/util/image/constants/TifConstants.java
174
+ - src/main/java/processing/core/util/image/load/AwtImageLoadStrategy.java
175
+ - src/main/java/processing/core/util/image/load/Base64StringImageLoadStrategy.java
176
+ - src/main/java/processing/core/util/image/load/FallbackImageLoadStrategy.java
177
+ - src/main/java/processing/core/util/image/load/ImageIoImageLoadStrategy.java
178
+ - src/main/java/processing/core/util/image/load/ImageLoadStrategy.java
179
+ - src/main/java/processing/core/util/image/load/ImageLoadUtil.java
180
+ - src/main/java/processing/core/util/image/load/TgaImageLoadStrategy.java
181
+ - src/main/java/processing/core/util/image/load/TiffImageLoadStrategy.java
182
+ - src/main/java/processing/core/util/image/save/ImageSaveStrategy.java
183
+ - src/main/java/processing/core/util/image/save/ImageSaveUtil.java
184
+ - src/main/java/processing/core/util/image/save/ImageWriterImageSaveStrategy.java
185
+ - src/main/java/processing/core/util/image/save/SaveImageException.java
186
+ - src/main/java/processing/core/util/image/save/TgaImageSaveStrategy.java
187
+ - src/main/java/processing/core/util/image/save/TiffImageSaveStrategy.java
188
+ - src/main/java/processing/core/util/image/save/TiffNakedFilenameImageSaveStrategy.java
189
+ - src/main/java/processing/core/util/io/InputFactory.java
190
+ - src/main/java/processing/core/util/io/PathUtil.java
169
191
  - src/main/java/processing/data/DoubleDict.java
170
192
  - src/main/java/processing/data/DoubleList.java
171
193
  - src/main/java/processing/data/FloatDict.java
@@ -267,10 +289,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
289
  version: '0'
268
290
  requirements:
269
291
  - java runtime >= 11.0.1+
270
- rubygems_version: 3.0.2
292
+ rubygems_version: 3.0.3
271
293
  signing_key:
272
294
  specification_version: 4
273
- summary: ruby wrapper for processing-3.5 on MacOS, linux and windows (64bit only)
295
+ summary: ruby implementation of processing-4.0 on MacOS, linux and windows (64bit
296
+ only)
274
297
  test_files:
275
298
  - test/create_test.rb
276
299
  - test/deglut_spec_test.rb
@@ -1,94 +0,0 @@
1
- /*
2
- Was ThinkDifferent.java
3
- when part of the Processing project - http://processing.org
4
-
5
- Copyright (c) 2012-2019 The Processing Foundation
6
- Copyright (c) 2007-2012 Ben Fry and Casey Reas
7
-
8
- This program is free software; you can redistribute it and/or
9
- modify it under the terms of the GNU General Public License
10
- version 2, as published by the Free Software Foundation.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program; if not, write to the Free Software Foundation,
19
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
- */
21
- package processing.core;
22
-
23
- import java.awt.Image;
24
- import java.awt.Taskbar;
25
- import java.awt.Desktop;
26
- import java.awt.desktop.QuitResponse;
27
- import java.awt.desktop.QuitEvent;
28
-
29
- /**
30
- * Deal with issues related to Mac OS window behavior.
31
- *
32
- * We have to register a quit handler to safely shut down the sketch,
33
- * otherwise OS X will just kill the sketch when a user hits Cmd-Q.
34
- * In addition, we have a method to set the dock icon image so we look more
35
- * like a native desktop.
36
- *
37
- * This is a stripped-down version of what's in processing.app.platform to fix
38
- * <a href="https://github.com/processing/processing/issues/3301">3301</a>.
39
- */
40
-
41
- public class DesktopHandler {
42
-
43
- private static Desktop desktop;
44
- private static Taskbar taskbar;
45
- static boolean attemptedQuit;
46
-
47
- static public void init(final PApplet sketch) {
48
- getDesktop().setQuitHandler((event, quitResponse) -> {
49
- sketch.exit();
50
-
51
- boolean noKnownCrash = PApplet.uncaughtThrowable == null;
52
-
53
- if (noKnownCrash && !attemptedQuit) { // haven't tried yet
54
- quitResponse.cancelQuit(); // tell OS X we'll handle this
55
- attemptedQuit = true;
56
- } else {
57
- quitResponse.performQuit(); // just force it this time
58
- }
59
- });
60
- }
61
-
62
- static public void cleanup() {
63
- getDesktop().setQuitHandler(null);
64
- }
65
-
66
- // Called via reflection from PSurfaceAWT and others
67
- static public void setIconImage(Image image) {
68
- taskbar.setIconImage(image);
69
- }
70
-
71
- /**
72
- * Get the taskbar where OS visual settings can be provided.
73
- *
74
- * @return Cached taskbar singleton instance.
75
- */
76
- static private Taskbar getTaskbar() {
77
- if (taskbar == null) {
78
- taskbar = Taskbar.getTaskbar();
79
- }
80
- return taskbar;
81
- }
82
-
83
- /**
84
- * Get the desktop where OS behavior can be provided.
85
- *
86
- * @return Cached desktop singleton instance.
87
- */
88
- static private Desktop getDesktop() {
89
- if (desktop == null) {
90
- desktop = Desktop.getDesktop();
91
- }
92
- return desktop;
93
- }
94
- }