1 22 23 package org.gjt.sp.jedit.textarea; 24 25 import java.awt.Graphics2D ; 26 27 41 public abstract class TextAreaExtension 42 { 43 59 public void paintScreenLineRange(Graphics2D gfx, int firstLine, 60 int lastLine, int[] physicalLines, int[] start, int[] end, 61 int y, int lineHeight) 62 { 63 for(int i = 0; i < physicalLines.length; i++) 64 { 65 int screenLine = i + firstLine; 66 if(physicalLines[i] == -1) 67 paintInvalidLine(gfx,screenLine,y); 68 else 69 { 70 paintValidLine(gfx,screenLine,physicalLines[i], 71 start[i],end[i],y); 72 } 73 74 y += lineHeight; 75 } 76 } 78 97 public void paintValidLine(Graphics2D gfx, int screenLine, 98 int physicalLine, int start, int end, int y) {} 100 113 public void paintInvalidLine(Graphics2D gfx, int screenLine, 114 int y) {} 116 125 public String getToolTipText(int x, int y) 126 { 127 return null; 128 } } 130 | Popular Tags |