picrate 0.0.2-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +47 -0
  3. data/.mvn/extensions.xml +9 -0
  4. data/.mvn/wrapper/maven-wrapper.properties +1 -0
  5. data/.travis.yml +10 -0
  6. data/CHANGELOG.md +4 -0
  7. data/LICENSE.md +165 -0
  8. data/README.md +51 -0
  9. data/Rakefile +59 -0
  10. data/bin/picrate +8 -0
  11. data/docs/.gitignore +6 -0
  12. data/docs/_config.yml +30 -0
  13. data/docs/_includes/footer.html +38 -0
  14. data/docs/_includes/head.html +16 -0
  15. data/docs/_includes/header.html +27 -0
  16. data/docs/_includes/icon-github.html +1 -0
  17. data/docs/_includes/icon-github.svg +1 -0
  18. data/docs/_includes/icon-twitter.html +1 -0
  19. data/docs/_includes/icon-twitter.svg +1 -0
  20. data/docs/_includes/navigation.html +24 -0
  21. data/docs/_layouts/default.html +20 -0
  22. data/docs/_layouts/page.html +14 -0
  23. data/docs/_layouts/post.html +15 -0
  24. data/docs/_posts/2018-05-06-getting_started.md +8 -0
  25. data/docs/_posts/2018-05-06-install_jruby.md +35 -0
  26. data/docs/_sass/_base.scss +206 -0
  27. data/docs/_sass/_layout.scss +242 -0
  28. data/docs/_sass/_syntax-highlighting.scss +71 -0
  29. data/docs/about.md +10 -0
  30. data/docs/css/main.scss +38 -0
  31. data/docs/favicon.ico +0 -0
  32. data/docs/feed.xml +30 -0
  33. data/docs/index.html +38 -0
  34. data/lib/picrate.rb +10 -0
  35. data/lib/picrate/app.rb +187 -0
  36. data/lib/picrate/creators/sketch_class.rb +57 -0
  37. data/lib/picrate/creators/sketch_factory.rb +12 -0
  38. data/lib/picrate/creators/sketch_writer.rb +21 -0
  39. data/lib/picrate/helper_methods.rb +214 -0
  40. data/lib/picrate/helpers/numeric.rb +9 -0
  41. data/lib/picrate/library.rb +69 -0
  42. data/lib/picrate/library_loader.rb +53 -0
  43. data/lib/picrate/native_folder.rb +35 -0
  44. data/lib/picrate/native_loader.rb +27 -0
  45. data/lib/picrate/runner.rb +81 -0
  46. data/lib/picrate/version.rb +4 -0
  47. data/library/boids/boids.rb +209 -0
  48. data/library/chooser/chooser.rb +19 -0
  49. data/library/control_panel/control_panel.rb +182 -0
  50. data/library/library_proxy/README.md +99 -0
  51. data/library/library_proxy/library_proxy.rb +14 -0
  52. data/library/slider/slider.rb +42 -0
  53. data/library/vector_utils/vector_utils.rb +69 -0
  54. data/library/video_event/video_event.rb +3 -0
  55. data/license.txt +508 -0
  56. data/picrate.gemspec +35 -0
  57. data/pom.rb +122 -0
  58. data/pom.xml +214 -0
  59. data/src/main/java/japplemenubar/JAppleMenuBar.java +88 -0
  60. data/src/main/java/japplemenubar/libjAppleMenuBar.jnilib +0 -0
  61. data/src/main/java/monkstone/ColorUtil.java +115 -0
  62. data/src/main/java/monkstone/MathToolModule.java +236 -0
  63. data/src/main/java/monkstone/PicrateLibrary.java +47 -0
  64. data/src/main/java/monkstone/core/LibraryProxy.java +127 -0
  65. data/src/main/java/monkstone/fastmath/Deglut.java +122 -0
  66. data/src/main/java/monkstone/fastmath/package-info.java +6 -0
  67. data/src/main/java/monkstone/filechooser/Chooser.java +48 -0
  68. data/src/main/java/monkstone/noise/SimplexNoise.java +465 -0
  69. data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +168 -0
  70. data/src/main/java/monkstone/slider/CustomVerticalSlider.java +182 -0
  71. data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +149 -0
  72. data/src/main/java/monkstone/slider/SimpleSlider.java +196 -0
  73. data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +163 -0
  74. data/src/main/java/monkstone/slider/Slider.java +67 -0
  75. data/src/main/java/monkstone/slider/SliderBar.java +277 -0
  76. data/src/main/java/monkstone/slider/SliderGroup.java +78 -0
  77. data/src/main/java/monkstone/slider/WheelHandler.java +35 -0
  78. data/src/main/java/monkstone/vecmath/AppRender.java +87 -0
  79. data/src/main/java/monkstone/vecmath/JRender.java +56 -0
  80. data/src/main/java/monkstone/vecmath/ShapeRender.java +87 -0
  81. data/src/main/java/monkstone/vecmath/package-info.java +20 -0
  82. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +757 -0
  83. data/src/main/java/monkstone/vecmath/vec2/package-info.java +6 -0
  84. data/src/main/java/monkstone/vecmath/vec3/Vec3.java +727 -0
  85. data/src/main/java/monkstone/vecmath/vec3/package-info.java +6 -0
  86. data/src/main/java/monkstone/videoevent/VideoInterface.java +42 -0
  87. data/src/main/java/monkstone/videoevent/package-info.java +20 -0
  88. data/src/main/java/processing/awt/PGraphicsJava2D.java +3098 -0
  89. data/src/main/java/processing/awt/PShapeJava2D.java +401 -0
  90. data/src/main/java/processing/awt/PSurfaceAWT.java +1660 -0
  91. data/src/main/java/processing/core/PApplet.java +17647 -0
  92. data/src/main/java/processing/core/PConstants.java +1033 -0
  93. data/src/main/java/processing/core/PFont.java +1250 -0
  94. data/src/main/java/processing/core/PGraphics.java +9614 -0
  95. data/src/main/java/processing/core/PImage.java +3608 -0
  96. data/src/main/java/processing/core/PMatrix.java +347 -0
  97. data/src/main/java/processing/core/PMatrix2D.java +694 -0
  98. data/src/main/java/processing/core/PMatrix3D.java +1153 -0
  99. data/src/main/java/processing/core/PShape.java +4332 -0
  100. data/src/main/java/processing/core/PShapeOBJ.java +544 -0
  101. data/src/main/java/processing/core/PShapeSVG.java +1987 -0
  102. data/src/main/java/processing/core/PStyle.java +208 -0
  103. data/src/main/java/processing/core/PSurface.java +242 -0
  104. data/src/main/java/processing/core/PSurfaceNone.java +479 -0
  105. data/src/main/java/processing/core/PVector.java +1140 -0
  106. data/src/main/java/processing/data/FloatDict.java +829 -0
  107. data/src/main/java/processing/data/FloatList.java +912 -0
  108. data/src/main/java/processing/data/IntDict.java +796 -0
  109. data/src/main/java/processing/data/IntList.java +913 -0
  110. data/src/main/java/processing/data/JSONArray.java +1260 -0
  111. data/src/main/java/processing/data/JSONObject.java +2282 -0
  112. data/src/main/java/processing/data/JSONTokener.java +435 -0
  113. data/src/main/java/processing/data/Sort.java +46 -0
  114. data/src/main/java/processing/data/StringDict.java +601 -0
  115. data/src/main/java/processing/data/StringList.java +775 -0
  116. data/src/main/java/processing/data/Table.java +4923 -0
  117. data/src/main/java/processing/data/TableRow.java +198 -0
  118. data/src/main/java/processing/data/XML.java +1149 -0
  119. data/src/main/java/processing/event/Event.java +108 -0
  120. data/src/main/java/processing/event/KeyEvent.java +70 -0
  121. data/src/main/java/processing/event/MouseEvent.java +149 -0
  122. data/src/main/java/processing/event/TouchEvent.java +57 -0
  123. data/src/main/java/processing/javafx/PGraphicsFX2D.java +354 -0
  124. data/src/main/java/processing/opengl/FontTexture.java +379 -0
  125. data/src/main/java/processing/opengl/FrameBuffer.java +503 -0
  126. data/src/main/java/processing/opengl/LinePath.java +623 -0
  127. data/src/main/java/processing/opengl/LineStroker.java +685 -0
  128. data/src/main/java/processing/opengl/PGL.java +3366 -0
  129. data/src/main/java/processing/opengl/PGraphics2D.java +615 -0
  130. data/src/main/java/processing/opengl/PGraphics3D.java +281 -0
  131. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +13634 -0
  132. data/src/main/java/processing/opengl/PJOGL.java +1966 -0
  133. data/src/main/java/processing/opengl/PShader.java +1478 -0
  134. data/src/main/java/processing/opengl/PShapeOpenGL.java +5234 -0
  135. data/src/main/java/processing/opengl/PSurfaceJOGL.java +1315 -0
  136. data/src/main/java/processing/opengl/Texture.java +1670 -0
  137. data/src/main/java/processing/opengl/VertexBuffer.java +88 -0
  138. data/src/main/java/processing/opengl/cursors/arrow.png +0 -0
  139. data/src/main/java/processing/opengl/cursors/cross.png +0 -0
  140. data/src/main/java/processing/opengl/cursors/hand.png +0 -0
  141. data/src/main/java/processing/opengl/cursors/license.txt +27 -0
  142. data/src/main/java/processing/opengl/cursors/move.png +0 -0
  143. data/src/main/java/processing/opengl/cursors/text.png +0 -0
  144. data/src/main/java/processing/opengl/cursors/wait.png +0 -0
  145. data/src/main/java/processing/opengl/shaders/ColorFrag.glsl +32 -0
  146. data/src/main/java/processing/opengl/shaders/ColorVert.glsl +34 -0
  147. data/src/main/java/processing/opengl/shaders/LightFrag.glsl +33 -0
  148. data/src/main/java/processing/opengl/shaders/LightVert-vc4.glsl +154 -0
  149. data/src/main/java/processing/opengl/shaders/LightVert.glsl +151 -0
  150. data/src/main/java/processing/opengl/shaders/LineFrag.glsl +32 -0
  151. data/src/main/java/processing/opengl/shaders/LineVert.glsl +100 -0
  152. data/src/main/java/processing/opengl/shaders/MaskFrag.glsl +40 -0
  153. data/src/main/java/processing/opengl/shaders/PointFrag.glsl +32 -0
  154. data/src/main/java/processing/opengl/shaders/PointVert.glsl +56 -0
  155. data/src/main/java/processing/opengl/shaders/TexFrag.glsl +37 -0
  156. data/src/main/java/processing/opengl/shaders/TexLightFrag.glsl +37 -0
  157. data/src/main/java/processing/opengl/shaders/TexLightVert-vc4.glsl +160 -0
  158. data/src/main/java/processing/opengl/shaders/TexLightVert.glsl +157 -0
  159. data/src/main/java/processing/opengl/shaders/TexVert.glsl +38 -0
  160. data/src/main/resources/icon/icon-1024.png +0 -0
  161. data/src/main/resources/icon/icon-128.png +0 -0
  162. data/src/main/resources/icon/icon-16.png +0 -0
  163. data/src/main/resources/icon/icon-256.png +0 -0
  164. data/src/main/resources/icon/icon-32.png +0 -0
  165. data/src/main/resources/icon/icon-48.png +0 -0
  166. data/src/main/resources/icon/icon-512.png +0 -0
  167. data/src/main/resources/icon/icon-64.png +0 -0
  168. data/src/main/resources/license.txt +508 -0
  169. data/test/create_test.rb +68 -0
  170. data/test/deglut_spec_test.rb +24 -0
  171. data/test/helper_methods_test.rb +58 -0
  172. data/test/math_tool_test.rb +75 -0
  173. data/test/respond_to_test.rb +215 -0
  174. data/test/sketches/key_event.rb +37 -0
  175. data/test/sketches/library/my_library/my_library.rb +32 -0
  176. data/test/test_helper.rb +3 -0
  177. data/test/vecmath_spec_test.rb +522 -0
  178. data/vendors/Rakefile +127 -0
  179. metadata +289 -0
