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

Method toEventPosition

output/java/1.4.17/STViz.java:364–370  ·  view source on GitHub ↗
(JTextComponent component, int position)

Source from the content-addressed store, hash-verified

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

Callers 1

caretUpdateMethod · 0.95

Calls 1

toComponentPositionMethod · 0.95

Tested by

no test coverage detected