propane 3.1.0.pre-java → 3.2.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.mvn/wrapper/maven-wrapper.properties +1 -0
  3. data/CHANGELOG.md +1 -5
  4. data/README.md +23 -12
  5. data/Rakefile +23 -12
  6. data/lib/propane/helpers/version_error.rb +6 -0
  7. data/lib/propane/runner.rb +12 -0
  8. data/lib/propane/version.rb +1 -1
  9. data/library/slider/slider.rb +1 -1
  10. data/mvnw +234 -0
  11. data/mvnw.cmd +145 -0
  12. data/pom.xml +28 -27
  13. data/propane.gemspec +2 -2
  14. data/src/main/java/japplemenubar/JAppleMenuBar.java +41 -47
  15. data/src/main/java/monkstone/ColorUtil.java +1 -1
  16. data/src/main/java/monkstone/MathToolModule.java +12 -11
  17. data/src/main/java/monkstone/PropaneLibrary.java +9 -10
  18. data/src/main/java/monkstone/core/LibraryProxy.java +124 -113
  19. data/src/main/java/monkstone/fastmath/Deglut.java +86 -89
  20. data/src/main/java/monkstone/filechooser/Chooser.java +7 -13
  21. data/src/main/java/monkstone/noise/SimplexNoise.java +0 -1
  22. data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +4 -4
  23. data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
  24. data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +9 -9
  25. data/src/main/java/monkstone/slider/SimpleSlider.java +0 -9
  26. data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +11 -13
  27. data/src/main/java/monkstone/slider/Slider.java +1 -1
  28. data/src/main/java/monkstone/slider/SliderBar.java +1 -1
  29. data/src/main/java/monkstone/slider/SliderGroup.java +1 -1
  30. data/src/main/java/monkstone/slider/WheelHandler.java +8 -9
  31. data/src/main/java/monkstone/vecmath/AppRender.java +2 -2
  32. data/src/main/java/monkstone/vecmath/ShapeRender.java +2 -2
  33. data/src/main/java/monkstone/vecmath/package-info.java +2 -2
  34. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +2 -2
  35. data/src/main/java/monkstone/vecmath/vec3/Vec3.java +1 -1
  36. data/src/main/java/monkstone/videoevent/VideoInterface.java +11 -5
  37. data/src/main/java/monkstone/videoevent/package-info.java +2 -2
  38. data/src/main/java/processing/awt/PGraphicsJava2D.java +1742 -2243
  39. data/src/main/java/processing/awt/PShapeJava2D.java +268 -270
  40. data/src/main/java/processing/awt/PSurfaceAWT.java +821 -920
  41. data/src/main/java/processing/core/DesktopHandler.java +94 -0
  42. data/src/main/java/processing/core/PApplet.java +14170 -14082
  43. data/src/main/java/processing/core/PConstants.java +447 -473
  44. data/src/main/java/processing/core/PFont.java +867 -873
  45. data/src/main/java/processing/core/PGraphics.java +7193 -7428
  46. data/src/main/java/processing/core/PImage.java +3051 -3117
  47. data/src/main/java/processing/core/PMatrix.java +159 -172
  48. data/src/main/java/processing/core/PMatrix2D.java +403 -444
  49. data/src/main/java/processing/core/PMatrix3D.java +735 -749
  50. data/src/main/java/processing/core/PShape.java +2651 -2793
  51. data/src/main/java/processing/core/PShapeOBJ.java +415 -422
  52. data/src/main/java/processing/core/PShapeSVG.java +1466 -1475
  53. data/src/main/java/processing/core/PStyle.java +37 -40
  54. data/src/main/java/processing/core/PSurface.java +98 -103
  55. data/src/main/java/processing/core/PSurfaceNone.java +208 -236
  56. data/src/main/java/processing/core/PVector.java +961 -990
  57. data/src/main/java/processing/data/DoubleDict.java +709 -753
  58. data/src/main/java/processing/data/DoubleList.java +695 -748
  59. data/src/main/java/processing/data/FloatDict.java +702 -746
  60. data/src/main/java/processing/data/FloatList.java +697 -751
  61. data/src/main/java/processing/data/IntDict.java +673 -718
  62. data/src/main/java/processing/data/IntList.java +633 -699
  63. data/src/main/java/processing/data/JSONArray.java +873 -931
  64. data/src/main/java/processing/data/JSONObject.java +1165 -1262
  65. data/src/main/java/processing/data/JSONTokener.java +341 -351
  66. data/src/main/java/processing/data/LongDict.java +662 -707
  67. data/src/main/java/processing/data/LongList.java +634 -700
  68. data/src/main/java/processing/data/Sort.java +41 -37
  69. data/src/main/java/processing/data/StringDict.java +486 -522
  70. data/src/main/java/processing/data/StringList.java +580 -624
  71. data/src/main/java/processing/data/Table.java +3508 -3686
  72. data/src/main/java/processing/data/TableRow.java +183 -182
  73. data/src/main/java/processing/data/XML.java +883 -957
  74. data/src/main/java/processing/event/Event.java +66 -87
  75. data/src/main/java/processing/event/KeyEvent.java +41 -48
  76. data/src/main/java/processing/event/MouseEvent.java +93 -103
  77. data/src/main/java/processing/event/TouchEvent.java +6 -10
  78. data/src/main/java/processing/javafx/PGraphicsFX2D.java +5 -69
  79. data/src/main/java/processing/javafx/PSurfaceFX.java +2 -7
  80. data/src/main/java/processing/opengl/FontTexture.java +270 -290
  81. data/src/main/java/processing/opengl/FrameBuffer.java +363 -375
  82. data/src/main/java/processing/opengl/LinePath.java +500 -543
  83. data/src/main/java/processing/opengl/LineStroker.java +582 -593
  84. data/src/main/java/processing/opengl/PGL.java +2881 -2904
  85. data/src/main/java/processing/opengl/PGraphics2D.java +315 -408
  86. data/src/main/java/processing/opengl/PGraphics3D.java +72 -107
  87. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +12043 -12230
  88. data/src/main/java/processing/opengl/PJOGL.java +1681 -1745
  89. data/src/main/java/processing/opengl/PShader.java +1257 -1260
  90. data/src/main/java/processing/opengl/PShapeOpenGL.java +4599 -4662
  91. data/src/main/java/processing/opengl/PSurfaceJOGL.java +1030 -1047
  92. data/src/main/java/processing/opengl/Texture.java +1397 -1462
  93. data/src/main/java/processing/opengl/VertexBuffer.java +55 -57
  94. data/src/main/resources/icon/icon-1024.png +0 -0
  95. data/src/main/resources/icon/icon-128.png +0 -0
  96. data/src/main/resources/icon/icon-16.png +0 -0
  97. data/src/main/resources/icon/icon-256.png +0 -0
  98. data/src/main/resources/icon/icon-32.png +0 -0
  99. data/src/main/resources/icon/icon-48.png +0 -0
  100. data/src/main/resources/icon/icon-512.png +0 -0
  101. data/src/main/resources/icon/icon-64.png +0 -0
  102. data/vendors/Rakefile +1 -1
  103. metadata +12 -8
  104. data/src/main/java/processing/core/ThinkDifferent.java +0 -70