@@ -0,0 +1,108 @@
1
+ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
+
3
+ /*
4
+ Part of the Processing project - http://processing.org
5
+
6
+ Copyright (c) 2012 The Processing Foundation
7
+
8
+ This library is free software; you can redistribute it and/or
9
+ modify it under the terms of the GNU Lesser General Public
10
+ License as published by the Free Software Foundation, version 2.1.
11
+
12
+ This library 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 GNU
15
+ Lesser General Public License for more details.
16
+
17
+ You should have received a copy of the GNU Lesser General
18
+ Public License along with this library; if not, write to the
19
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
+ Boston, MA 02111-1307 USA
21
+ */
22
+ package processing.event;
23
+
24
+ public class Event {
25
+
26
+ protected Object nativeObject;
27
+
28
+ protected long millis;
29
+ protected int action;
30
+
31
+ // These correspond to the java.awt.Event modifiers (not to be confused with
32
+ // the newer getModifiersEx), though they're not guaranteed to in the future.
33
+ static public final int SHIFT = 1;
34
+ static public final int CTRL = 1 << 1;
35
+ static public final int META = 1 << 2;
36
+ static public final int ALT = 1 << 3;
37
+ protected int modifiers;
38
+
39
+ // Types of events. As with all constants in Processing, brevity's preferred.
40
+ static public final int KEY = 1;
41
+ static public final int MOUSE = 2;
42
+ static public final int TOUCH = 3;
43
+ protected int flavor;
44
+
45
+ public Event(Object nativeObject, long millis, int action, int modifiers) {
46
+ this.nativeObject = nativeObject;
47
+ this.millis = millis;
48
+ this.action = action;
49
+ this.modifiers = modifiers;
50
+ }
51
+
52
+ public int getFlavor() {
53
+ return flavor;
54
+ }
55
+
56
+ /**
57
+ * Get the platform-native event object. This might be the java.awt event on
58
+ * the desktop, though if you're using OpenGL on the desktop it'll be a NEWT
59
+ * event that JOGL uses. Android events are something else altogether.
60
+ * Bottom line, use this only if you know what you're doing, and don't make
61
+ * assumptions about the class type.
62
+ *
63
+ * @return
64
+ */
65
+ public Object getNative() {
66
+ return nativeObject;
67
+ }
68
+
69
+ // public void setNative(Object nativeObject) {
70
+ // this.nativeObject = nativeObject;
71
+ // }
72
+ public long getMillis() {
73
+ return millis;
74
+ }
75
+
76
+ // public void setMillis(long millis) {
77
+ // this.millis = millis;
78
+ // }
79
+ public int getAction() {
80
+ return action;
81
+ }
82
+
83
+ // public void setAction(int action) {
84
+ // this.action = action;
85
+ // }
86
+ public int getModifiers() {
87
+ return modifiers;
88
+ }
89
+
90
+ // public void setModifiers(int modifiers) {
91
+ // this.modifiers = modifiers;
92
+ // }
93
+ public boolean isShiftDown() {
94
+ return (modifiers & SHIFT) != 0;
95
+ }
96
+
97
+ public boolean isControlDown() {
98
+ return (modifiers & CTRL) != 0;
99
+ }
100
+
101
+ public boolean isMetaDown() {
102
+ return (modifiers & META) != 0;
103
+ }
104
+
105
+ public boolean isAltDown() {
106
+ return (modifiers & ALT) != 0;
107
+ }
108
+ }
@@ -0,0 +1,70 @@
1
+ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
+
3
+ /*
4
+ Part of the Processing project - http://processing.org
5
+
6
+ Copyright (c) 2012 The Processing Foundation
7
+
8
+ This library is free software; you can redistribute it and/or
9
+ modify it under the terms of the GNU Lesser General Public
10
+ License as published by the Free Software Foundation, version 2.1.
11
+
12
+ This library 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 GNU
15
+ Lesser General Public License for more details.
16
+
17
+ You should have received a copy of the GNU Lesser General
18
+ Public License along with this library; if not, write to the
19
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
+ Boston, MA 02111-1307 USA
21
+ */
22
+
23
+ package processing.event;
24
+
25
+
26
+ public class KeyEvent extends Event {
27
+ static public final int PRESS = 1;
28
+ static public final int RELEASE = 2;
29
+ static public final int TYPE = 3;
30
+
31
+ char key;
32
+ int keyCode;
33
+
34
+ boolean isAutoRepeat;
35
+
36
+
37
+ public KeyEvent(Object nativeObject,
38
+ long millis, int action, int modifiers,
39
+ char key, int keyCode) {
40
+ super(nativeObject, millis, action, modifiers);
41
+ this.flavor = KEY;
42
+ this.key = key;
43
+ this.keyCode = keyCode;
44
+ }
45
+
46
+ public KeyEvent(Object nativeObject,
47
+ long millis, int action, int modifiers,
48
+ char key, int keyCode, boolean isAutoRepeat) {
49
+ super(nativeObject, millis, action, modifiers);
50
+ this.flavor = KEY;
51
+ this.key = key;
52
+ this.keyCode = keyCode;
53
+ this.isAutoRepeat = isAutoRepeat;
54
+ }
55
+
56
+
57
+ public char getKey() {
58
+ return key;
59
+ }
60
+
61
+
62
+ public int getKeyCode() {
63
+ return keyCode;
64
+ }
65
+
66
+
67
+ public boolean isAutoRepeat() {
68
+ return isAutoRepeat;
69
+ }
70
+ }
@@ -0,0 +1,149 @@
1
+ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
+
3
+ /*
4
+ Part of the Processing project - http://processing.org
5
+
6
+ Copyright (c) 2012 The Processing Foundation
7
+
8
+ This library is free software; you can redistribute it and/or
9
+ modify it under the terms of the GNU Lesser General Public
10
+ License as published by the Free Software Foundation, version 2.1.
11
+
12
+ This library 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 GNU
15
+ Lesser General Public License for more details.
16
+
17
+ You should have received a copy of the GNU Lesser General
18
+ Public License along with this library; if not, write to the
19
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
+ Boston, MA 02111-1307 USA
21
+ */
22
+ package processing.event;
23
+
24
+ //import processing.core.PConstants;
25
+ public class MouseEvent extends Event {
26
+
27
+ static public final int PRESS = 1;
28
+ static public final int RELEASE = 2;
29
+ static public final int CLICK = 3;
30
+ static public final int DRAG = 4;
31
+ static public final int MOVE = 5;
32
+ static public final int ENTER = 6;
33
+ static public final int EXIT = 7;
34
+ static public final int WHEEL = 8;
35
+
36
+ protected int x, y;
37
+ protected int button;
38
+ // protected int clickCount;
39
+ // protected float amount;
40
+ protected int count;
41
+
42
+ // public MouseEvent(int x, int y) {
43
+ // this(null,
44
+ // System.currentTimeMillis(), PRESSED, 0,
45
+ // x, y, PConstants.LEFT, 1);
46
+ // }
47
+ public MouseEvent(Object nativeObject,
48
+ long millis, int action, int modifiers,
49
+ int x, int y, int button, int count) { //float amount) { //int clickCount) {
50
+ super(nativeObject, millis, action, modifiers);
51
+ this.flavor = MOUSE;
52
+ this.x = x;
53
+ this.y = y;
54
+ this.button = button;
55
+ //this.clickCount = clickCount;
56
+ //this.amount = amount;
57
+ this.count = count;
58
+ }
59
+
60
+ public int getX() {
61
+ return x;
62
+ }
63
+
64
+ public int getY() {
65
+ return y;
66
+ }
67
+
68
+ /**
69
+ * Which button was pressed, either LEFT, CENTER, or RIGHT.
70
+ *
71
+ * @return
72
+ */
73
+ public int getButton() {
74
+ return button;
75
+ }
76
+
77
+ // public void setButton(int button) {
78
+ // this.button = button;
79
+ // }
80
+ /**
81
+ * Do not use, getCount() is the correct method.
82
+ *
83
+ * @return
84
+ */
85
+ @Deprecated
86
+ public int getClickCount() {
87
+ //return (int) amount; //clickCount;
88
+ return count;
89
+ }
90
+
91
+ /**
92
+ * Do not use, getCount() is the correct method.
93
+ *
94
+ * @return
95
+ */
96
+ @Deprecated
97
+ public float getAmount() {
98
+ //return amount;
99
+ return count;
100
+ }
101
+
102
+ /**
103
+ * Number of clicks for mouse button events, or the number of steps
104
+ * (positive or negative depending on direction) for a mouse wheel event.
105
+ * Wheel events follow Java (see
106
+ * <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation()">here</a>),
107
+ * so getAmount() will return "negative values if the mouse wheel was
108
+ * rotated up or away from the user" and positive values in the other
109
+ * direction. On Mac OS X, this will be reversed when "natural" scrolling is
110
+ * enabled in System Preferences &rarr Mouse.
111
+ *
112
+ * @return
113
+ */
114
+ public int getCount() {
115
+ return count;
116
+ }
117
+
118
+ // public void setClickCount(int clickCount) {
119
+ // this.clickCount = clickCount;
120
+ // }
121
+ private String actionString() {
122
+ switch (action) {
123
+ default:
124
+ return "UNKNOWN";
125
+ case CLICK:
126
+ return "CLICK";
127
+ case DRAG:
128
+ return "DRAG";
129
+ case ENTER:
130
+ return "ENTER";
131
+ case EXIT:
132
+ return "EXIT";
133
+ case MOVE:
134
+ return "MOVE";
135
+ case PRESS:
136
+ return "PRESS";
137
+ case RELEASE:
138
+ return "RELEASE";
139
+ case WHEEL:
140
+ return "WHEEL";
141
+ }
142
+ }
143
+
144
+ @Override
145
+ public String toString() {
146
+ return String.format("<MouseEvent %s@%d,%d count:%d button:%d>",
147
+ actionString(), x, y, count, button);
148
+ }
149
+ }
@@ -0,0 +1,57 @@
1
+ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
+
3
+ /*
4
+ Part of the Processing project - http://processing.org
5
+
6
+ Copyright (c) 2012 The Processing Foundation
7
+
8
+ This library is free software; you can redistribute it and/or
9
+ modify it under the terms of the GNU Lesser General Public
10
+ License as published by the Free Software Foundation, version 2.1.
11
+
12
+ This library 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 GNU
15
+ Lesser General Public License for more details.
16
+
17
+ You should have received a copy of the GNU Lesser General
18
+ Public License along with this library; if not, write to the
19
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
+ Boston, MA 02111-1307 USA
21
+ */
22
+
23
+ package processing.event;
24
+
25
+
26
+ // PLACEHOLDER CLASS: DO NOT USE. IT HAS NOT EVEN DECIDED WHETHER
27
+ // THIS WILL BE CALLED TOUCHEVENT ONCE IT'S FINISHED.
28
+
29
+ /*
30
+ http://developer.android.com/guide/topics/ui/ui-events.html
31
+ http://developer.android.com/reference/android/view/MotionEvent.html
32
+ http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/TouchEventClassReference/TouchEvent/TouchEvent.html
33
+ http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIGestureRecognizer_Class/Reference/Reference.html#//apple_ref/occ/cl/UIGestureRecognizer
34
+
35
+ Apple's high-level gesture names:
36
+ tap
37
+ pinch
38
+ rotate
39
+ swipe
40
+ pan
41
+ longpress
42
+
43
+ W3C touch events
44
+ http://www.w3.org/TR/touch-events/
45
+ http://www.w3.org/TR/2011/WD-touch-events-20110913/
46
+
47
+ Pointer and gesture events (Windows)
48
+ http://msdn.microsoft.com/en-US/library/ie/hh673557.aspx
49
+
50
+ */
51
+ public class TouchEvent extends Event {
52
+
53
+ public TouchEvent(Object nativeObject, long millis, int action, int modifiers) {
54
+ super(nativeObject, millis, action, modifiers);
55
+ this.flavor = TOUCH;
56
+ }
57
+ }
@@ -0,0 +1,354 @@
1
+ package processing.javafx;
2
+
3
+ import processing.core.PGraphics;
4
+ import processing.core.PImage;
5
+ import processing.core.PMatrix;
6
+ import processing.core.PMatrix2D;
7
+ import processing.core.PMatrix3D;
8
+ import processing.core.PShape;
9
+ import processing.core.PSurface;
10
+
11
+ public class PGraphicsFX2D extends PGraphics{
12
+ final String message = "FX2D renderer not supported in this version of propane";
13
+ public PGraphicsFX2D(){
14
+ }
15
+
16
+
17
+ public void applyMatrix(float n00, float n01, float n02, float n10, float n11, float n12) {
18
+ throw new UnsupportedOperationException(message);
19
+ }
20
+
21
+
22
+ 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) {
23
+ throw new UnsupportedOperationException(message);
24
+ }
25
+
26
+ protected void backgroundImpl(){
27
+ throw new UnsupportedOperationException(message);
28
+ }
29
+
30
+ public void beginContour() {
31
+ throw new UnsupportedOperationException(message);
32
+ }
33
+
34
+
35
+ public void beginDraw() {
36
+ throw new UnsupportedOperationException(message);
37
+ }
38
+
39
+
40
+ public void beginShape(int kind) {
41
+ throw new UnsupportedOperationException(message);
42
+ }
43
+
44
+
45
+ public void bezierDetail(int detail) {
46
+ throw new UnsupportedOperationException(message);
47
+ }
48
+
49
+
50
+ public void bezierVertex(float x1, float y1, float x2, float y2, float x3, float y3) {
51
+ throw new UnsupportedOperationException(message);
52
+ }
53
+
54
+
55
+ public void bezierVertex(float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) {
56
+ throw new UnsupportedOperationException(message);
57
+ }
58
+
59
+
60
+ public void box(float w, float h, float d) {
61
+ throw new UnsupportedOperationException(message);
62
+ }
63
+
64
+
65
+ public PSurface createSurface() {
66
+ throw new UnsupportedOperationException(message);
67
+ }
68
+
69
+
70
+ public void curveDetail(int detail) {
71
+ throw new UnsupportedOperationException(message);
72
+ }
73
+
74
+
75
+ public void curveVertex(float x, float y, float z) {
76
+ throw new UnsupportedOperationException(message);
77
+ }
78
+
79
+
80
+ public void endContour() {
81
+ throw new UnsupportedOperationException(message);
82
+ }
83
+
84
+
85
+ public void endDraw() {
86
+ throw new UnsupportedOperationException(message);
87
+ }
88
+
89
+
90
+ public void endShape(int mode) {
91
+ throw new UnsupportedOperationException(message);
92
+ }
93
+
94
+
95
+ public void flush() {
96
+ throw new UnsupportedOperationException(message);
97
+ }
98
+
99
+
100
+ public int get(int x, int y) {
101
+ throw new UnsupportedOperationException(message);
102
+ }
103
+
104
+
105
+ public PMatrix getMatrix() {
106
+ throw new UnsupportedOperationException(message);
107
+ }
108
+
109
+
110
+ public PMatrix2D getMatrix(PMatrix2D target) {
111
+ throw new UnsupportedOperationException(message);
112
+ }
113
+
114
+
115
+ public PMatrix3D getMatrix(PMatrix3D target) {
116
+ throw new UnsupportedOperationException(message);
117
+ }
118
+
119
+
120
+ public Object getNative() {
121
+ throw new UnsupportedOperationException(message);
122
+ }
123
+
124
+
125
+ public void line(float x1, float y1, float x2, float y2) {
126
+ throw new UnsupportedOperationException(message);
127
+ }
128
+
129
+
130
+ public void loadPixels() {
131
+ throw new UnsupportedOperationException(message);
132
+ }
133
+
134
+
135
+ public PShape loadShape(String filename) {
136
+ throw new UnsupportedOperationException(message);
137
+ }
138
+
139
+
140
+ public PShape loadShape(String filename, String options) {
141
+ throw new UnsupportedOperationException(message);
142
+ }
143
+
144
+
145
+ public void mask(PImage alpha) {
146
+ throw new UnsupportedOperationException(message);
147
+ }
148
+
149
+
150
+ public void noClip() {
151
+ throw new UnsupportedOperationException(message);
152
+ }
153
+
154
+
155
+ public void point(float x, float y) {
156
+ throw new UnsupportedOperationException(message);
157
+ }
158
+
159
+
160
+ public void popMatrix() {
161
+ throw new UnsupportedOperationException(message);
162
+ }
163
+
164
+
165
+ public void printMatrix() {
166
+ throw new UnsupportedOperationException(message);
167
+ }
168
+
169
+
170
+ public void pushMatrix() {
171
+ throw new UnsupportedOperationException(message);
172
+ }
173
+
174
+
175
+ public void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) {
176
+ throw new UnsupportedOperationException(message);
177
+ }
178
+
179
+
180
+ public void quadraticVertex(float ctrlX, float ctrlY, float endX, float endY) {
181
+ throw new UnsupportedOperationException(message);
182
+ }
183
+
184
+
185
+ public void quadraticVertex(float x2, float y2, float z2, float x4, float y4, float z4) {
186
+ throw new UnsupportedOperationException(message);
187
+ }
188
+
189
+
190
+ public void resetMatrix() {
191
+ throw new UnsupportedOperationException(message);
192
+ }
193
+
194
+
195
+ public void rotate(float angle) {
196
+ throw new UnsupportedOperationException(message);
197
+ }
198
+
199
+
200
+ public void rotate(float angle, float vx, float vy, float vz) {
201
+ throw new UnsupportedOperationException(message);
202
+ }
203
+
204
+
205
+ public void rotateX(float angle) {
206
+ throw new UnsupportedOperationException(message);
207
+ }
208
+
209
+
210
+ public void rotateY(float angle) {
211
+ throw new UnsupportedOperationException(message);
212
+ }
213
+
214
+
215
+ public void rotateZ(float angle) {
216
+ throw new UnsupportedOperationException(message);
217
+ }
218
+
219
+
220
+ public void scale(float s) {
221
+ throw new UnsupportedOperationException(message);
222
+ }
223
+
224
+
225
+ public void scale(float sx, float sy) {
226
+ throw new UnsupportedOperationException(message);
227
+ }
228
+
229
+
230
+ public void scale(float sx, float sy, float sz) {
231
+ throw new UnsupportedOperationException(message);
232
+ }
233
+
234
+
235
+ public float screenX(float x, float y) {
236
+ throw new UnsupportedOperationException(message);
237
+ }
238
+
239
+
240
+ public float screenX(float x, float y, float z) {
241
+ throw new UnsupportedOperationException(message);
242
+ }
243
+
244
+
245
+ public float screenY(float x, float y) {
246
+ throw new UnsupportedOperationException(message);
247
+ }
248
+
249
+
250
+ public float screenY(float x, float y, float z) {
251
+ throw new UnsupportedOperationException(message);
252
+ }
253
+
254
+
255
+ public float screenZ(float x, float y, float z) {
256
+ throw new UnsupportedOperationException(message);
257
+ }
258
+
259
+
260
+ public void set(int x, int y, int argb) {
261
+ throw new UnsupportedOperationException(message);
262
+ }
263
+
264
+
265
+ public void setMatrix(PMatrix2D source) {
266
+ throw new UnsupportedOperationException(message);
267
+ }
268
+
269
+
270
+ public void setMatrix(PMatrix3D source) {
271
+ throw new UnsupportedOperationException(message);
272
+ }
273
+
274
+
275
+ public void shearX(float angle) {
276
+ throw new UnsupportedOperationException(message);
277
+ }
278
+
279
+
280
+ public void shearY(float angle) {
281
+ throw new UnsupportedOperationException(message);
282
+ }
283
+
284
+
285
+ public void sphere(float r) {
286
+ throw new UnsupportedOperationException(message);
287
+ }
288
+
289
+
290
+ public void strokeCap(int cap) {
291
+ throw new UnsupportedOperationException(message);
292
+ }
293
+
294
+
295
+ public void strokeJoin(int join) {
296
+ throw new UnsupportedOperationException(message);
297
+ }
298
+
299
+
300
+ public void strokeWeight(float weight) {
301
+ throw new UnsupportedOperationException(message);
302
+ }
303
+
304
+
305
+ public float textAscent() {
306
+ throw new UnsupportedOperationException(message);
307
+ }
308
+
309
+
310
+ public float textDescent() {
311
+ throw new UnsupportedOperationException(message);
312
+ }
313
+
314
+
315
+ public void texture(PImage image) {
316
+ throw new UnsupportedOperationException(message);
317
+ }
318
+
319
+
320
+ public void translate(float tx, float ty) {
321
+ throw new UnsupportedOperationException(message);
322
+ }
323
+
324
+
325
+ public void triangle(float x1, float y1, float x2, float y2, float x3, float y3) {
326
+ throw new UnsupportedOperationException(message);
327
+ }
328
+
329
+
330
+ public void vertex(float x, float y) {
331
+ throw new UnsupportedOperationException(message);
332
+ }
333
+
334
+
335
+ public void vertex(float x, float y, float z) {
336
+ throw new UnsupportedOperationException(message);
337
+ }
338
+
339
+
340
+ public void vertex(float[] v) {
341
+ throw new UnsupportedOperationException(message);
342
+ }
343
+
344
+
345
+ public void vertex(float x, float y, float u, float v) {
346
+ throw new UnsupportedOperationException(message);
347
+ }
348
+
349
+
350
+ public void vertex(float x, float y, float z, float u, float v) {
351
+ throw new UnsupportedOperationException(message);
352
+ }
353
+
354
+ }