<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <TITLE> Editor </TITLE> <META NAME="keywords" CONTENT="processing.app.Editor class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="Editor"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../processing/app/Commander.html" title="class in processing.app"><B>PREV CLASS</B></A> <A HREF="../../processing/app/EditorConsole.html" title="class in processing.app"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?processing/app/Editor.html" target="_top"><B>FRAMES</B></A> <A HREF="Editor.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_javax.swing.JFrame">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> processing.app</FONT> <BR> Class Editor</H2> <PRE> java.lang.Object <IMG SRC="../../resources/inherit.gif" ALT="extended by ">java.awt.Component <IMG SRC="../../resources/inherit.gif" ALT="extended by ">java.awt.Container <IMG SRC="../../resources/inherit.gif" ALT="extended by ">java.awt.Window <IMG SRC="../../resources/inherit.gif" ALT="extended by ">java.awt.Frame <IMG SRC="../../resources/inherit.gif" ALT="extended by ">javax.swing.JFrame <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>processing.app.Editor</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, <A HREF="../../processing/app/debug/RunnerListener.html" title="interface in processing.app.debug">RunnerListener</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>Editor</B><DT>extends javax.swing.JFrame<DT>implements <A HREF="../../processing/app/debug/RunnerListener.html" title="interface in processing.app.debug">RunnerListener</A></DL> </PRE> <P> Main editor panel for the Processing Development Environment. <P> <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#processing.app.Editor">Serialized Form</A></DL> <HR> <P> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> </TABLE> <A NAME="fields_inherited_from_class_javax.swing.JFrame"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class javax.swing.JFrame</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>EXIT_ON_CLOSE</CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_java.awt.Frame"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class java.awt.Frame</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR</CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from class java.awt.Component</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_javax.swing.WindowConstants"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from interface javax.swing.WindowConstants</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE</CODE></TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Fields inherited from interface java.awt.image.ImageObserver</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../processing/app/Editor.html#Editor(processing.app.Base, java.lang.String, int[])">Editor</A></B>(<A HREF="../../processing/app/Base.html" title="class in processing.app">Base</A> ibase, java.lang.String path, int[] location)</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getCaretOffset()">getCaretOffset</A></B>()</CODE> <BR> Get the position (character offset) of the caret.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getLineCount()">getLineCount</A></B>()</CODE> <BR> Get the number of lines in the currently displayed buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getLineStartOffset(int)">getLineStartOffset</A></B>(int line)</CODE> <BR> Get character offset for the start of a given line of text.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getLineStopOffset(int)">getLineStopOffset</A></B>(int line)</CODE> <BR> Get character offset for end of a given line of text.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getLineText(int)">getLineText</A></B>(int line)</CODE> <BR> Get text for a specified line.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.awt.Dimension</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getMinimumSize()">getMinimumSize</A></B>()</CODE> <BR> Hack for #@#)$(* Mac OS X 10.2.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getScrollPosition()">getScrollPosition</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getSelectedText()">getSelectedText</A></B>()</CODE> <BR> Called to update the text but not switch to a different set of code (which would affect the undo manager).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getSelectionStart()">getSelectionStart</A></B>()</CODE> <BR> Get the beginning point of the current selection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getSelectionStop()">getSelectionStop</A></B>()</CODE> <BR> Get the end point of the current selection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../processing/app/Sketch.html" title="class in processing.app">Sketch</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getSketch()">getSketch</A></B>()</CODE> <BR> Gets the current sketch object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.awt.Point</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getSketchLocation()">getSketchLocation</A></B>()</CODE> <BR> Get the last location of the sketch's run window.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getText()">getText</A></B>()</CODE> <BR> Get the contents of the current buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getText(int, int)">getText</A></B>(int start, int stop)</CODE> <BR> Get a range of text from the current buffer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../processing/app/syntax/JEditTextArea.html" title="class in processing.app.syntax">JEditTextArea</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#getTextArea()">getTextArea</A></B>()</CODE> <BR> Get the JEditTextArea object for use (not recommended).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleCopy()">handleCopy</A></B>()</CODE> <BR> Implements Edit → Copy.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleCut()">handleCut</A></B>()</CODE> <BR> Implements Edit → Cut.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleExport()">handleExport</A></B>()</CODE> <BR> Called by Sketch → Export.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleExportApplication()">handleExportApplication</A></B>()</CODE> <BR> Handler for Sketch → Export Application</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handlePageSetup()">handlePageSetup</A></B>()</CODE> <BR> Handler for File → Page Setup.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handlePaste()">handlePaste</A></B>()</CODE> <BR> Implements Edit → Paste.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handlePrint()">handlePrint</A></B>()</CODE> <BR> Handler for File → Print.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleRun(boolean)">handleRun</A></B>(boolean present)</CODE> <BR> Implements Sketch → Run.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleSave(boolean)">handleSave</A></B>(boolean immediately)</CODE> <BR> Actually handle the save command.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleSaveAs()">handleSaveAs</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleSelectAll()">handleSelectAll</A></B>()</CODE> <BR> Implements Edit → Select All.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#handleStop()">handleStop</A></B>()</CODE> <BR> Implements Sketch → Stop, or pressing Stop on the toolbar.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#insertText(java.lang.String)">insertText</A></B>(java.lang.String what)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#internalCloseRunner()">internalCloseRunner</A></B>()</CODE> <BR> Handle internal shutdown of the runner.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#internalRunnerClosed()">internalRunnerClosed</A></B>()</CODE> <BR> Called by Runner to notify that the sketch has stopped running.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#isSelectionActive()">isSelectionActive</A></B>()</CODE> <BR> True if some text is currently selected.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static javax.swing.JMenuItem</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#newJMenuItem(java.lang.String, int)">newJMenuItem</A></B>(java.lang.String title, int what)</CODE> <BR> A software engineer, somewhere, needs to have his abstraction taken away.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static javax.swing.JMenuItem</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#newJMenuItemAlt(java.lang.String, int)">newJMenuItemAlt</A></B>(java.lang.String title, int what)</CODE> <BR> Same as newJMenuItem(), but adds the ALT (on Linux and Windows) or OPTION (on Mac OS X) key as a modifier.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static javax.swing.JMenuItem</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#newJMenuItemShift(java.lang.String, int)">newJMenuItemShift</A></B>(java.lang.String title, int what)</CODE> <BR> Like newJMenuItem() but adds shift as a modifier for the key command.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#setLineText(int, java.lang.String)">setLineText</A></B>(int line, java.lang.String what)</CODE> <BR> Replace the text on a specified line.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#setSelectedText(java.lang.String)">setSelectedText</A></B>(java.lang.String what)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#setSelection(int, int)">setSelection</A></B>(int start, int stop)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#setSketchLocation(java.awt.Point)">setSketchLocation</A></B>(java.awt.Point p)</CODE> <BR> Set the location of the sketch run window.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#setText(java.lang.String)">setText</A></B>(java.lang.String what)</CODE> <BR> Replace the entire contents of the front-most tab.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#startCompoundEdit()">startCompoundEdit</A></B>()</CODE> <BR> Use before a manipulating text to group editing operations together as a single undo.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#statusEmpty()">statusEmpty</A></B>()</CODE> <BR> Clear the status area.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#statusError(java.lang.Exception)">statusError</A></B>(java.lang.Exception e)</CODE> <BR> Show an exception in the editor status bar.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#statusError(java.lang.String)">statusError</A></B>(java.lang.String what)</CODE> <BR> Show an error int the status bar.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#statusNotice(java.lang.String)">statusNotice</A></B>(java.lang.String msg)</CODE> <BR> Show a notice message in the editor status bar.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../processing/app/Editor.html#stopCompoundEdit()">stopCompoundEdit</A></B>()</CODE> <BR> Use with startCompoundEdit() to group edit operations in a single undo.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_javax.swing.JFrame"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class javax.swing.JFrame</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, update</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.awt.Frame"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.awt.Frame</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.awt.Window"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.awt.Window</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.awt.Container</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.awt.Component</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.awt.MenuContainer"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface java.awt.MenuContainer</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>getFont, postEvent</CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="Editor(processing.app.Base, java.lang.String, int[])"><!-- --></A><H3> Editor</H3> <PRE> public <B>Editor</B>(<A HREF="../../processing/app/Base.html" title="class in processing.app">Base</A> ibase, java.lang.String path, int[] location)</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="getMinimumSize()"><!-- --></A><H3> getMinimumSize</H3> <PRE> public java.awt.Dimension <B>getMinimumSize</B>()</PRE> <DL> <DD>Hack for #@#)$(* Mac OS X 10.2. <p/> This appears to only be required on OS X 10.2, and is not even being called on later versions of OS X or Windows. <P> <DD><DL> <DT><B>Overrides:</B><DD><CODE>getMinimumSize</CODE> in class <CODE>java.awt.Container</CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="newJMenuItem(java.lang.String, int)"><!-- --></A><H3> newJMenuItem</H3> <PRE> public static javax.swing.JMenuItem <B>newJMenuItem</B>(java.lang.String title, int what)</PRE> <DL> <DD>A software engineer, somewhere, needs to have his abstraction taken away. In some countries they jail or beat people for writing the sort of API that would require a five line helper function just to set the command key for a menu item. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="newJMenuItemShift(java.lang.String, int)"><!-- --></A><H3> newJMenuItemShift</H3> <PRE> public static javax.swing.JMenuItem <B>newJMenuItemShift</B>(java.lang.String title, int what)</PRE> <DL> <DD>Like newJMenuItem() but adds shift as a modifier for the key command. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="newJMenuItemAlt(java.lang.String, int)"><!-- --></A><H3> newJMenuItemAlt</H3> <PRE> public static javax.swing.JMenuItem <B>newJMenuItemAlt</B>(java.lang.String title, int what)</PRE> <DL> <DD>Same as newJMenuItem(), but adds the ALT (on Linux and Windows) or OPTION (on Mac OS X) key as a modifier. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSketch()"><!-- --></A><H3> getSketch</H3> <PRE> public <A HREF="../../processing/app/Sketch.html" title="class in processing.app">Sketch</A> <B>getSketch</B>()</PRE> <DL> <DD>Gets the current sketch object. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getTextArea()"><!-- --></A><H3> getTextArea</H3> <PRE> public <A HREF="../../processing/app/syntax/JEditTextArea.html" title="class in processing.app.syntax">JEditTextArea</A> <B>getTextArea</B>()</PRE> <DL> <DD>Get the JEditTextArea object for use (not recommended). This should only be used in obscure cases that really need to hack the internals of the JEditTextArea. Most tools should only interface via the get/set functions found in this class. This will maintain compatibility with future releases, which will not use JEditTextArea. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getText()"><!-- --></A><H3> getText</H3> <PRE> public java.lang.String <B>getText</B>()</PRE> <DL> <DD>Get the contents of the current buffer. Used by the Sketch class. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getText(int, int)"><!-- --></A><H3> getText</H3> <PRE> public java.lang.String <B>getText</B>(int start, int stop)</PRE> <DL> <DD>Get a range of text from the current buffer. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setText(java.lang.String)"><!-- --></A><H3> setText</H3> <PRE> public void <B>setText</B>(java.lang.String what)</PRE> <DL> <DD>Replace the entire contents of the front-most tab. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="insertText(java.lang.String)"><!-- --></A><H3> insertText</H3> <PRE> public void <B>insertText</B>(java.lang.String what)</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSelectedText()"><!-- --></A><H3> getSelectedText</H3> <PRE> public java.lang.String <B>getSelectedText</B>()</PRE> <DL> <DD>Called to update the text but not switch to a different set of code (which would affect the undo manager). <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setSelectedText(java.lang.String)"><!-- --></A><H3> setSelectedText</H3> <PRE> public void <B>setSelectedText</B>(java.lang.String what)</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setSelection(int, int)"><!-- --></A><H3> setSelection</H3> <PRE> public void <B>setSelection</B>(int start, int stop)</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getCaretOffset()"><!-- --></A><H3> getCaretOffset</H3> <PRE> public int <B>getCaretOffset</B>()</PRE> <DL> <DD>Get the position (character offset) of the caret. With text selected, this will be the last character actually selected, no matter the direction of the selection. That is, if the user clicks and drags to select lines 7 up to 4, then the caret position will be somewhere on line four. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isSelectionActive()"><!-- --></A><H3> isSelectionActive</H3> <PRE> public boolean <B>isSelectionActive</B>()</PRE> <DL> <DD>True if some text is currently selected. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSelectionStart()"><!-- --></A><H3> getSelectionStart</H3> <PRE> public int <B>getSelectionStart</B>()</PRE> <DL> <DD>Get the beginning point of the current selection. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSelectionStop()"><!-- --></A><H3> getSelectionStop</H3> <PRE> public int <B>getSelectionStop</B>()</PRE> <DL> <DD>Get the end point of the current selection. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getLineText(int)"><!-- --></A><H3> getLineText</H3> <PRE> public java.lang.String <B>getLineText</B>(int line)</PRE> <DL> <DD>Get text for a specified line. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setLineText(int, java.lang.String)"><!-- --></A><H3> setLineText</H3> <PRE> public void <B>setLineText</B>(int line, java.lang.String what)</PRE> <DL> <DD>Replace the text on a specified line. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getLineStartOffset(int)"><!-- --></A><H3> getLineStartOffset</H3> <PRE> public int <B>getLineStartOffset</B>(int line)</PRE> <DL> <DD>Get character offset for the start of a given line of text. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getLineStopOffset(int)"><!-- --></A><H3> getLineStopOffset</H3> <PRE> public int <B>getLineStopOffset</B>(int line)</PRE> <DL> <DD>Get character offset for end of a given line of text. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getLineCount()"><!-- --></A><H3> getLineCount</H3> <PRE> public int <B>getLineCount</B>()</PRE> <DL> <DD>Get the number of lines in the currently displayed buffer. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="startCompoundEdit()"><!-- --></A><H3> startCompoundEdit</H3> <PRE> public void <B>startCompoundEdit</B>()</PRE> <DL> <DD>Use before a manipulating text to group editing operations together as a single undo. Use stopCompoundEdit() once finished. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="stopCompoundEdit()"><!-- --></A><H3> stopCompoundEdit</H3> <PRE> public void <B>stopCompoundEdit</B>()</PRE> <DL> <DD>Use with startCompoundEdit() to group edit operations in a single undo. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getScrollPosition()"><!-- --></A><H3> getScrollPosition</H3> <PRE> public int <B>getScrollPosition</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleCut()"><!-- --></A><H3> handleCut</H3> <PRE> public void <B>handleCut</B>()</PRE> <DL> <DD>Implements Edit → Cut. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleCopy()"><!-- --></A><H3> handleCopy</H3> <PRE> public void <B>handleCopy</B>()</PRE> <DL> <DD>Implements Edit → Copy. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handlePaste()"><!-- --></A><H3> handlePaste</H3> <PRE> public void <B>handlePaste</B>()</PRE> <DL> <DD>Implements Edit → Paste. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleSelectAll()"><!-- --></A><H3> handleSelectAll</H3> <PRE> public void <B>handleSelectAll</B>()</PRE> <DL> <DD>Implements Edit → Select All. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleRun(boolean)"><!-- --></A><H3> handleRun</H3> <PRE> public void <B>handleRun</B>(boolean present)</PRE> <DL> <DD>Implements Sketch → Run. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>present</CODE> - Set true to run in full screen (present mode).</DL> </DD> </DL> <HR> <A NAME="setSketchLocation(java.awt.Point)"><!-- --></A><H3> setSketchLocation</H3> <PRE> public void <B>setSketchLocation</B>(java.awt.Point p)</PRE> <DL> <DD>Set the location of the sketch run window. Used by Runner to update the Editor about window drag events while the sketch is running. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSketchLocation()"><!-- --></A><H3> getSketchLocation</H3> <PRE> public java.awt.Point <B>getSketchLocation</B>()</PRE> <DL> <DD>Get the last location of the sketch's run window. Used by Runner to make the window show up in the same location as when it was last closed. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleStop()"><!-- --></A><H3> handleStop</H3> <PRE> public void <B>handleStop</B>()</PRE> <DL> <DD>Implements Sketch → Stop, or pressing Stop on the toolbar. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="internalRunnerClosed()"><!-- --></A><H3> internalRunnerClosed</H3> <PRE> public void <B>internalRunnerClosed</B>()</PRE> <DL> <DD>Called by Runner to notify that the sketch has stopped running. Tools should not call this function, use handleStop() instead. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="internalCloseRunner()"><!-- --></A><H3> internalCloseRunner</H3> <PRE> public void <B>internalCloseRunner</B>()</PRE> <DL> <DD>Handle internal shutdown of the runner. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleSave(boolean)"><!-- --></A><H3> handleSave</H3> <PRE> public boolean <B>handleSave</B>(boolean immediately)</PRE> <DL> <DD>Actually handle the save command. If 'immediately' is set to false, this will happen in another thread so that the message area will update and the save button will stay highlighted while the save is happening. If 'immediately' is true, then it will happen immediately. This is used during a quit, because invokeLater() won't run properly while a quit is happening. This fixes <A HREF="http://dev.processing.org/bugs/show_bug.cgi?id=276">Bug 276</A>. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleSaveAs()"><!-- --></A><H3> handleSaveAs</H3> <PRE> public boolean <B>handleSaveAs</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleExport()"><!-- --></A><H3> handleExport</H3> <PRE> public void <B>handleExport</B>()</PRE> <DL> <DD>Called by Sketch → Export. Handles calling the export() function on sketch, and queues all the gui status stuff that comes along with it. <p/> Made synchronized to (hopefully) avoid problems of people hitting export twice, quickly, and horking things up. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handleExportApplication()"><!-- --></A><H3> handleExportApplication</H3> <PRE> public void <B>handleExportApplication</B>()</PRE> <DL> <DD>Handler for Sketch → Export Application <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handlePageSetup()"><!-- --></A><H3> handlePageSetup</H3> <PRE> public void <B>handlePageSetup</B>()</PRE> <DL> <DD>Handler for File → Page Setup. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="handlePrint()"><!-- --></A><H3> handlePrint</H3> <PRE> public void <B>handlePrint</B>()</PRE> <DL> <DD>Handler for File → Print. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="statusError(java.lang.String)"><!-- --></A><H3> statusError</H3> <PRE> public void <B>statusError</B>(java.lang.String what)</PRE> <DL> <DD>Show an error int the status bar. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../processing/app/debug/RunnerListener.html#statusError(java.lang.String)">statusError</A></CODE> in interface <CODE><A HREF="../../processing/app/debug/RunnerListener.html" title="interface in processing.app.debug">RunnerListener</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="statusError(java.lang.Exception)"><!-- --></A><H3> statusError</H3> <PRE> public void <B>statusError</B>(java.lang.Exception e)</PRE> <DL> <DD>Show an exception in the editor status bar. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../processing/app/debug/RunnerListener.html#statusError(java.lang.Exception)">statusError</A></CODE> in interface <CODE><A HREF="../../processing/app/debug/RunnerListener.html" title="interface in processing.app.debug">RunnerListener</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="statusNotice(java.lang.String)"><!-- --></A><H3> statusNotice</H3> <PRE> public void <B>statusNotice</B>(java.lang.String msg)</PRE> <DL> <DD>Show a notice message in the editor status bar. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="statusEmpty()"><!-- --></A><H3> statusEmpty</H3> <PRE> public void <B>statusEmpty</B>()</PRE> <DL> <DD>Clear the status area. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../processing/app/Commander.html" title="class in processing.app"><B>PREV CLASS</B></A> <A HREF="../../processing/app/EditorConsole.html" title="class in processing.app"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?processing/app/Editor.html" target="_top"><B>FRAMES</B></A> <A HREF="Editor.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_javax.swing.JFrame">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>