Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.jedit.textarea
Class StructureMatcher.Highlight  view StructureMatcher.Highlight download StructureMatcher.Highlight.java

java.lang.Object
  extended byorg.gjt.sp.jedit.textarea.TextAreaExtension
      extended byorg.gjt.sp.jedit.textarea.StructureMatcher.Highlight
Enclosing class:
StructureMatcher

public static class StructureMatcher.Highlight
extends TextAreaExtension

Paints the structure match highlight.


Field Summary
private  JEditTextArea textArea
           
 
Constructor Summary
(package private) StructureMatcher.Highlight(JEditTextArea textArea)
           
 
Method Summary
private  int[] getOffsets(int screenLine, StructureMatcher.Match match)
           
private  void paintHighlight(java.awt.Graphics gfx, int screenLine, int physicalLine, int start, int end, int y, StructureMatcher.Match match)
           
 void paintValidLine(java.awt.Graphics2D gfx, int screenLine, int physicalLine, int start, int end, int y)
          Called by the text area when the extension is to paint a screen line which has an associated physical line number in the buffer.
 
Methods inherited from class org.gjt.sp.jedit.textarea.TextAreaExtension
getToolTipText, paintInvalidLine, paintScreenLineRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textArea

private JEditTextArea textArea
Constructor Detail

StructureMatcher.Highlight

StructureMatcher.Highlight(JEditTextArea textArea)
Method Detail

paintValidLine

public void paintValidLine(java.awt.Graphics2D gfx,
                           int screenLine,
                           int physicalLine,
                           int start,
                           int end,
                           int y)
Description copied from class: TextAreaExtension
Called by the text area when the extension is to paint a screen line which has an associated physical line number in the buffer. Note that since one physical line may consist of several screen lines due to soft wrap, the start and end offsets of the screen line are passed in as well.

Overrides:
paintValidLine in class TextAreaExtension

getOffsets

private int[] getOffsets(int screenLine,
                         StructureMatcher.Match match)

paintHighlight

private void paintHighlight(java.awt.Graphics gfx,
                            int screenLine,
                            int physicalLine,
                            int start,
                            int end,
                            int y,
                            StructureMatcher.Match match)