| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <TITLE> |
| TextAreaPainter |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="processing.app.syntax.TextAreaPainter class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="TextAreaPainter"; |
| } |
| </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/syntax/TextAreaDefaults.html" title="class in processing.app.syntax"><B>PREV CLASS</B></A> |
| <A HREF="../../../processing/app/syntax/TextAreaPainter.Highlight.html" title="interface in processing.app.syntax"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../index.html?processing/app/syntax/TextAreaPainter.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="TextAreaPainter.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_javax.swing.JComponent">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.syntax</FONT> |
| <BR> |
| Class TextAreaPainter</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 ">javax.swing.JComponent |
| <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>processing.app.syntax.TextAreaPainter</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.io.Serializable, javax.swing.text.TabExpander</DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>TextAreaPainter</B><DT>extends javax.swing.JComponent<DT>implements javax.swing.text.TabExpander, java.awt.print.Printable</DL> |
| </PRE> |
| |
| <P> |
| The text area repaint manager. It performs double buffering and paints |
| lines of text. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#processing.app.syntax.TextAreaPainter">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| |
| <A NAME="nested_class_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>Nested Class Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static interface</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.Highlight.html" title="interface in processing.app.syntax">TextAreaPainter.Highlight</A></B></CODE> |
| |
| <BR> |
| Highlight interface.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="nested_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JComponent</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>javax.swing.JComponent.AccessibleJComponent</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- =========== 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.JComponent"><!-- --></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.JComponent</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</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_java.awt.print.Printable"><!-- --></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.print.Printable</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>NO_SUCH_PAGE, PAGE_EXISTS</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/syntax/TextAreaPainter.html#TextAreaPainter(processing.app.syntax.JEditTextArea, processing.app.syntax.TextAreaDefaults)">TextAreaPainter</A></B>(<A HREF="../../../processing/app/syntax/JEditTextArea.html" title="class in processing.app.syntax">JEditTextArea</A> textArea, |
| <A HREF="../../../processing/app/syntax/TextAreaDefaults.html" title="class in processing.app.syntax">TextAreaDefaults</A> defaults)</CODE> |
| |
| <BR> |
| Creates a new repaint manager.</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> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#addCustomHighlight(processing.app.syntax.TextAreaPainter.Highlight)">addCustomHighlight</A></B>(<A HREF="../../../processing/app/syntax/TextAreaPainter.Highlight.html" title="interface in processing.app.syntax">TextAreaPainter.Highlight</A> highlight)</CODE> |
| |
| <BR> |
| Adds a custom highlight painter.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.awt.Color</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getBracketHighlightColor()">getBracketHighlightColor</A></B>()</CODE> |
| |
| <BR> |
| Returns the bracket highlight color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.awt.Color</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getCaretColor()">getCaretColor</A></B>()</CODE> |
| |
| <BR> |
| Returns the caret color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> javax.swing.text.Segment</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getCurrentLine()">getCurrentLine</A></B>()</CODE> |
| |
| <BR> |
| Accessor used by tools that want to hook in and grab the formatting.</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/syntax/TextAreaPainter.html#getCurrentLineIndex()">getCurrentLineIndex</A></B>()</CODE> |
| |
| <BR> |
| Accessor used by tools that want to hook in and grab the formatting.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax">Token</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getCurrentLineTokens()">getCurrentLineTokens</A></B>()</CODE> |
| |
| <BR> |
| Accessor used by tools that want to hook in and grab the formatting.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.awt.Color</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getEOLMarkerColor()">getEOLMarkerColor</A></B>()</CODE> |
| |
| <BR> |
| Returns the EOL marker color.</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/syntax/TextAreaPainter.html#getEOLMarkersPainted()">getEOLMarkersPainted</A></B>()</CODE> |
| |
| <BR> |
| Returns true if EOL markers are drawn, false otherwise.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.awt.FontMetrics</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getFontMetrics()">getFontMetrics</A></B>()</CODE> |
| |
| <BR> |
| Returns the font metrics used by this component.</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/syntax/TextAreaPainter.html#getInvalidLinesPainted()">getInvalidLinesPainted</A></B>()</CODE> |
| |
| <BR> |
| Returns true if invalid lines are painted as red tildes (~), |
| false otherwise.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.awt.Color</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getLineHighlightColor()">getLineHighlightColor</A></B>()</CODE> |
| |
| <BR> |
| Returns the line highlight color.</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/syntax/TextAreaPainter.html#getMinimumSize()">getMinimumSize</A></B>()</CODE> |
| |
| <BR> |
| Returns the painter's minimum size.</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/syntax/TextAreaPainter.html#getPreferredSize()">getPreferredSize</A></B>()</CODE> |
| |
| <BR> |
| Returns the painter's preferred size.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.awt.Color</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getSelectionColor()">getSelectionColor</A></B>()</CODE> |
| |
| <BR> |
| Returns the selection color.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../processing/app/syntax/SyntaxStyle.html" title="class in processing.app.syntax">SyntaxStyle</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#getStyles()">getStyles</A></B>()</CODE> |
| |
| <BR> |
| Returns the syntax styles used to paint colorized 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/syntax/TextAreaPainter.html#getToolTipText(java.awt.event.MouseEvent)">getToolTipText</A></B>(java.awt.event.MouseEvent evt)</CODE> |
| |
| <BR> |
| Returns the tool tip to display at the specified location.</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/syntax/TextAreaPainter.html#invalidateLine(int)">invalidateLine</A></B>(int line)</CODE> |
| |
| <BR> |
| Marks a line as needing a repaint.</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/syntax/TextAreaPainter.html#invalidateLineRange(int, int)">invalidateLineRange</A></B>(int firstLine, |
| int lastLine)</CODE> |
| |
| <BR> |
| Marks a range of lines as needing a repaint.</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/syntax/TextAreaPainter.html#invalidateSelectedLines()">invalidateSelectedLines</A></B>()</CODE> |
| |
| <BR> |
| Repaints the lines containing the selection.</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/syntax/TextAreaPainter.html#isBlockCaretEnabled()">isBlockCaretEnabled</A></B>()</CODE> |
| |
| <BR> |
| Returns true if the caret should be drawn as a block, false otherwise.</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/syntax/TextAreaPainter.html#isBracketHighlightEnabled()">isBracketHighlightEnabled</A></B>()</CODE> |
| |
| <BR> |
| Returns true if bracket highlighting is enabled, false otherwise.</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/syntax/TextAreaPainter.html#isLineHighlightEnabled()">isLineHighlightEnabled</A></B>()</CODE> |
| |
| <BR> |
| Returns true if line highlight is enabled, false otherwise.</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/syntax/TextAreaPainter.html#isManagingFocus()">isManagingFocus</A></B>()</CODE> |
| |
| <BR> |
| Returns if this component can be traversed by pressing the |
| Tab key.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../processing/app/syntax/TextAreaPainter.html#nextTabStop(float, int)">nextTabStop</A></B>(float x, |
| int tabOffset)</CODE> |
| |
| <BR> |
| Implementation of TabExpander interface.</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/syntax/TextAreaPainter.html#paint(java.awt.Graphics)">paint</A></B>(java.awt.Graphics gfx)</CODE> |
| |
| <BR> |
| Repaints the 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/syntax/TextAreaPainter.html#print(java.awt.Graphics, java.awt.print.PageFormat, int)">print</A></B>(java.awt.Graphics g, |
| java.awt.print.PageFormat pageFormat, |
| int pageIndex)</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/syntax/TextAreaPainter.html#setBlockCaretEnabled(boolean)">setBlockCaretEnabled</A></B>(boolean blockCaret)</CODE> |
| |
| <BR> |
| Sets if the caret should be drawn as a block, false otherwise.</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/syntax/TextAreaPainter.html#setBracketHighlightColor(java.awt.Color)">setBracketHighlightColor</A></B>(java.awt.Color bracketHighlightColor)</CODE> |
| |
| <BR> |
| Sets the bracket highlight color.</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/syntax/TextAreaPainter.html#setBracketHighlightEnabled(boolean)">setBracketHighlightEnabled</A></B>(boolean bracketHighlight)</CODE> |
| |
| <BR> |
| Enables or disables bracket highlighting.</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/syntax/TextAreaPainter.html#setCaretColor(java.awt.Color)">setCaretColor</A></B>(java.awt.Color caretColor)</CODE> |
| |
| <BR> |
| Sets the caret color.</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/syntax/TextAreaPainter.html#setCurrentLineIndex(int)">setCurrentLineIndex</A></B>(int what)</CODE> |
| |
| <BR> |
| Accessor used by tools that want to hook in and grab the formatting.</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/syntax/TextAreaPainter.html#setCurrentLineTokens(processing.app.syntax.Token)">setCurrentLineTokens</A></B>(<A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax">Token</A> tokens)</CODE> |
| |
| <BR> |
| Accessor used by tools that want to hook in and grab the formatting.</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/syntax/TextAreaPainter.html#setEOLMarkerColor(java.awt.Color)">setEOLMarkerColor</A></B>(java.awt.Color eolMarkerColor)</CODE> |
| |
| <BR> |
| Sets the EOL marker color.</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/syntax/TextAreaPainter.html#setEOLMarkersPainted(boolean)">setEOLMarkersPainted</A></B>(boolean eolMarkers)</CODE> |
| |
| <BR> |
| Sets if EOL markers are to be drawn.</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/syntax/TextAreaPainter.html#setFont(java.awt.Font)">setFont</A></B>(java.awt.Font font)</CODE> |
| |
| <BR> |
| Sets the font for this component.</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/syntax/TextAreaPainter.html#setInvalidLinesPainted(boolean)">setInvalidLinesPainted</A></B>(boolean paintInvalid)</CODE> |
| |
| <BR> |
| Sets if invalid lines are to be painted as red tildes.</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/syntax/TextAreaPainter.html#setLineHighlightColor(java.awt.Color)">setLineHighlightColor</A></B>(java.awt.Color lineHighlightColor)</CODE> |
| |
| <BR> |
| Sets the line highlight color.</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/syntax/TextAreaPainter.html#setLineHighlightEnabled(boolean)">setLineHighlightEnabled</A></B>(boolean lineHighlight)</CODE> |
| |
| <BR> |
| Enables or disables current line highlighting.</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/syntax/TextAreaPainter.html#setSelectionColor(java.awt.Color)">setSelectionColor</A></B>(java.awt.Color selectionColor)</CODE> |
| |
| <BR> |
| Sets the selection color.</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/syntax/TextAreaPainter.html#setStyles(processing.app.syntax.SyntaxStyle[])">setStyles</A></B>(<A HREF="../../../processing/app/syntax/SyntaxStyle.html" title="class in processing.app.syntax">SyntaxStyle</A>[] styles)</CODE> |
| |
| <BR> |
| Sets the syntax styles used to paint colorized text.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></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.JComponent</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI</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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, 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> |
| |
| <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="TextAreaPainter(processing.app.syntax.JEditTextArea, processing.app.syntax.TextAreaDefaults)"><!-- --></A><H3> |
| TextAreaPainter</H3> |
| <PRE> |
| public <B>TextAreaPainter</B>(<A HREF="../../../processing/app/syntax/JEditTextArea.html" title="class in processing.app.syntax">JEditTextArea</A> textArea, |
| <A HREF="../../../processing/app/syntax/TextAreaDefaults.html" title="class in processing.app.syntax">TextAreaDefaults</A> defaults)</PRE> |
| <DL> |
| <DD>Creates a new repaint manager. This should be not be called |
| directly. |
| <P> |
| </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="isManagingFocus()"><!-- --></A><H3> |
| isManagingFocus</H3> |
| <PRE> |
| public final boolean <B>isManagingFocus</B>()</PRE> |
| <DL> |
| <DD>Returns if this component can be traversed by pressing the |
| Tab key. This returns false. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>isManagingFocus</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getStyles()"><!-- --></A><H3> |
| getStyles</H3> |
| <PRE> |
| public final <A HREF="../../../processing/app/syntax/SyntaxStyle.html" title="class in processing.app.syntax">SyntaxStyle</A>[] <B>getStyles</B>()</PRE> |
| <DL> |
| <DD>Returns the syntax styles used to paint colorized text. Entry <i>n</i> |
| will be used to paint tokens with id = <i>n</i>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax"><CODE>Token</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setStyles(processing.app.syntax.SyntaxStyle[])"><!-- --></A><H3> |
| setStyles</H3> |
| <PRE> |
| public final void <B>setStyles</B>(<A HREF="../../../processing/app/syntax/SyntaxStyle.html" title="class in processing.app.syntax">SyntaxStyle</A>[] styles)</PRE> |
| <DL> |
| <DD>Sets the syntax styles used to paint colorized text. Entry <i>n</i> |
| will be used to paint tokens with id = <i>n</i>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>styles</CODE> - The syntax styles<DT><B>See Also:</B><DD><A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax"><CODE>Token</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCaretColor()"><!-- --></A><H3> |
| getCaretColor</H3> |
| <PRE> |
| public final java.awt.Color <B>getCaretColor</B>()</PRE> |
| <DL> |
| <DD>Returns the caret color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setCaretColor(java.awt.Color)"><!-- --></A><H3> |
| setCaretColor</H3> |
| <PRE> |
| public final void <B>setCaretColor</B>(java.awt.Color caretColor)</PRE> |
| <DL> |
| <DD>Sets the caret color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>caretColor</CODE> - The caret color</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSelectionColor()"><!-- --></A><H3> |
| getSelectionColor</H3> |
| <PRE> |
| public final java.awt.Color <B>getSelectionColor</B>()</PRE> |
| <DL> |
| <DD>Returns the selection color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setSelectionColor(java.awt.Color)"><!-- --></A><H3> |
| setSelectionColor</H3> |
| <PRE> |
| public final void <B>setSelectionColor</B>(java.awt.Color selectionColor)</PRE> |
| <DL> |
| <DD>Sets the selection color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>selectionColor</CODE> - The selection color</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLineHighlightColor()"><!-- --></A><H3> |
| getLineHighlightColor</H3> |
| <PRE> |
| public final java.awt.Color <B>getLineHighlightColor</B>()</PRE> |
| <DL> |
| <DD>Returns the line highlight color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setLineHighlightColor(java.awt.Color)"><!-- --></A><H3> |
| setLineHighlightColor</H3> |
| <PRE> |
| public final void <B>setLineHighlightColor</B>(java.awt.Color lineHighlightColor)</PRE> |
| <DL> |
| <DD>Sets the line highlight color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>lineHighlightColor</CODE> - The line highlight color</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isLineHighlightEnabled()"><!-- --></A><H3> |
| isLineHighlightEnabled</H3> |
| <PRE> |
| public final boolean <B>isLineHighlightEnabled</B>()</PRE> |
| <DL> |
| <DD>Returns true if line highlight is enabled, false otherwise. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setLineHighlightEnabled(boolean)"><!-- --></A><H3> |
| setLineHighlightEnabled</H3> |
| <PRE> |
| public final void <B>setLineHighlightEnabled</B>(boolean lineHighlight)</PRE> |
| <DL> |
| <DD>Enables or disables current line highlighting. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>lineHighlight</CODE> - True if current line highlight |
| should be enabled, false otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getBracketHighlightColor()"><!-- --></A><H3> |
| getBracketHighlightColor</H3> |
| <PRE> |
| public final java.awt.Color <B>getBracketHighlightColor</B>()</PRE> |
| <DL> |
| <DD>Returns the bracket highlight color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setBracketHighlightColor(java.awt.Color)"><!-- --></A><H3> |
| setBracketHighlightColor</H3> |
| <PRE> |
| public final void <B>setBracketHighlightColor</B>(java.awt.Color bracketHighlightColor)</PRE> |
| <DL> |
| <DD>Sets the bracket highlight color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bracketHighlightColor</CODE> - The bracket highlight color</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isBracketHighlightEnabled()"><!-- --></A><H3> |
| isBracketHighlightEnabled</H3> |
| <PRE> |
| public final boolean <B>isBracketHighlightEnabled</B>()</PRE> |
| <DL> |
| <DD>Returns true if bracket highlighting is enabled, false otherwise. |
| When bracket highlighting is enabled, the bracket matching the |
| one before the caret (if any) is highlighted. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setBracketHighlightEnabled(boolean)"><!-- --></A><H3> |
| setBracketHighlightEnabled</H3> |
| <PRE> |
| public final void <B>setBracketHighlightEnabled</B>(boolean bracketHighlight)</PRE> |
| <DL> |
| <DD>Enables or disables bracket highlighting. |
| When bracket highlighting is enabled, the bracket matching the |
| one before the caret (if any) is highlighted. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bracketHighlight</CODE> - True if bracket highlighting should be |
| enabled, false otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isBlockCaretEnabled()"><!-- --></A><H3> |
| isBlockCaretEnabled</H3> |
| <PRE> |
| public final boolean <B>isBlockCaretEnabled</B>()</PRE> |
| <DL> |
| <DD>Returns true if the caret should be drawn as a block, false otherwise. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setBlockCaretEnabled(boolean)"><!-- --></A><H3> |
| setBlockCaretEnabled</H3> |
| <PRE> |
| public final void <B>setBlockCaretEnabled</B>(boolean blockCaret)</PRE> |
| <DL> |
| <DD>Sets if the caret should be drawn as a block, false otherwise. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>blockCaret</CODE> - True if the caret should be drawn as a block, |
| false otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEOLMarkerColor()"><!-- --></A><H3> |
| getEOLMarkerColor</H3> |
| <PRE> |
| public final java.awt.Color <B>getEOLMarkerColor</B>()</PRE> |
| <DL> |
| <DD>Returns the EOL marker color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setEOLMarkerColor(java.awt.Color)"><!-- --></A><H3> |
| setEOLMarkerColor</H3> |
| <PRE> |
| public final void <B>setEOLMarkerColor</B>(java.awt.Color eolMarkerColor)</PRE> |
| <DL> |
| <DD>Sets the EOL marker color. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>eolMarkerColor</CODE> - The EOL marker color</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEOLMarkersPainted()"><!-- --></A><H3> |
| getEOLMarkersPainted</H3> |
| <PRE> |
| public final boolean <B>getEOLMarkersPainted</B>()</PRE> |
| <DL> |
| <DD>Returns true if EOL markers are drawn, false otherwise. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setEOLMarkersPainted(boolean)"><!-- --></A><H3> |
| setEOLMarkersPainted</H3> |
| <PRE> |
| public final void <B>setEOLMarkersPainted</B>(boolean eolMarkers)</PRE> |
| <DL> |
| <DD>Sets if EOL markers are to be drawn. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>eolMarkers</CODE> - True if EOL markers should be drawn, false otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getInvalidLinesPainted()"><!-- --></A><H3> |
| getInvalidLinesPainted</H3> |
| <PRE> |
| public boolean <B>getInvalidLinesPainted</B>()</PRE> |
| <DL> |
| <DD>Returns true if invalid lines are painted as red tildes (~), |
| false otherwise. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setInvalidLinesPainted(boolean)"><!-- --></A><H3> |
| setInvalidLinesPainted</H3> |
| <PRE> |
| public void <B>setInvalidLinesPainted</B>(boolean paintInvalid)</PRE> |
| <DL> |
| <DD>Sets if invalid lines are to be painted as red tildes. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>paintInvalid</CODE> - True if invalid lines should be drawn, false otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="addCustomHighlight(processing.app.syntax.TextAreaPainter.Highlight)"><!-- --></A><H3> |
| addCustomHighlight</H3> |
| <PRE> |
| public void <B>addCustomHighlight</B>(<A HREF="../../../processing/app/syntax/TextAreaPainter.Highlight.html" title="interface in processing.app.syntax">TextAreaPainter.Highlight</A> highlight)</PRE> |
| <DL> |
| <DD>Adds a custom highlight painter. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>highlight</CODE> - The highlight</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getToolTipText(java.awt.event.MouseEvent)"><!-- --></A><H3> |
| getToolTipText</H3> |
| <PRE> |
| public java.lang.String <B>getToolTipText</B>(java.awt.event.MouseEvent evt)</PRE> |
| <DL> |
| <DD>Returns the tool tip to display at the specified location. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>getToolTipText</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>evt</CODE> - The mouse event</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFontMetrics()"><!-- --></A><H3> |
| getFontMetrics</H3> |
| <PRE> |
| public java.awt.FontMetrics <B>getFontMetrics</B>()</PRE> |
| <DL> |
| <DD>Returns the font metrics used by this component. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setFont(java.awt.Font)"><!-- --></A><H3> |
| setFont</H3> |
| <PRE> |
| public void <B>setFont</B>(java.awt.Font font)</PRE> |
| <DL> |
| <DD>Sets the font for this component. This is overridden to update the |
| cached font metrics and to recalculate which lines are visible. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>setFont</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>font</CODE> - The font</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="paint(java.awt.Graphics)"><!-- --></A><H3> |
| paint</H3> |
| <PRE> |
| public void <B>paint</B>(java.awt.Graphics gfx)</PRE> |
| <DL> |
| <DD>Repaints the text. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>paint</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>gfx</CODE> - The graphics context</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="print(java.awt.Graphics, java.awt.print.PageFormat, int)"><!-- --></A><H3> |
| print</H3> |
| <PRE> |
| public int <B>print</B>(java.awt.Graphics g, |
| java.awt.print.PageFormat pageFormat, |
| int pageIndex)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>print</CODE> in interface <CODE>java.awt.print.Printable</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invalidateLine(int)"><!-- --></A><H3> |
| invalidateLine</H3> |
| <PRE> |
| public final void <B>invalidateLine</B>(int line)</PRE> |
| <DL> |
| <DD>Marks a line as needing a repaint. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>line</CODE> - The line to invalidate</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invalidateLineRange(int, int)"><!-- --></A><H3> |
| invalidateLineRange</H3> |
| <PRE> |
| public final void <B>invalidateLineRange</B>(int firstLine, |
| int lastLine)</PRE> |
| <DL> |
| <DD>Marks a range of lines as needing a repaint. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>firstLine</CODE> - The first line to invalidate<DD><CODE>lastLine</CODE> - The last line to invalidate</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="invalidateSelectedLines()"><!-- --></A><H3> |
| invalidateSelectedLines</H3> |
| <PRE> |
| public final void <B>invalidateSelectedLines</B>()</PRE> |
| <DL> |
| <DD>Repaints the lines containing the selection. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="nextTabStop(float, int)"><!-- --></A><H3> |
| nextTabStop</H3> |
| <PRE> |
| public float <B>nextTabStop</B>(float x, |
| int tabOffset)</PRE> |
| <DL> |
| <DD>Implementation of TabExpander interface. Returns next tab stop after |
| a specified point. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>nextTabStop</CODE> in interface <CODE>javax.swing.text.TabExpander</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>x</CODE> - The x co-ordinate<DD><CODE>tabOffset</CODE> - Ignored |
| <DT><B>Returns:</B><DD>The next tab stop after <i>x</i></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPreferredSize()"><!-- --></A><H3> |
| getPreferredSize</H3> |
| <PRE> |
| public java.awt.Dimension <B>getPreferredSize</B>()</PRE> |
| <DL> |
| <DD>Returns the painter's preferred size. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>getPreferredSize</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMinimumSize()"><!-- --></A><H3> |
| getMinimumSize</H3> |
| <PRE> |
| public java.awt.Dimension <B>getMinimumSize</B>()</PRE> |
| <DL> |
| <DD>Returns the painter's minimum size. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>getMinimumSize</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCurrentLineIndex()"><!-- --></A><H3> |
| getCurrentLineIndex</H3> |
| <PRE> |
| public int <B>getCurrentLineIndex</B>()</PRE> |
| <DL> |
| <DD>Accessor used by tools that want to hook in and grab the formatting. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setCurrentLineIndex(int)"><!-- --></A><H3> |
| setCurrentLineIndex</H3> |
| <PRE> |
| public void <B>setCurrentLineIndex</B>(int what)</PRE> |
| <DL> |
| <DD>Accessor used by tools that want to hook in and grab the formatting. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCurrentLineTokens()"><!-- --></A><H3> |
| getCurrentLineTokens</H3> |
| <PRE> |
| public <A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax">Token</A> <B>getCurrentLineTokens</B>()</PRE> |
| <DL> |
| <DD>Accessor used by tools that want to hook in and grab the formatting. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setCurrentLineTokens(processing.app.syntax.Token)"><!-- --></A><H3> |
| setCurrentLineTokens</H3> |
| <PRE> |
| public void <B>setCurrentLineTokens</B>(<A HREF="../../../processing/app/syntax/Token.html" title="class in processing.app.syntax">Token</A> tokens)</PRE> |
| <DL> |
| <DD>Accessor used by tools that want to hook in and grab the formatting. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCurrentLine()"><!-- --></A><H3> |
| getCurrentLine</H3> |
| <PRE> |
| public javax.swing.text.Segment <B>getCurrentLine</B>()</PRE> |
| <DL> |
| <DD>Accessor used by tools that want to hook in and grab the formatting. |
| <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/syntax/TextAreaDefaults.html" title="class in processing.app.syntax"><B>PREV CLASS</B></A> |
| <A HREF="../../../processing/app/syntax/TextAreaPainter.Highlight.html" title="interface in processing.app.syntax"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../index.html?processing/app/syntax/TextAreaPainter.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="TextAreaPainter.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_javax.swing.JComponent">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> |