@@ -968,16 +968,28 @@ public void eraseForeground() {
968968 this .eraseForegroundBuffer = true ;
969969 }
970970
971+ /**
972+ * Returns the pixels of the foreground buffer.
973+ * @return the pixels of the foreground buffer
974+ */
971975 public int [] getForegroundPixels () {
972976 this .foregroundBuffer .loadPixels ();
973977 return this .foregroundBuffer .pixels ;
974978 }
975979
980+ /**
981+ * Returns the pixels of the background buffer.
982+ * @return the pixels of the background buffer
983+ */
976984 public int [] getBackgroundPixels () {
977985 this .backgroundBuffer .loadPixels ();
978986 return this .backgroundBuffer .pixels ;
979987 }
980988
989+ /**
990+ * Returns the pixels of the main buffer.
991+ * @return the pixels of the main buffer
992+ */
981993 public int [] getPixels () {
982994 this .mainBuffer .loadPixels ();
983995 return this .mainBuffer .pixels ;
@@ -1245,6 +1257,10 @@ public void removeTimer(String name) {
12451257 this .timer .remove (name );
12461258 }
12471259
1260+ /**
1261+ * @ignore-in-docs
1262+ * @param e
1263+ */
12481264 public void mouseEvent (MouseEvent e ) {
12491265 if (e .getAction () == MouseEvent .CLICK ) {
12501266 final MouseCode me ;
@@ -1338,6 +1354,11 @@ public double getMouseY() {
13381354 return this .mouseY ;
13391355 }
13401356
1357+ /**
1358+ * Returns the current position of the mouse cursor as a Vector2
1359+ *
1360+ * @return mouse position
1361+ */
13411362 public Vector2 getMouse () {
13421363 return new Vector2 (this .mouseX , this .mouseY );
13431364 }
@@ -1393,6 +1414,10 @@ public void setWhenKeyReleased(
13931414 this .whenKeyReleasedHandler = whenKeyReleased ;
13941415 }
13951416
1417+ /**
1418+ * @ignore-in-docs
1419+ * @param e
1420+ */
13961421 public void keyEvent (KeyEvent e ) {
13971422 switch (e .getAction ()) {
13981423 case KeyEvent .PRESS :
@@ -1652,6 +1677,11 @@ public void wait(int millis) {
16521677 }
16531678 }
16541679
1680+ /**
1681+ * Get the frame rate of the application.
1682+ *
1683+ * @return the frame rate
1684+ */
16551685 public double getFrameRate () {
16561686 return Applet .getInstance ().frameRate ;
16571687 }
@@ -1674,28 +1704,48 @@ public void run() {
16741704 this .runHandler .handle (this );
16751705 }
16761706
1707+ /**
1708+ * @ignore-in-docs
1709+ * @param stamp
1710+ */
16771711 public void addStampsToForeground (Stamp stamp ) {
16781712 if (stamp == null ) {
16791713 return ;
16801714 }
16811715 this .foregroundStamps .add (stamp );
16821716 }
16831717
1718+ /**
1719+ * @ignore-in-docs
1720+ * @param stamps
1721+ */
16841722 public void addStampsToForeground (Queue <Stamp > stamps ) {
16851723 this .foregroundStamps .addAll (stamps );
16861724 }
16871725
1726+ /**
1727+ * @ignore-in-docs
1728+ * @param stamp
1729+ */
16881730 public void addStampsToBackground (Stamp stamp ) {
16891731 if (stamp == null ) {
16901732 return ;
16911733 }
16921734 this .backgroundStamps .add (stamp );
16931735 }
16941736
1737+ /**
1738+ * @ignore-in-docs
1739+ * @param stamps
1740+ */
16951741 public void addStampsToBackground (Queue <Stamp > stamps ) {
16961742 this .backgroundStamps .addAll (stamps );
16971743 }
16981744
1745+ /**
1746+ * @ignore-in-docs
1747+ * @param stamp
1748+ */
16991749 void addStampsToUI (Stamp stamp ) {
17001750 if (stamp == null ) {
17011751 return ;
@@ -1712,6 +1762,9 @@ public void setRun(RunHandler run) {
17121762 this .runHandler = run ;
17131763 }
17141764
1765+ /**
1766+ * @ignore-in-docs
1767+ */
17151768 public void pre () {
17161769 Applet applet = Applet .getInstance ();
17171770 if (applet == null )
@@ -1746,6 +1799,10 @@ public void exit() {
17461799 Window .getInstance ().exit ();
17471800 }
17481801
1802+ /**
1803+ * @ignore-in-docs
1804+ * @param buffer
1805+ */
17491806 public void draw (PGraphics buffer ) {
17501807 Applet applet = Applet .getInstance ();
17511808 if (applet == null || buffer == null )
0 commit comments