<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0) on Wed Nov 22 10:48:24 MSK 2006 --> <TITLE> TextColorer </TITLE> <META NAME="keywords" CONTENT="net.sf.colorer.swt.TextColorer class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="TextColorer"; } </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="../../../../net/sf/colorer/swt/ColorManager.html" title="class in net.sf.colorer.swt"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/colorer/swt/TextColorer.html" target="_top"><B>FRAMES</B></A> <A HREF="TextColorer.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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"> net.sf.colorer.swt</FONT> <BR> Class TextColorer</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.colorer.swt.TextColorer</B> </PRE> <HR> <DL> <DT><PRE>public class <B>TextColorer</B><DT>extends java.lang.Object</DL> </PRE> <P> StyledText listener implementation with syntax highlighting support using Colorer library. <a href='http://colorer.sf.net/'>http://colorer.sf.net/</a> <P> <P> <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> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#HLS_OUTLINE">HLS_OUTLINE</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#HLS_OUTLINE2">HLS_OUTLINE2</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#HLS_XOR">HLS_XOR</A></B></CODE> <BR> </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="../../../../net/sf/colorer/swt/TextColorer.html#TextColorer(net.sf.colorer.ParserFactory, net.sf.colorer.swt.ColorManager)">TextColorer</A></B>(<A HREF="../../../../net/sf/colorer/ParserFactory.html" title="class in net.sf.colorer">ParserFactory</A> pf, <A HREF="../../../../net/sf/colorer/swt/ColorManager.html" title="class in net.sf.colorer.swt">ColorManager</A> cm)</CODE> <BR> Common TextColorer creation constructor.</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="../../../../net/sf/colorer/swt/TextColorer.html#addRegionHandler(net.sf.colorer.RegionHandler)">addRegionHandler</A></B>(<A HREF="../../../../net/sf/colorer/RegionHandler.html" title="interface in net.sf.colorer">RegionHandler</A> rh)</CODE> <BR> Installs specified handler into parse process.</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="../../../../net/sf/colorer/swt/TextColorer.html#attach(StyledText)">attach</A></B>(StyledText parent)</CODE> <BR> Installs this highlighter into the specified StyledText object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/colorer/FileType.html" title="class in net.sf.colorer">FileType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#chooseFileType(java.lang.String)">chooseFileType</A></B>(java.lang.String filename)</CODE> <BR> Selects and installs coloring style (filetype) according to filename string and current first line of text.</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="../../../../net/sf/colorer/swt/TextColorer.html#detach()">detach</A></B>()</CODE> <BR> Removes this object from the corresponding StyledText widget.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/colorer/editor/BaseEditor.html" title="interface in net.sf.colorer.editor">BaseEditor</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#getBaseEditor()">getBaseEditor</A></B>()</CODE> <BR> Returns current low-level BaseEditor object implementation</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/colorer/handlers/LineRegion.html" title="class in net.sf.colorer.handlers">LineRegion</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#getCaretRegion()">getCaretRegion</A></B>()</CODE> <BR> Retrieves current LineRegion under caret.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/colorer/FileType.html" title="class in net.sf.colorer">FileType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#getFileType()">getFileType</A></B>()</CODE> <BR> Returns currently used file type.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/colorer/ParserFactory.html" title="class in net.sf.colorer">ParserFactory</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/colorer/swt/TextColorer.html#getParserFactory()">getParserFactory</A></B>()</CODE> <BR> Returns currently used ParserFactory object</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="../../../../net/sf/colorer/swt/TextColorer.html#getVisibleEnd()">getVisibleEnd</A></B>()</CODE> <BR> Returns visible text end line</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="../../../../net/sf/colorer/swt/TextColorer.html#getVisibleStart()">getVisibleStart</A></B>()</CODE> <BR> Returns visible text start line</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="../../../../net/sf/colorer/swt/TextColorer.html#matchPair()">matchPair</A></B>()</CODE> <BR> Moves caret to the position of currently active pair.</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="../../../../net/sf/colorer/swt/TextColorer.html#modifyEvent(int)">modifyEvent</A></B>(int lno)</CODE> <BR> Tells parser that there were some modifications in source text.</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="../../../../net/sf/colorer/swt/TextColorer.html#pairAvailable()">pairAvailable</A></B>()</CODE> <BR> Checks if caret positioned on highlighted pair.</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="../../../../net/sf/colorer/swt/TextColorer.html#removeRegionHandler(net.sf.colorer.RegionHandler)">removeRegionHandler</A></B>(<A HREF="../../../../net/sf/colorer/RegionHandler.html" title="interface in net.sf.colorer">RegionHandler</A> rh)</CODE> <BR> Removes specified handler from the parse process.</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="../../../../net/sf/colorer/swt/TextColorer.html#selectContentPair()">selectContentPair</A></B>()</CODE> <BR> Selects an internal part of the currently selected paired content</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="../../../../net/sf/colorer/swt/TextColorer.html#selectPair()">selectPair</A></B>()</CODE> <BR> Selects a content of the currently positioned pair.</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="../../../../net/sf/colorer/swt/TextColorer.html#setCross(boolean, boolean)">setCross</A></B>(boolean horz, boolean vert)</CODE> <BR> Specifies visibility of cross at the cursor position.</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="../../../../net/sf/colorer/swt/TextColorer.html#setFileType(net.sf.colorer.FileType)">setFileType</A></B>(<A HREF="../../../../net/sf/colorer/FileType.html" title="class in net.sf.colorer">FileType</A> typename)</CODE> <BR> Selects and installs specified file type.</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="../../../../net/sf/colorer/swt/TextColorer.html#setFullBackground(boolean)">setFullBackground</A></B>(boolean full)</CODE> <BR> Inlined languages background coloring.</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="../../../../net/sf/colorer/swt/TextColorer.html#setPairsPainter(boolean, int)">setPairsPainter</A></B>(boolean paint, int style)</CODE> <BR> Paint paired constructions or not.</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="../../../../net/sf/colorer/swt/TextColorer.html#setRegionMapper(net.sf.colorer.handlers.RegionMapper, boolean)">setRegionMapper</A></B>(<A HREF="../../../../net/sf/colorer/handlers/RegionMapper.html" title="class in net.sf.colorer.handlers">RegionMapper</A> regionMapper, boolean useBackground)</CODE> <BR> Changes style/coloring scheme into the specified.</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="../../../../net/sf/colorer/swt/TextColorer.html#setRegionMapper(java.lang.String, boolean)">setRegionMapper</A></B>(java.lang.String hrdName, boolean useBackground)</CODE> <BR> Changes style/coloring scheme into the specified.</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="../../../../net/sf/colorer/swt/TextColorer.html#stateChanged()">stateChanged</A></B>()</CODE> <BR> Informs colorer about visible state change of the editor</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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_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>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="HLS_XOR"><!-- --></A><H3> HLS_XOR</H3> <PRE> public static final int <B>HLS_XOR</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="HLS_OUTLINE"><!-- --></A><H3> HLS_OUTLINE</H3> <PRE> public static final int <B>HLS_OUTLINE</B></PRE> <DL> <DL> </DL> </DL> <HR> <A NAME="HLS_OUTLINE2"><!-- --></A><H3> HLS_OUTLINE2</H3> <PRE> public static final int <B>HLS_OUTLINE2</B></PRE> <DL> <DL> </DL> </DL> <!-- ========= 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="TextColorer(net.sf.colorer.ParserFactory, net.sf.colorer.swt.ColorManager)"><!-- --></A><H3> TextColorer</H3> <PRE> public <B>TextColorer</B>(<A HREF="../../../../net/sf/colorer/ParserFactory.html" title="class in net.sf.colorer">ParserFactory</A> pf, <A HREF="../../../../net/sf/colorer/swt/ColorManager.html" title="class in net.sf.colorer.swt">ColorManager</A> cm)</PRE> <DL> <DD>Common TextColorer creation constructor. Creates TextColorer object, which is to be attached to the StyledText widget. <P> <DL> <DT><B>Parameters:</B><DD><CODE>pf</CODE> - Parser factory, used to create all coloring text parsers.<DD><CODE>cm</CODE> - Color Manager, used to store cached color objects</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="attach(StyledText)"><!-- --></A><H3> attach</H3> <PRE> public void <B>attach</B>(StyledText parent)</PRE> <DL> <DD>Installs this highlighter into the specified StyledText object. Client can manually call detach() method, then wants to destroy this object. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="detach()"><!-- --></A><H3> detach</H3> <PRE> public void <B>detach</B>()</PRE> <DL> <DD>Removes this object from the corresponding StyledText widget. Object can't be used after this call, until another attach. This method is called automatically, when StyledText widget is disposed <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="chooseFileType(java.lang.String)"><!-- --></A><H3> chooseFileType</H3> <PRE> public <A HREF="../../../../net/sf/colorer/FileType.html" title="class in net.sf.colorer">FileType</A> <B>chooseFileType</B>(java.lang.String filename)</PRE> <DL> <DD>Selects and installs coloring style (filetype) according to filename string and current first line of text. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>filename</CODE> - File name to be used to autodetect filetype</DL> </DD> </DL> <HR> <A NAME="setFileType(net.sf.colorer.FileType)"><!-- --></A><H3> setFileType</H3> <PRE> public void <B>setFileType</B>(<A HREF="../../../../net/sf/colorer/FileType.html" title="class in net.sf.colorer">FileType</A> typename)</PRE> <DL> <DD>Selects and installs specified file type. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>typename</CODE> - Name or description of HRC filetype.</DL> </DD> </DL> <HR> <A NAME="getFileType()"><!-- --></A><H3> getFileType</H3> <PRE> public <A HREF="../../../../net/sf/colorer/FileType.html" title="class in net.sf.colorer">FileType</A> <B>getFileType</B>()</PRE> <DL> <DD>Returns currently used file type. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getParserFactory()"><!-- --></A><H3> getParserFactory</H3> <PRE> public <A HREF="../../../../net/sf/colorer/ParserFactory.html" title="class in net.sf.colorer">ParserFactory</A> <B>getParserFactory</B>()</PRE> <DL> <DD>Returns currently used ParserFactory object <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getBaseEditor()"><!-- --></A><H3> getBaseEditor</H3> <PRE> public <A HREF="../../../../net/sf/colorer/editor/BaseEditor.html" title="interface in net.sf.colorer.editor">BaseEditor</A> <B>getBaseEditor</B>()</PRE> <DL> <DD>Returns current low-level BaseEditor object implementation <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setRegionMapper(net.sf.colorer.handlers.RegionMapper, boolean)"><!-- --></A><H3> setRegionMapper</H3> <PRE> public void <B>setRegionMapper</B>(<A HREF="../../../../net/sf/colorer/handlers/RegionMapper.html" title="class in net.sf.colorer.handlers">RegionMapper</A> regionMapper, boolean useBackground)</PRE> <DL> <DD>Changes style/coloring scheme into the specified. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>regionMapper</CODE> - External RegionMapper object<DD><CODE>useBackground</CODE> - If true, native HRD background properties would be assigned to colored StyledText.</DL> </DD> </DL> <HR> <A NAME="setRegionMapper(java.lang.String, boolean)"><!-- --></A><H3> setRegionMapper</H3> <PRE> public void <B>setRegionMapper</B>(java.lang.String hrdName, boolean useBackground)</PRE> <DL> <DD>Changes style/coloring scheme into the specified. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of color scheme (HRD name).<DD><CODE>useBackground</CODE> - If true, native HRD background properties would be assigned to colored StyledText.</DL> </DD> </DL> <HR> <A NAME="setFullBackground(boolean)"><!-- --></A><H3> setFullBackground</H3> <PRE> public void <B>setFullBackground</B>(boolean full)</PRE> <DL> <DD>Inlined languages background coloring. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>full</CODE> - If true, background color of other language insertions (jsp, php) would be painted till end of line. If false, only text will be painted with marked color.</DL> </DD> </DL> <HR> <A NAME="setCross(boolean, boolean)"><!-- --></A><H3> setCross</H3> <PRE> public void <B>setCross</B>(boolean horz, boolean vert)</PRE> <DL> <DD>Specifies visibility of cross at the cursor position. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>vert</CODE> - Not used</DL> </DD> </DL> <HR> <A NAME="setPairsPainter(boolean, int)"><!-- --></A><H3> setPairsPainter</H3> <PRE> public void <B>setPairsPainter</B>(boolean paint, int style)</PRE> <DL> <DD>Paint paired constructions or not. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>paint</CODE> - Paint Matched pairs or not.<DD><CODE>style</CODE> - One of TextColorer.HLS_XOR, TextColorer.HLS_OUTLINE or TextColorer.HLS_OUTLINE2</DL> </DD> </DL> <HR> <A NAME="pairAvailable()"><!-- --></A><H3> pairAvailable</H3> <PRE> public boolean <B>pairAvailable</B>()</PRE> <DL> <DD>Checks if caret positioned on highlighted pair. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="matchPair()"><!-- --></A><H3> matchPair</H3> <PRE> public boolean <B>matchPair</B>()</PRE> <DL> <DD>Moves caret to the position of currently active pair. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="selectPair()"><!-- --></A><H3> selectPair</H3> <PRE> public boolean <B>selectPair</B>()</PRE> <DL> <DD>Selects a content of the currently positioned pair. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="selectContentPair()"><!-- --></A><H3> selectContentPair</H3> <PRE> public boolean <B>selectContentPair</B>()</PRE> <DL> <DD>Selects an internal part of the currently selected paired content <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getVisibleStart()"><!-- --></A><H3> getVisibleStart</H3> <PRE> public int <B>getVisibleStart</B>()</PRE> <DL> <DD>Returns visible text start line <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getVisibleEnd()"><!-- --></A><H3> getVisibleEnd</H3> <PRE> public int <B>getVisibleEnd</B>()</PRE> <DL> <DD>Returns visible text end line <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getCaretRegion()"><!-- --></A><H3> getCaretRegion</H3> <PRE> public <A HREF="../../../../net/sf/colorer/handlers/LineRegion.html" title="class in net.sf.colorer.handlers">LineRegion</A> <B>getCaretRegion</B>()</PRE> <DL> <DD>Retrieves current LineRegion under caret. <P> <DD><DL> <DT><B>Returns:</B><DD>LineRegion currently under Caret</DL> </DD> </DL> <HR> <A NAME="addRegionHandler(net.sf.colorer.RegionHandler)"><!-- --></A><H3> addRegionHandler</H3> <PRE> public void <B>addRegionHandler</B>(<A HREF="../../../../net/sf/colorer/RegionHandler.html" title="interface in net.sf.colorer">RegionHandler</A> rh)</PRE> <DL> <DD>Installs specified handler into parse process. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="removeRegionHandler(net.sf.colorer.RegionHandler)"><!-- --></A><H3> removeRegionHandler</H3> <PRE> public void <B>removeRegionHandler</B>(<A HREF="../../../../net/sf/colorer/RegionHandler.html" title="interface in net.sf.colorer">RegionHandler</A> rh)</PRE> <DL> <DD>Removes specified handler from the parse process. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="stateChanged()"><!-- --></A><H3> stateChanged</H3> <PRE> public void <B>stateChanged</B>()</PRE> <DL> <DD>Informs colorer about visible state change of the editor <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="modifyEvent(int)"><!-- --></A><H3> modifyEvent</H3> <PRE> public void <B>modifyEvent</B>(int lno)</PRE> <DL> <DD>Tells parser that there were some modifications in source text. Causes parser to reparse text again <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>lno</CODE> - Modified line number</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="../../../../net/sf/colorer/swt/ColorManager.html" title="class in net.sf.colorer.swt"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/colorer/swt/TextColorer.html" target="_top"><B>FRAMES</B></A> <A HREF="TextColorer.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="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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> <i>Copyright © 2003 Cail Lomecb. All Rights Reserved.</i> </BODY> </HTML>