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

Method toEventPosition

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

Source from the content-addressed store, hash-verified

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

Callers 1

caretUpdateMethod · 0.95

Calls 1

toComponentPositionMethod · 0.95

Tested by

no test coverage detected