Esempio n. 1
0
 int cursorAtLine(final Location atLocation) {
   LOG.debug("pointer at " + atLocation);
   final int y = atLocation.getY();
   int lineIndex = displayFromLine + (y / target.getText().getLineHeight());
   lineIndex = Math.max(lineIndex, 0);
   return lineIndex;
 }
Esempio n. 2
0
 @Override
 public void showDebugFrame(final DebuggableWithTitle[] info, final Location at) {
   final InfoDebugFrame f = new InfoDebugFrame();
   f.setInfo(info);
   f.show(at.getX(), at.getY());
 }