net.returnvoid.tools

## Class ProcessingTools

- java.lang.Object
- - net.returnvoid.tools.ProcessingTools

-     public class ProcessingTools
      extends java.lang.Object

  This class tries to provide solutions which occur when using Processing's different versions. The main problem of the miscellaneous versions is that some attributes and methods have changes (or their visibility).
  Author:
    Diana Lange

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProcessingTools()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `getProcessingVersion(processing.core.PApplet parent)` Returns the release number (1, 2, 3) of Processing for the given PApplet object.
    `static java.lang.String` | `getSketchPath(processing.core.PApplet parent)` Returns the sketchPath (the absolute location of the current sketch).

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ProcessingTools

          public ProcessingTools()

  - ### Method Detail

    - #### getSketchPath

          public static java.lang.String getSketchPath(processing.core.PApplet parent)

      Returns the sketchPath (the absolute location of the current sketch). This needs to be called since Processing 3.0 and later uses PApplet.sketchPath() and earlier releases uses PAppler.sketchPath.
      Parameters:
        `parent` - The PApplet object.
      Returns:
        The path of the sketch.

    - #### getProcessingVersion

          public static int getProcessingVersion(processing.core.PApplet parent)

      Returns the release number (1, 2, 3) of Processing for the given PApplet object.
      Parameters:
        `parent` - The PApplet object.
      Returns:
        The version number.