<!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:54 CST 2012 --> | |
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<TITLE> | |
SyntaxHighlighterPane (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="SyntaxHighlighterPane (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/SyntaxHighlighterPane.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"> | |
<A HREF="../syntaxhighlight/SyntaxHighlighter.html" title="class in syntaxhighlight"><B>PREV CLASS</B></A> | |
<A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../index.html?syntaxhighlight/SyntaxHighlighterPane.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="SyntaxHighlighterPane.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.JEditorPane">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 SyntaxHighlighterPane</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.text.JTextComponent | |
<IMG SRC="../resources/inherit.gif" ALT="extended by ">javax.swing.JEditorPane | |
<IMG SRC="../resources/inherit.gif" ALT="extended by ">javax.swing.JTextPane | |
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>syntaxhighlight.SyntaxHighlighterPane</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD>java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.Scrollable</DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <B>SyntaxHighlighterPane</B><DT>extends javax.swing.JTextPane</DL> | |
</PRE> | |
<P> | |
The text pane for displaying the script text. | |
<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.SyntaxHighlighterPane">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.JEditorPane"><!-- --></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.JEditorPane</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>javax.swing.JEditorPane.AccessibleJEditorPane, javax.swing.JEditorPane.AccessibleJEditorPaneHTML, javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<A NAME="nested_classes_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></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.text.JTextComponent</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.DropLocation, javax.swing.text.JTextComponent.KeyBinding</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.util.List<java.lang.Integer></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.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 javax.swing.text.Highlighter.HighlightPainter</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.html#highlightPainter">highlightPainter</A></B></CODE> | |
<BR> | |
The highlighter painter used to do the highlight line effect.</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/SyntaxHighlighterPane.html#mouseOnLine">mouseOnLine</A></B></CODE> | |
<BR> | |
Record the mouse cursor is currently pointing at which line of the | |
document. -1 means not any line.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.util.Map<java.lang.String,java.util.List<<A HREF="../syntaxhighlight/ParseResult.html" title="class in syntaxhighlight">ParseResult</A>>></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.html#styleList">styleList</A></B></CODE> | |
<BR> | |
The style list.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight">Theme</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.html#theme">theme</A></B></CODE> | |
<BR> | |
The theme.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_javax.swing.JEditorPane"><!-- --></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.JEditorPane</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></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.text.JTextComponent</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY</CODE></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/SyntaxHighlighterPane.html#SyntaxHighlighterPane()">SyntaxHighlighterPane</A></B>()</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> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.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>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.html#applyStyle()">applyStyle</A></B>()</CODE> | |
<BR> | |
Apply the list of style to the script text pane.</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/SyntaxHighlighterPane.html#getHighlightedBackground()">getHighlightedBackground</A></B>()</CODE> | |
<BR> | |
Get the color of the highlighted background.</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/SyntaxHighlighterPane.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/SyntaxHighlighterPane.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> <A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight">Theme</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.html#getTheme()">getTheme</A></B>()</CODE> | |
<BR> | |
Get current theme.</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/SyntaxHighlighterPane.html#isHighlightOnMouseOver()">isHighlightOnMouseOver</A></B>()</CODE> | |
<BR> | |
Check the status of the mouse-over highlight effect.</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/SyntaxHighlighterPane.html#setContent(java.lang.String)">setContent</A></B>(java.lang.String content)</CODE> | |
<BR> | |
Set the content of the syntax highlighter.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected static java.awt.Font</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../syntaxhighlight/SyntaxHighlighterPane.html#setFont(java.awt.Font, boolean, boolean)">setFont</A></B>(java.awt.Font font, | |
boolean bold, | |
boolean italic)</CODE> | |
<BR> | |
Set the <code>font</code> according to <code>bold</code> and <code>italic</code>.</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/SyntaxHighlighterPane.html#setHighlightedBackground(java.awt.Color)">setHighlightedBackground</A></B>(java.awt.Color highlightedBackground)</CODE> | |
<BR> | |
Set the color of the highlighted background.</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/SyntaxHighlighterPane.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/SyntaxHighlighterPane.html#setHighlighter(javax.swing.text.Highlighter)">setHighlighter</A></B>(javax.swing.text.Highlighter highlighter)</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/SyntaxHighlighterPane.html#setHighlightOnMouseOver(boolean)">setHighlightOnMouseOver</A></B>(boolean highlightWhenMouseOver)</CODE> | |
<BR> | |
Set turn on the mouse-over highlight effect 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/SyntaxHighlighterPane.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/SyntaxHighlighterPane.html#setStyle(java.util.List)">setStyle</A></B>(java.util.List<<A HREF="../syntaxhighlight/ParseResult.html" title="class in syntaxhighlight">ParseResult</A>> styleList)</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/SyntaxHighlighterPane.html#setTheme(syntaxhighlight.Theme)">setTheme</A></B>(<A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight">Theme</A> theme)</CODE> | |
<BR> | |
Set the theme.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_javax.swing.JTextPane"><!-- --></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.JTextPane</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>addStyle, createDefaultEditorKit, getCharacterAttributes, getInputAttributes, getLogicalStyle, getParagraphAttributes, getStyle, getStyledDocument, getStyledEditorKit, getUIClassID, insertComponent, insertIcon, paramString, removeStyle, replaceSelection, setCharacterAttributes, setDocument, setEditorKit, setLogicalStyle, setParagraphAttributes, setStyledDocument</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_javax.swing.JEditorPane"><!-- --></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.JEditorPane</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>addHyperlinkListener, createEditorKitForContentType, fireHyperlinkUpdate, getAccessibleContext, getContentType, getEditorKit, getEditorKitClassNameForContentType, getEditorKitForContentType, getHyperlinkListeners, getPage, getPreferredSize, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getStream, getText, read, registerEditorKitForContentType, registerEditorKitForContentType, removeHyperlinkListener, scrollToReference, setContentType, setEditorKitForContentType, setPage, setPage, setText</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_javax.swing.text.JTextComponent"><!-- --></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.text.JTextComponent</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getActions, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getPrintable, getScrollableBlockIncrement, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setDropMode, setEditable, setFocusAccelerator, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, updateUI, viewToModel, write</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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, 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, 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, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, 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="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="highlightPainter"><!-- --></A><H3> | |
highlightPainter</H3> | |
<PRE> | |
protected javax.swing.text.Highlighter.HighlightPainter <B>highlightPainter</B></PRE> | |
<DL> | |
<DD>The highlighter painter used to do the highlight line effect. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="theme"><!-- --></A><H3> | |
theme</H3> | |
<PRE> | |
protected <A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight">Theme</A> <B>theme</B></PRE> | |
<DL> | |
<DD>The theme. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="styleList"><!-- --></A><H3> | |
styleList</H3> | |
<PRE> | |
protected java.util.Map<java.lang.String,java.util.List<<A HREF="../syntaxhighlight/ParseResult.html" title="class in syntaxhighlight">ParseResult</A>>> <B>styleList</B></PRE> | |
<DL> | |
<DD>The style list. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="mouseOnLine"><!-- --></A><H3> | |
mouseOnLine</H3> | |
<PRE> | |
protected int <B>mouseOnLine</B></PRE> | |
<DL> | |
<DD>Record the mouse cursor is currently pointing at which line of the | |
document. -1 means not any line. | |
It is used internally. | |
<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="SyntaxHighlighterPane()"><!-- --></A><H3> | |
SyntaxHighlighterPane</H3> | |
<PRE> | |
public <B>SyntaxHighlighterPane</B>()</PRE> | |
<DL> | |
<DD>Constructor. | |
<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="setHighlighter(javax.swing.text.Highlighter)"><!-- --></A><H3> | |
setHighlighter</H3> | |
<PRE> | |
public void <B>setHighlighter</B>(javax.swing.text.Highlighter highlighter)</PRE> | |
<DL> | |
<DD><DL> | |
<DT><B>Overrides:</B><DD><CODE>setHighlighter</CODE> in class <CODE>javax.swing.text.JTextComponent</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setContent(java.lang.String)"><!-- --></A><H3> | |
setContent</H3> | |
<PRE> | |
public void <B>setContent</B>(java.lang.String content)</PRE> | |
<DL> | |
<DD>Set the content of the syntax highlighter. It is better to set other | |
settings first and set this the last. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the content to set</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setStyle(java.util.List)"><!-- --></A><H3> | |
setStyle</H3> | |
<PRE> | |
public void <B>setStyle</B>(java.util.List<<A HREF="../syntaxhighlight/ParseResult.html" title="class in syntaxhighlight">ParseResult</A>> styleList)</PRE> | |
<DL> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="applyStyle()"><!-- --></A><H3> | |
applyStyle</H3> | |
<PRE> | |
protected void <B>applyStyle</B>()</PRE> | |
<DL> | |
<DD>Apply the list of style to the script text pane. See | |
<CODE>syntaxhighlighter.parser.Parser#parse(syntaxhighlighter.brush.Brush, boolean, char[], int, int)</CODE>. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getTheme()"><!-- --></A><H3> | |
getTheme</H3> | |
<PRE> | |
public <A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight">Theme</A> <B>getTheme</B>()</PRE> | |
<DL> | |
<DD>Get current theme. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the current theme</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setTheme(syntaxhighlight.Theme)"><!-- --></A><H3> | |
setTheme</H3> | |
<PRE> | |
public void <B>setTheme</B>(<A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight">Theme</A> theme)</PRE> | |
<DL> | |
<DD>Set the theme. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>theme</CODE> - the theme</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. E.g. set offset to 9 will make the first line | |
number to appear at line 1 + 9 = 10 | |
<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="getHighlightedBackground()"><!-- --></A><H3> | |
getHighlightedBackground</H3> | |
<PRE> | |
public java.awt.Color <B>getHighlightedBackground</B>()</PRE> | |
<DL> | |
<DD>Get the color of the highlighted background. Default is black. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHighlightedBackground(java.awt.Color)"><!-- --></A><H3> | |
setHighlightedBackground</H3> | |
<PRE> | |
public void <B>setHighlightedBackground</B>(java.awt.Color highlightedBackground)</PRE> | |
<DL> | |
<DD>Set the color of the highlighted background. Default is black. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>highlightedBackground</CODE> - the color</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isHighlightOnMouseOver()"><!-- --></A><H3> | |
isHighlightOnMouseOver</H3> | |
<PRE> | |
public boolean <B>isHighlightOnMouseOver</B>()</PRE> | |
<DL> | |
<DD>Check the status of the mouse-over highlight effect. Default is on. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if turned on, false if turned off</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHighlightOnMouseOver(boolean)"><!-- --></A><H3> | |
setHighlightOnMouseOver</H3> | |
<PRE> | |
public void <B>setHighlightOnMouseOver</B>(boolean highlightWhenMouseOver)</PRE> | |
<DL> | |
<DD>Set turn on the mouse-over highlight effect or not. Default is on. | |
If set true, there will be a highlight effect on the line that the mouse | |
cursor currently is pointing on (on the script text area only, not on the | |
line number panel). | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>highlightWhenMouseOver</CODE> - true to turn on, false to turn off</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 void <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</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setFont(java.awt.Font, boolean, boolean)"><!-- --></A><H3> | |
setFont</H3> | |
<PRE> | |
protected static java.awt.Font <B>setFont</B>(java.awt.Font font, | |
boolean bold, | |
boolean italic)</PRE> | |
<DL> | |
<DD>Set the <code>font</code> according to <code>bold</code> and <code>italic</code>. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>font</CODE> - the font to set<DD><CODE>bold</CODE> - true to set bold, false not<DD><CODE>italic</CODE> - true to set italic, false not | |
<DT><B>Returns:</B><DD>the font with bold and italic changed, or null if the input | |
<code>font</code> is null</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/SyntaxHighlighterPane.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"> | |
<A HREF="../syntaxhighlight/SyntaxHighlighter.html" title="class in syntaxhighlight"><B>PREV CLASS</B></A> | |
<A HREF="../syntaxhighlight/Theme.html" title="class in syntaxhighlight"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../index.html?syntaxhighlight/SyntaxHighlighterPane.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="SyntaxHighlighterPane.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.JEditorPane">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> |