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

Method toEventPosition

output/java8/1.4.13/STViz.java:359–365  ·  view source on GitHub ↗
(JTextComponent component, int position)

Source from the content-addressed store, hash-verified

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

Callers 1

caretUpdateMethod · 0.95

Calls 1

toComponentPositionMethod · 0.95

Tested by

no test coverage detected