processing.app.tools
Class DiscourseFormat

java.lang.Object
  extended by processing.app.tools.DiscourseFormat

public class DiscourseFormat
extends java.lang.Object

Format for Discourse Tool

Original code by owd. Revised and updated for revision 0108 by Ben Fry (10 March 2006). This code may later be moved to its own 'Tool' plugin, but is included with release 0108+ while features for the "Tools" menu are in testing.

Updated for 0122 to simply copy the code directly to the clipboard, rather than opening a new window.

Updated for 0144 to only format the selected lines.

Notes from the original source: Discourse.java This is a dirty-mix source. NOTE that: No macs and no keyboard. Unreliable source. Only format processing code using fontMetrics. It works under my windows XP + PentiumIV + Processing 0091.


Constructor Summary
DiscourseFormat(Editor editor)
          Creates a new window with the formated (YaBB tags) sketchcode from the actual Processing Tab ready to send to the processing discourse web (copy & paste)
 
Method Summary
 void appendFormattedLine(java.lang.StringBuffer cf, int line)
           
 void show()
          Format and render sketch code.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscourseFormat

public DiscourseFormat(Editor editor)
Creates a new window with the formated (YaBB tags) sketchcode from the actual Processing Tab ready to send to the processing discourse web (copy & paste)

Method Detail

show

public void show()
Format and render sketch code.


appendFormattedLine

public void appendFormattedLine(java.lang.StringBuffer cf,
                                int line)