@@ -1,5 +1,3 @@
1
- /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
-
3
1
  /*
4
2
  Part of the Processing project - http://processing.org
5
3
 
@@ -18,11 +16,9 @@
18
16
  Public License along with this library; if not, write to the
19
17
  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
18
  Boston, MA 02111-1307 USA
21
- */
22
-
19
+ */
23
20
  package processing.event;
24
21
 
25
-
26
22
  // PLACEHOLDER CLASS: DO NOT USE. IT HAS NOT EVEN DECIDED WHETHER
27
23
  // THIS WILL BE CALLED TOUCHEVENT ONCE IT'S FINISHED.
28
24
 
@@ -47,11 +43,11 @@ http://www.w3.org/TR/2011/WD-touch-events-20110913/
47
43
  Pointer and gesture events (Windows)
48
44
  http://msdn.microsoft.com/en-US/library/ie/hh673557.aspx
49
45
 
50
- */
46
+ */
51
47
  public class TouchEvent extends Event {
52
48
 
53
- public TouchEvent(Object nativeObject, long millis, int action, int modifiers) {
54
- super(nativeObject, millis, action, modifiers);
55
- this.flavor = TOUCH;
56
- }
49
+ public TouchEvent(Object nativeObject, long millis, int action, int modifiers) {
50
+ super(nativeObject, millis, action, modifiers);
51
+ this.flavor = TOUCH;
52
+ }
57
53
  }
