1 19 package org.netbeans.core.output2; 20 21 import org.openide.windows.OutputListener; 22 23 import javax.swing.event.ChangeListener ; 24 import java.io.IOException ; 25 import java.util.regex.Matcher ; 26 27 31 public interface Lines { 32 36 int[] allListenerLines(); 37 38 44 int length (int idx); 45 46 52 int getLineStart (int line); 53 54 60 int getLineAt (int position); 61 62 66 int getLineCount(); 67 68 75 OutputListener getListenerForLine (int line); 76 77 81 int firstListenerLine (); 82 83 87 88 int firstImportantListenerLine(); 89 90 boolean isImportantHyperlink(int line); 91 92 98 int nearestListenerLine (int line, boolean backward); 99 100 104 int getLongestLineLength(); 105 106 115 int getLogicalLineCountAbove (int logicalLine, int charCount); 116 117 123 int getLogicalLineCountIfWrappedAt (int charCount); 124 125 131 boolean isLineStart (int chpos); 132 133 140 String getLine (int idx) throws IOException ; 141 142 146 boolean hasHyperlinks(); 147 148 153 boolean isHyperlink (int line); 154 155 160 int getCharCount(); 161 162 168 String getText (int start, int end); 169 170 177 char[] getText (int start, int end, char[] chars); 178 198 void toLogicalLineIndex (int[] info, int charsPerLine); 199 206 void saveAs(String path) throws IOException ; 207 208 213 Matcher getForwardMatcher(); 214 230 Matcher getReverseMatcher(); 231 239 Matcher find(String s); 240 241 247 boolean isErr(int line); 248 249 254 Object readLock(); 255 256 265 void addChangeListener (ChangeListener cl); 266 267 272 void removeChangeListener (ChangeListener cl); 273 274 286 boolean checkDirty(boolean clear); 287 288 292 boolean isGrowing(); 293 } 294 | Popular Tags |