<!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.6.0_30) on Wed Jan 25 19:03:52 CST 2012 --> | |
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<TITLE> | |
JTextComponentRowHeader (Java Prettify) | |
</TITLE> | |
<META NAME="date" CONTENT="2012-01-25"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
if (location.href.indexOf('is-external=true') == -1) { | |
parent.document.title="JTextComponentRowHeader (Java Prettify)"; | |
} | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<HR> | |
<!-- ========= 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="class-use/JTextComponentRowHeader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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"> | |
PREV CLASS | |
<A HREF="../syntaxhighlight/Parser.html" title="interface in syntaxhighlight"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../index.html?syntaxhighlight/JTextComponentRowHeader.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="JTextComponentRowHeader.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_classes_inherited_from_class_javax.swing.JPanel">NESTED</A> | <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"> | |
syntaxhighlight</FONT> | |
<BR> | |
Class JTextComponentRowHeader</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 ">javax.swing.JPanel | |
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>syntaxhighlight.JTextComponentRowHeader</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD>java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible</DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <B>JTextComponentRowHeader</B><DT>extends javax.swing.JPanel</DL> | |
</PRE> | |
<P> | |
A row header panel for <CODE>JScrollPane</CODE> showing the line numbers of | |
<CODE>JTextComponent</CODE>. | |
The text lines in <CODE>JTextComponent</CODE> must be fixed height. | |
<P> | |
<P> | |
<DL> | |
<DT><B>Author:</B></DT> | |
<DD>Chan Wai Shing <cws1989@gmail.com></DD> | |
<DT><B>See Also:</B><DD><A HREF="../serialized-form.html#syntaxhighlight.JTextComponentRowHeader">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> | |
</TABLE> | |
<A NAME="nested_classes_inherited_from_class_javax.swing.JPanel"><!-- --></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.JPanel</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>javax.swing.JPanel.AccessibleJPanel</CODE></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> | |
| |
<A NAME="nested_classes_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>Nested classes/interfaces inherited from class java.awt.Container</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>java.awt.Container.AccessibleAWTContainer</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<A NAME="nested_classes_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>Nested classes/interfaces inherited from class java.awt.Component</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</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> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.awt.Color</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#borderColor">borderColor</A></B></CODE> | |
<BR> | |
The color of the border that joint the gutter and the script text area.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#borderWidth">borderWidth</A></B></CODE> | |
<BR> | |
The width of the border that joint the gutter and the script text area.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected javax.swing.text.Document</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#document">document</A></B></CODE> | |
<BR> | |
The document of the text component.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected javax.swing.event.DocumentListener</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#documentListener">documentListener</A></B></CODE> | |
<BR> | |
The document listener for <A HREF="../syntaxhighlight/JTextComponentRowHeader.html#document"><CODE>document</CODE></A>.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.awt.Color</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#highlightedColor">highlightedColor</A></B></CODE> | |
<BR> | |
The background of the row when it is highlighted.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.util.List<java.lang.Integer></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#highlightedLineList">highlightedLineList</A></B></CODE> | |
<BR> | |
The list of line numbers that indicate which lines are needed to be | |
highlighted.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#largestRowNumber">largestRowNumber</A></B></CODE> | |
<BR> | |
The cached largest row number (for determine panel width | |
<A HREF="../syntaxhighlight/JTextComponentRowHeader.html#panelWidth"><CODE>panelWidth</CODE></A>).</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#lineNumberOffset">lineNumberOffset</A></B></CODE> | |
<BR> | |
The line number offset.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#listenToDocumentUpdate">listenToDocumentUpdate</A></B></CODE> | |
<BR> | |
Indicator indicate whether it is listening to the document change events | |
or not.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#paddingLeft">paddingLeft</A></B></CODE> | |
<BR> | |
The minimum padding from 'the leftmost of the line number text' to | |
'the left margin'.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#paddingRight">paddingRight</A></B></CODE> | |
<BR> | |
The minimum padding from 'the rightmost of the line number text' to | |
'the right margin' (not to the gutter border).</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#panelWidth">panelWidth</A></B></CODE> | |
<BR> | |
The cached panel width.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected javax.swing.JScrollPane</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#scrollPane">scrollPane</A></B></CODE> | |
<BR> | |
The JScrollPane that it be added into.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.lang.Object</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#textAntiAliasing">textAntiAliasing</A></B></CODE> | |
<BR> | |
The anti-aliasing setting of the line number text.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected javax.swing.text.JTextComponent</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#textComponent">textComponent</A></B></CODE> | |
<BR> | |
The text component to listen the change events on.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected int</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#textComponentHeight">textComponentHeight</A></B></CODE> | |
<BR> | |
The cached text component height, for determine panel height.</TD> | |
</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>accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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.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="../syntaxhighlight/JTextComponentRowHeader.html#JTextComponentRowHeader(javax.swing.JScrollPane, javax.swing.text.JTextComponent)">JTextComponentRowHeader</A></B>(javax.swing.JScrollPane scrollPane, | |
javax.swing.text.JTextComponent textComponent)</CODE> | |
<BR> | |
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> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#addHighlightedLine(int)">addHighlightedLine</A></B>(int lineNumber)</CODE> | |
<BR> | |
Add highlighted 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="../syntaxhighlight/JTextComponentRowHeader.html#checkPanelSize()">checkPanelSize</A></B>()</CODE> | |
<BR> | |
Check whether the height of the row header panel match with the height of | |
the text component 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="../syntaxhighlight/JTextComponentRowHeader.html#clearHighlightedLine()">clearHighlightedLine</A></B>()</CODE> | |
<BR> | |
Clear highlighted lines.</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="../syntaxhighlight/JTextComponentRowHeader.html#getBorderColor()">getBorderColor</A></B>()</CODE> | |
<BR> | |
The color of the border that joint the gutter and the script text area.</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="../syntaxhighlight/JTextComponentRowHeader.html#getBorderWidth()">getBorderWidth</A></B>()</CODE> | |
<BR> | |
The width of the border that joint the gutter and the script text area.</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="../syntaxhighlight/JTextComponentRowHeader.html#getHighlightedColor()">getHighlightedColor</A></B>()</CODE> | |
<BR> | |
The background of the highlighted row.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.util.List<java.lang.Integer></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#getHighlightedLineList()">getHighlightedLineList</A></B>()</CODE> | |
<BR> | |
Get the list of highlighted lines.</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="../syntaxhighlight/JTextComponentRowHeader.html#getLineNumberOffset()">getLineNumberOffset</A></B>()</CODE> | |
<BR> | |
Get the line number offset</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="../syntaxhighlight/JTextComponentRowHeader.html#getPaddingLeft()">getPaddingLeft</A></B>()</CODE> | |
<BR> | |
The minimum padding from the 'leftmost of the line number text' to the | |
'left margin'.</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="../syntaxhighlight/JTextComponentRowHeader.html#getPaddingRight()">getPaddingRight</A></B>()</CODE> | |
<BR> | |
The minimum padding from the 'rightmost of the line number text' to the | |
'right margin' (not to the gutter border).</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="../syntaxhighlight/JTextComponentRowHeader.html#getPreferredSize()">getPreferredSize</A></B>()</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.Object</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#getTextAntiAliasing()">getTextAntiAliasing</A></B>()</CODE> | |
<BR> | |
The anti-aliasing setting of the line number 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="../syntaxhighlight/JTextComponentRowHeader.html#isListenToDocumentUpdate()">isListenToDocumentUpdate</A></B>()</CODE> | |
<BR> | |
Check if it is listening to the document change events.</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="../syntaxhighlight/JTextComponentRowHeader.html#paint(java.awt.Graphics)">paint</A></B>(java.awt.Graphics g)</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="../syntaxhighlight/JTextComponentRowHeader.html#setBackground(java.awt.Color)">setBackground</A></B>(java.awt.Color background)</CODE> | |
<BR> | |
The background of the panel.</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="../syntaxhighlight/JTextComponentRowHeader.html#setBorderColor(java.awt.Color)">setBorderColor</A></B>(java.awt.Color borderColor)</CODE> | |
<BR> | |
The color of the border that joint the gutter and the script text 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="../syntaxhighlight/JTextComponentRowHeader.html#setBorderWidth(int)">setBorderWidth</A></B>(int borderWidth)</CODE> | |
<BR> | |
The width of the border that joint the gutter and the script text 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="../syntaxhighlight/JTextComponentRowHeader.html#setFont(java.awt.Font)">setFont</A></B>(java.awt.Font font)</CODE> | |
<BR> | |
The font of the line number.</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="../syntaxhighlight/JTextComponentRowHeader.html#setForeground(java.awt.Color)">setForeground</A></B>(java.awt.Color foreground)</CODE> | |
<BR> | |
The color of the line number.</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="../syntaxhighlight/JTextComponentRowHeader.html#setHighlightedColor(java.awt.Color)">setHighlightedColor</A></B>(java.awt.Color highlightedColor)</CODE> | |
<BR> | |
The background of the highlighted row.</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="../syntaxhighlight/JTextComponentRowHeader.html#setHighlightedLineList(java.util.List)">setHighlightedLineList</A></B>(java.util.List<java.lang.Integer> highlightedLineList)</CODE> | |
<BR> | |
Set highlighted lines.</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="../syntaxhighlight/JTextComponentRowHeader.html#setLineNumberOffset(int)">setLineNumberOffset</A></B>(int offset)</CODE> | |
<BR> | |
Set the line number offset.</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="../syntaxhighlight/JTextComponentRowHeader.html#setListenToDocumentUpdate(boolean)">setListenToDocumentUpdate</A></B>(boolean listenToDocumentUpdate)</CODE> | |
<BR> | |
Set to listen to document change events 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="../syntaxhighlight/JTextComponentRowHeader.html#setPaddingLeft(int)">setPaddingLeft</A></B>(int paddingLeft)</CODE> | |
<BR> | |
The minimum padding from 'the leftmost of the line number text' to the | |
'left margin'.</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="../syntaxhighlight/JTextComponentRowHeader.html#setPaddingRight(int)">setPaddingRight</A></B>(int paddingRight)</CODE> | |
<BR> | |
The minimum padding from the 'rightmost of the line number text' to the | |
'right margin' (not to the gutter border).</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="../syntaxhighlight/JTextComponentRowHeader.html#setTextAntiAliasing(java.lang.Object)">setTextAntiAliasing</A></B>(java.lang.Object textAntiAliasing)</CODE> | |
<BR> | |
The anti-aliasing setting of the line number text.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#updatePanelSize()">updatePanelSize</A></B>()</CODE> | |
<BR> | |
Update the panel size.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/JTextComponentRowHeader.html#validateTextComponentDocument()">validateTextComponentDocument</A></B>()</CODE> | |
<BR> | |
Check if the 'document of the textComponent' has changed to another | |
document or not.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_javax.swing.JPanel"><!-- --></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.JPanel</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI</CODE></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, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</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, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree</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, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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="textAntiAliasing"><!-- --></A><H3> | |
textAntiAliasing</H3> | |
<PRE> | |
protected java.lang.Object <B>textAntiAliasing</B></PRE> | |
<DL> | |
<DD>The anti-aliasing setting of the line number text. See | |
<CODE>RenderingHints</CODE>. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="borderColor"><!-- --></A><H3> | |
borderColor</H3> | |
<PRE> | |
protected java.awt.Color <B>borderColor</B></PRE> | |
<DL> | |
<DD>The color of the border that joint the gutter and the script text area. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="highlightedColor"><!-- --></A><H3> | |
highlightedColor</H3> | |
<PRE> | |
protected java.awt.Color <B>highlightedColor</B></PRE> | |
<DL> | |
<DD>The background of the row when it is highlighted. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="paddingLeft"><!-- --></A><H3> | |
paddingLeft</H3> | |
<PRE> | |
protected int <B>paddingLeft</B></PRE> | |
<DL> | |
<DD>The minimum padding from 'the leftmost of the line number text' to | |
'the left margin'. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="paddingRight"><!-- --></A><H3> | |
paddingRight</H3> | |
<PRE> | |
protected int <B>paddingRight</B></PRE> | |
<DL> | |
<DD>The minimum padding from 'the rightmost of the line number text' to | |
'the right margin' (not to the gutter border). | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="borderWidth"><!-- --></A><H3> | |
borderWidth</H3> | |
<PRE> | |
protected int <B>borderWidth</B></PRE> | |
<DL> | |
<DD>The width of the border that joint the gutter and the script text area. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="scrollPane"><!-- --></A><H3> | |
scrollPane</H3> | |
<PRE> | |
protected javax.swing.JScrollPane <B>scrollPane</B></PRE> | |
<DL> | |
<DD>The JScrollPane that it be added into. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="textComponent"><!-- --></A><H3> | |
textComponent</H3> | |
<PRE> | |
protected javax.swing.text.JTextComponent <B>textComponent</B></PRE> | |
<DL> | |
<DD>The text component to listen the change events on. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="document"><!-- --></A><H3> | |
document</H3> | |
<PRE> | |
protected javax.swing.text.Document <B>document</B></PRE> | |
<DL> | |
<DD>The document of the text component. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="documentListener"><!-- --></A><H3> | |
documentListener</H3> | |
<PRE> | |
protected javax.swing.event.DocumentListener <B>documentListener</B></PRE> | |
<DL> | |
<DD>The document listener for <A HREF="../syntaxhighlight/JTextComponentRowHeader.html#document"><CODE>document</CODE></A>. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="panelWidth"><!-- --></A><H3> | |
panelWidth</H3> | |
<PRE> | |
protected int <B>panelWidth</B></PRE> | |
<DL> | |
<DD>The cached panel width. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="largestRowNumber"><!-- --></A><H3> | |
largestRowNumber</H3> | |
<PRE> | |
protected int <B>largestRowNumber</B></PRE> | |
<DL> | |
<DD>The cached largest row number (for determine panel width | |
<A HREF="../syntaxhighlight/JTextComponentRowHeader.html#panelWidth"><CODE>panelWidth</CODE></A>). | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="textComponentHeight"><!-- --></A><H3> | |
textComponentHeight</H3> | |
<PRE> | |
protected int <B>textComponentHeight</B></PRE> | |
<DL> | |
<DD>The cached text component height, for determine panel height. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="lineNumberOffset"><!-- --></A><H3> | |
lineNumberOffset</H3> | |
<PRE> | |
protected int <B>lineNumberOffset</B></PRE> | |
<DL> | |
<DD>The line number offset. E.g. set offset to 9 will make the first line | |
number to appear at line 1 + 9 = 10 | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="highlightedLineList"><!-- --></A><H3> | |
highlightedLineList</H3> | |
<PRE> | |
protected final java.util.List<java.lang.Integer> <B>highlightedLineList</B></PRE> | |
<DL> | |
<DD>The list of line numbers that indicate which lines are needed to be | |
highlighted. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="listenToDocumentUpdate"><!-- --></A><H3> | |
listenToDocumentUpdate</H3> | |
<PRE> | |
protected boolean <B>listenToDocumentUpdate</B></PRE> | |
<DL> | |
<DD>Indicator indicate whether it is listening to the document change events | |
or not. | |
<P> | |
<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="JTextComponentRowHeader(javax.swing.JScrollPane, javax.swing.text.JTextComponent)"><!-- --></A><H3> | |
JTextComponentRowHeader</H3> | |
<PRE> | |
public <B>JTextComponentRowHeader</B>(javax.swing.JScrollPane scrollPane, | |
javax.swing.text.JTextComponent textComponent)</PRE> | |
<DL> | |
<DD>Constructor. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>scrollPane</CODE> - the JScrollPane that it be added into<DD><CODE>textComponent</CODE> - the text component to listen the change events on</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="validateTextComponentDocument()"><!-- --></A><H3> | |
validateTextComponentDocument</H3> | |
<PRE> | |
protected void <B>validateTextComponentDocument</B>()</PRE> | |
<DL> | |
<DD>Check if the 'document of the textComponent' has changed to another | |
document or not. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="checkPanelSize()"><!-- --></A><H3> | |
checkPanelSize</H3> | |
<PRE> | |
public void <B>checkPanelSize</B>()</PRE> | |
<DL> | |
<DD>Check whether the height of the row header panel match with the height of | |
the text component or not. If not, it will invoke | |
<A HREF="../syntaxhighlight/JTextComponentRowHeader.html#updatePanelSize()"><CODE>updatePanelSize()</CODE></A>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="updatePanelSize()"><!-- --></A><H3> | |
updatePanelSize</H3> | |
<PRE> | |
protected void <B>updatePanelSize</B>()</PRE> | |
<DL> | |
<DD>Update the panel size. | |
<P> | |
<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>The font of the line number. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE>setFont</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setForeground(java.awt.Color)"><!-- --></A><H3> | |
setForeground</H3> | |
<PRE> | |
public void <B>setForeground</B>(java.awt.Color foreground)</PRE> | |
<DL> | |
<DD>The color of the line number. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE>setForeground</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>foreground</CODE> - the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setBackground(java.awt.Color)"><!-- --></A><H3> | |
setBackground</H3> | |
<PRE> | |
public void <B>setBackground</B>(java.awt.Color background)</PRE> | |
<DL> | |
<DD>The background of the panel. | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE>setBackground</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>background</CODE> - the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getPreferredSize()"><!-- --></A><H3> | |
getPreferredSize</H3> | |
<PRE> | |
public java.awt.Dimension <B>getPreferredSize</B>()</PRE> | |
<DL> | |
<DD> | |
<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="paint(java.awt.Graphics)"><!-- --></A><H3> | |
paint</H3> | |
<PRE> | |
public void <B>paint</B>(java.awt.Graphics g)</PRE> | |
<DL> | |
<DD> | |
<P> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE>paint</CODE> in class <CODE>javax.swing.JComponent</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getTextAntiAliasing()"><!-- --></A><H3> | |
getTextAntiAliasing</H3> | |
<PRE> | |
public java.lang.Object <B>getTextAntiAliasing</B>()</PRE> | |
<DL> | |
<DD>The anti-aliasing setting of the line number text. See | |
<CODE>RenderingHints</CODE>. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the setting</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setTextAntiAliasing(java.lang.Object)"><!-- --></A><H3> | |
setTextAntiAliasing</H3> | |
<PRE> | |
public void <B>setTextAntiAliasing</B>(java.lang.Object textAntiAliasing)</PRE> | |
<DL> | |
<DD>The anti-aliasing setting of the line number text. See | |
<CODE>RenderingHints</CODE>. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>textAntiAliasing</CODE> - the setting</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getBorderColor()"><!-- --></A><H3> | |
getBorderColor</H3> | |
<PRE> | |
public java.awt.Color <B>getBorderColor</B>()</PRE> | |
<DL> | |
<DD>The color of the border that joint the gutter and the script text area. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setBorderColor(java.awt.Color)"><!-- --></A><H3> | |
setBorderColor</H3> | |
<PRE> | |
public void <B>setBorderColor</B>(java.awt.Color borderColor)</PRE> | |
<DL> | |
<DD>The color of the border that joint the gutter and the script text area. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>borderColor</CODE> - the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHighlightedColor()"><!-- --></A><H3> | |
getHighlightedColor</H3> | |
<PRE> | |
public java.awt.Color <B>getHighlightedColor</B>()</PRE> | |
<DL> | |
<DD>The background of the highlighted row. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHighlightedColor(java.awt.Color)"><!-- --></A><H3> | |
setHighlightedColor</H3> | |
<PRE> | |
public void <B>setHighlightedColor</B>(java.awt.Color highlightedColor)</PRE> | |
<DL> | |
<DD>The background of the highlighted row. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>highlightedColor</CODE> - the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getPaddingLeft()"><!-- --></A><H3> | |
getPaddingLeft</H3> | |
<PRE> | |
public int <B>getPaddingLeft</B>()</PRE> | |
<DL> | |
<DD>The minimum padding from the 'leftmost of the line number text' to the | |
'left margin'. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the padding in pixel</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setPaddingLeft(int)"><!-- --></A><H3> | |
setPaddingLeft</H3> | |
<PRE> | |
public void <B>setPaddingLeft</B>(int paddingLeft)</PRE> | |
<DL> | |
<DD>The minimum padding from 'the leftmost of the line number text' to the | |
'left margin'. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>paddingLeft</CODE> - the padding in pixel</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getPaddingRight()"><!-- --></A><H3> | |
getPaddingRight</H3> | |
<PRE> | |
public int <B>getPaddingRight</B>()</PRE> | |
<DL> | |
<DD>The minimum padding from the 'rightmost of the line number text' to the | |
'right margin' (not to the gutter border). | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the padding in pixel</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setPaddingRight(int)"><!-- --></A><H3> | |
setPaddingRight</H3> | |
<PRE> | |
public void <B>setPaddingRight</B>(int paddingRight)</PRE> | |
<DL> | |
<DD>The minimum padding from the 'rightmost of the line number text' to the | |
'right margin' (not to the gutter border). | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>paddingRight</CODE> - the padding in pixel</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getBorderWidth()"><!-- --></A><H3> | |
getBorderWidth</H3> | |
<PRE> | |
public int <B>getBorderWidth</B>()</PRE> | |
<DL> | |
<DD>The width of the border that joint the gutter and the script text area. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the width in pixel</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setBorderWidth(int)"><!-- --></A><H3> | |
setBorderWidth</H3> | |
<PRE> | |
public void <B>setBorderWidth</B>(int borderWidth)</PRE> | |
<DL> | |
<DD>The width of the border that joint the gutter and the script text area. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>borderWidth</CODE> - the width in pixel</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getLineNumberOffset()"><!-- --></A><H3> | |
getLineNumberOffset</H3> | |
<PRE> | |
public int <B>getLineNumberOffset</B>()</PRE> | |
<DL> | |
<DD>Get the line number offset | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the offset</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setLineNumberOffset(int)"><!-- --></A><H3> | |
setLineNumberOffset</H3> | |
<PRE> | |
public void <B>setLineNumberOffset</B>(int offset)</PRE> | |
<DL> | |
<DD>Set the line number offset. E.g. set offset to 9 will make the first line | |
number to appear at line 1 + 9 = 10 | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHighlightedLineList()"><!-- --></A><H3> | |
getHighlightedLineList</H3> | |
<PRE> | |
public java.util.List<java.lang.Integer> <B>getHighlightedLineList</B>()</PRE> | |
<DL> | |
<DD>Get the list of highlighted lines. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>a copy of the list</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHighlightedLineList(java.util.List)"><!-- --></A><H3> | |
setHighlightedLineList</H3> | |
<PRE> | |
public void <B>setHighlightedLineList</B>(java.util.List<java.lang.Integer> highlightedLineList)</PRE> | |
<DL> | |
<DD>Set highlighted lines. Note that this will clear all previous recorded | |
highlighted lines. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>highlightedLineList</CODE> - the list that contain the highlighted lines</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addHighlightedLine(int)"><!-- --></A><H3> | |
addHighlightedLine</H3> | |
<PRE> | |
public boolean <B>addHighlightedLine</B>(int lineNumber)</PRE> | |
<DL> | |
<DD>Add highlighted line. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>lineNumber</CODE> - the line number to highlight | |
<DT><B>Returns:</B><DD>see the return value of <CODE>List.add(Object)</CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="clearHighlightedLine()"><!-- --></A><H3> | |
clearHighlightedLine</H3> | |
<PRE> | |
public void <B>clearHighlightedLine</B>()</PRE> | |
<DL> | |
<DD>Clear highlighted lines. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isListenToDocumentUpdate()"><!-- --></A><H3> | |
isListenToDocumentUpdate</H3> | |
<PRE> | |
public boolean <B>isListenToDocumentUpdate</B>()</PRE> | |
<DL> | |
<DD>Check if it is listening to the document change events. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if it is listening, false if not</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setListenToDocumentUpdate(boolean)"><!-- --></A><H3> | |
setListenToDocumentUpdate</H3> | |
<PRE> | |
public void <B>setListenToDocumentUpdate</B>(boolean listenToDocumentUpdate)</PRE> | |
<DL> | |
<DD>Set to listen to document change events or not. It is useful when a number | |
of updates are needed to be done to the text component. May invoke | |
<A HREF="../syntaxhighlight/JTextComponentRowHeader.html#checkPanelSize()"><CODE>()</CODE></A> after setting this to true. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>listenToDocumentUpdate</CODE> - true to listen on document change, false not</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="class-use/JTextComponentRowHeader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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"> | |
PREV CLASS | |
<A HREF="../syntaxhighlight/Parser.html" title="interface in syntaxhighlight"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../index.html?syntaxhighlight/JTextComponentRowHeader.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="JTextComponentRowHeader.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_classes_inherited_from_class_javax.swing.JPanel">NESTED</A> | <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> | |
</BODY> | |
</HTML> |