@@ -8,25 +8,25 @@ import processing.core.PMatrix3D;
8
8
  import processing.core.PShape;
9
9
  import processing.core.PSurface;
10
10
 
11
- public class PGraphicsFX2D extends PGraphics{
11
+ public class PGraphicsFX2D extends PGraphics {
12
+
12
13
  final String message = "FX2D renderer not supported in this version of propane";
13
- public PGraphicsFX2D(){
14
- }
15
14
 
15
+ public PGraphicsFX2D() {
16
+ }
16
17
 
17
18
  @Override
18
19
  public void applyMatrix(float n00, float n01, float n02, float n10, float n11, float n12) {
19
20
  throw new UnsupportedOperationException(message);
20
21
  }
21
22
 
22
-
23
23
  @Override
24
24
  public void applyMatrix(float n00, float n01, float n02, float n03, float n10, float n11, float n12, float n13, float n20, float n21, float n22, float n23, float n30, float n31, float n32, float n33) {
25
25
  throw new UnsupportedOperationException(message);
26
26
  }
27
27
 
28
28
  @Override
29
- protected void backgroundImpl(){
29
+ protected void backgroundImpl() {
30
30
  throw new UnsupportedOperationException(message);
31
31
  }
32
32
 
@@ -35,385 +35,321 @@ public class PGraphicsFX2D extends PGraphics{
35
35
  throw new UnsupportedOperationException(message);
36
36
  }
37
37
 
38
-
39
38
  @Override
40
39
  public void beginDraw() {
41
40
  throw new UnsupportedOperationException(message);
42
41
  }
43
42
 
44
-
45
43
  @Override
46
44
  public void beginShape(int kind) {
47
45
  throw new UnsupportedOperationException(message);
48
46
  }
49
47
 
50
-
51
48
  @Override
52
49
  public void bezierDetail(int detail) {
53
50
  throw new UnsupportedOperationException(message);
54
51
  }
55
52
 
56
-
57
53
  @Override
58
54
  public void bezierVertex(float x1, float y1, float x2, float y2, float x3, float y3) {
59
55
  throw new UnsupportedOperationException(message);
60
56
  }
61
57
 
62
-
63
58
  @Override
64
59
  public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) {
65
60
  throw new UnsupportedOperationException(message);
66
61
  }
67
62
 
68
-
69
63
  @Override
70
64
  public void box(float w, float h, float d) {
71
65
  throw new UnsupportedOperationException(message);
72
66
  }
73
67
 
74
-
75
68
  @Override
76
69
  public PSurface createSurface() {
77
70
  throw new UnsupportedOperationException(message);
78
71
  }
79
72
 
80
-
81
73
  @Override
82
74
  public void curveDetail(int detail) {
83
75
  throw new UnsupportedOperationException(message);
84
76
  }
85
77
 
86
-
87
78
  @Override
88
79
  public void curveVertex(float x, float y, float z) {
89
80
  throw new UnsupportedOperationException(message);
90
81
  }
91
82
 
92
-
93
83
  @Override
94
84
  public void endContour() {
95
85
  throw new UnsupportedOperationException(message);
96
86
  }
97
87
 
98
-
99
88
  @Override
100
89
  public void endDraw() {
101
90
  throw new UnsupportedOperationException(message);
102
91
  }
103
92
 
104
-
105
93
  @Override
106
94
  public void endShape(int mode) {
107
95
  throw new UnsupportedOperationException(message);
108
96
  }
109
97
 
110
-
111
98
  @Override
112
99
  public void flush() {
113
100
  throw new UnsupportedOperationException(message);
114
101
  }
115
102
 
116
-
117
103
  @Override
118
104
  public int get(int x, int y) {
119
105
  throw new UnsupportedOperationException(message);
120
106
  }
121
107
 
122
-
123
108
  @Override
124
109
  public PMatrix getMatrix() {
125
110
  throw new UnsupportedOperationException(message);
126
111
  }
127
112
 
128
-
129
113
  @Override
130
114
  public PMatrix2D getMatrix(PMatrix2D target) {
131
115
  throw new UnsupportedOperationException(message);
132
116
  }
133
117
 
134
-
135
118
  @Override
136
119
  public PMatrix3D getMatrix(PMatrix3D target) {
137
120
  throw new UnsupportedOperationException(message);
138
121
  }
139
122
 
140
-
141
123
  @Override
142
124
  public Object getNative() {
143
125
  throw new UnsupportedOperationException(message);
144
126
  }
145
127
 
146
-
147
128
  @Override
148
129
  public void line(float x1, float y1, float x2, float y2) {
149
130
  throw new UnsupportedOperationException(message);
150
131
  }
151
132
 
152
-
153
133
  @Override
154
134
  public void loadPixels() {
155
135
  throw new UnsupportedOperationException(message);
156
136
  }
157
137
 
158
-
159
138
  @Override
160
139
  public PShape loadShape(String filename) {
161
140
  throw new UnsupportedOperationException(message);
162
141
  }
163
142
 
164
-
165
143
  @Override
166
144
  public PShape loadShape(String filename, String options) {
167
145
  throw new UnsupportedOperationException(message);
168
146
  }
169
147
 
170
-
171
148
  @Override
172
149
  public void mask(PImage alpha) {
173
150
  throw new UnsupportedOperationException(message);
174
151
  }
175
152
 
176
-
177
153
  @Override
178
154
  public void noClip() {
179
155
  throw new UnsupportedOperationException(message);
180
156
  }
181
157
 
182
-
183
158
  @Override
184
159
  public void point(float x, float y) {
185
160
  throw new UnsupportedOperationException(message);
186
161
  }
187
162
 
188
-
189
163
  @Override
190
164
  public void popMatrix() {
191
165
  throw new UnsupportedOperationException(message);
192
166
  }
193
167
 
194
-
195
168
  @Override
196
169
  public void printMatrix() {
197
170
  throw new UnsupportedOperationException(message);
198
171
  }
199
172
 
200
-
201
173
  @Override
202
174
  public void pushMatrix() {
203
175
  throw new UnsupportedOperationException(message);
204
176
  }
205
177
 
206
-
207
178
  @Override
208
179
  public void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {
209
180
  throw new UnsupportedOperationException(message);
210
181
  }
211
182
 
212
-
213
183
  @Override
214
184
  public void quadraticVertex(float ctrlX, float ctrlY, float endX, float endY) {
215
185
  throw new UnsupportedOperationException(message);
216
186
  }
217
187
 
218
-
219
188
  @Override
220
189
  public void quadraticVertex(float x2, float y2, float z2, float x4, float y4, float z4) {
221
190
  throw new UnsupportedOperationException(message);
222
191
  }
223
192
 
224
-
225
193
  @Override
226
194
  public void resetMatrix() {
227
195
  throw new UnsupportedOperationException(message);
228
196
  }
229
197
 
230
-
231
198
  @Override
232
199
  public void rotate(float angle) {
233
200
  throw new UnsupportedOperationException(message);
234
201
  }
235
202
 
236
-
237
203
  @Override
238
204
  public void rotate(float angle, float vx, float vy, float vz) {
239
205
  throw new UnsupportedOperationException(message);
240
206
  }
241
207
 
242
-
243
208
  @Override
244
209
  public void rotateX(float angle) {
245
210
  throw new UnsupportedOperationException(message);
246
211
  }
247
212
 
248
-
249
213
  @Override
250
214
  public void rotateY(float angle) {
251
215
  throw new UnsupportedOperationException(message);
252
216
  }
253
217
 
254
-
255
218
  @Override
256
219
  public void rotateZ(float angle) {
257
220
  throw new UnsupportedOperationException(message);
258
221
  }
259
222
 
260
-
261
223
  @Override
262
224
  public void scale(float s) {
263
225
  throw new UnsupportedOperationException(message);
264
226
  }
265
227
 
266
-
267
228
  @Override
268
229
  public void scale(float sx, float sy) {
269
230
  throw new UnsupportedOperationException(message);
270
231
  }
271
232
 
272
-
273
233
  @Override
274
234
  public void scale(float sx, float sy, float sz) {
275
235
  throw new UnsupportedOperationException(message);
276
236
  }
277
237
 
278
-
279
238
  @Override
280
239
  public float screenX(float x, float y) {
281
240
  throw new UnsupportedOperationException(message);
282
241
  }
283
242
 
284
-
285
243
  @Override
286
244
  public float screenX(float x, float y, float z) {
287
245
  throw new UnsupportedOperationException(message);
288
246
  }
289
247
 
290
-
291
248
  @Override
292
249
  public float screenY(float x, float y) {
293
250
  throw new UnsupportedOperationException(message);
294
251
  }
295
252
 
296
-
297
253
  @Override
298
254
  public float screenY(float x, float y, float z) {
299
255
  throw new UnsupportedOperationException(message);
300
256
  }
301
257
 
302
-
303
258
  @Override
304
259
  public float screenZ(float x, float y, float z) {
305
260
  throw new UnsupportedOperationException(message);
306
261
  }
307
262
 
308
-
309
263
  @Override
310
264
  public void set(int x, int y, int argb) {
311
265
  throw new UnsupportedOperationException(message);
312
266
  }
313
267
 
314
-
315
268
  @Override
316
269
  public void setMatrix(PMatrix2D source) {
317
270
  throw new UnsupportedOperationException(message);
318
271
  }
319
272
 
320
-
321
273
  @Override
322
274
  public void setMatrix(PMatrix3D source) {
323
275
  throw new UnsupportedOperationException(message);
324
276
  }
325
277
 
326
-
327
278
  @Override
328
279
  public void shearX(float angle) {
329
280
  throw new UnsupportedOperationException(message);
330
281
  }
331
282
 
332
-
333
283
  @Override
334
284
  public void shearY(float angle) {
335
285
  throw new UnsupportedOperationException(message);
336
286
  }
337
287
 
338
-
339
288
  @Override
340
289
  public void sphere(float r) {
341
290
  throw new UnsupportedOperationException(message);
342
291
  }
343
292
 
344
-
345
293
  @Override
346
294
  public void strokeCap(int cap) {
347
295
  throw new UnsupportedOperationException(message);
348
296
  }
349
297
 
350
-
351
298
  @Override
352
299
  public void strokeJoin(int join) {
353
300
  throw new UnsupportedOperationException(message);
354
301
  }
355
302
 
356
-
357
303
  @Override
358
304
  public void strokeWeight(float weight) {
359
305
  throw new UnsupportedOperationException(message);
360
306
  }
361
307
 
362
-
363
308
  @Override
364
309
  public float textAscent() {
365
310
  throw new UnsupportedOperationException(message);
366
311
  }
367
312
 
368
-
369
313
  @Override
370
314
  public float textDescent() {
371
315
  throw new UnsupportedOperationException(message);
372
316
  }
373
317
 
374
-
375
318
  @Override
376
319
  public void texture(PImage image) {
377
320
  throw new UnsupportedOperationException(message);
378
321
  }
379
322
 
380
-
381
323
  @Override
382
324
  public void translate(float tx, float ty) {
383
325
  throw new UnsupportedOperationException(message);
384
326
  }
385
327
 
386
-
387
328
  @Override
388
329
  public void triangle(float x1, float y1, float x2, float y2, float x3, float y3) {
389
330
  throw new UnsupportedOperationException(message);
390
331
  }
391
332
 
392
-
393
333
  @Override
394
334
  public void vertex(float x, float y) {
395
335
  throw new UnsupportedOperationException(message);
396
336
  }
397
337
 
398
-
399
338
  @Override
400
339
  public void vertex(float x, float y, float z) {
401
340
  throw new UnsupportedOperationException(message);
402
341
  }
403
342
 
404
-
405
343
  @Override
406
344
  public void vertex(float[] v) {
407
345
  throw new UnsupportedOperationException(message);
408
346
  }
409
347
 
410
-
411
348
  @Override
412
349
  public void vertex(float x, float y, float u, float v) {
413
350
  throw new UnsupportedOperationException(message);
414
351
  }
415
352
 
416
-
417
353
  @Override
418
354
  public void vertex(float x, float y, float z, float u, float v) {
419
355
  throw new UnsupportedOperationException(message);
@@ -1,5 +1,3 @@
1
- /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
-
3
1
  /*
4
2
  Part of the Processing project - http://processing.org
5
3
 
@@ -18,18 +16,15 @@
18
16
  Public License along with this library; if not, write to the
19
17
  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
18
  Boston, MA 02111-1307 USA
21
- */
22
-
19
+ */
23
20
  package processing.javafx;
24
21
 
25
22
  import processing.core.PApplet;
26
23
  import processing.core.PImage;
27
24
  import processing.core.PSurface;
28
25
 
29
-
30
-
31
-
32
26
  public class PSurfaceFX implements PSurface {
27
+
33
28
  final String message = "FX2D renderer not supported in this version of propane";
34
29
 
35
30
  @Override