MCPcopy Create free account
hub / github.com/antlr/codebuff / toEventPosition

Method toEventPosition

output/java/1.4.14/STViz.java:360–366  ·  view source on GitHub ↗
(JTextComponent component, int position)

Source from the content-addressed store, hash-verified

358 }
359
360 protected int toEventPosition(JTextComponent component, int position) {
361 int result = position;
362 while ( toComponentPosition(component, result)< position ) {
363 result++;
364 }
365 return result;
366 }
367
368 protected final void highlight(JTextComponent comp, int i, int j) {
369 highlight(comp, i, j, true);

Callers 1

caretUpdateMethod · 0.95

Calls 1

toComponentPositionMethod · 0.95

Tested by

no test coverage detected