processing.mode.java

## Class AutoFormat

- Object
- - AutoFormat

- All Implemented Interfaces:
    Formatter

      public class AutoFormat
      extends Object
      implements Formatter

  Handler for dealing with auto format. Contributed by Martin Gomez, additional bug fixes by Ben Fry. Additional fixes by Jonathan Feinberg in March 2010.

  After some further digging, this code in fact appears to be a modified version of Jason Pell's GPLed "Java Beautifier" class found here, which is itself based on code from Van Di-Han Ho from here. [Ben Fry, August 2009]

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AutoFormat()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `format(String source)`

    - ### Methods inherited from class Object

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

- - ### Constructor Detail

    - #### AutoFormat

          public AutoFormat()

  - ### Method Detail

    - #### format

          public String format(String source)

      Specified by:
        `format` in interface `Formatter`