more cleanups and notes

This commit is contained in:
Ben Fry
2015-05-10 12:29:07 -04:00
parent 2721445cee
commit ff1f73c78a
3 changed files with 30 additions and 0 deletions

View File

@@ -251,6 +251,7 @@ public class JavaTextAreaPainter extends TextAreaPainter
// if no special text for a breakpoint, just show the line number
if (text == null) {
text = String.valueOf(line + 1);
//text = makeOSF(String.valueOf(line + 1));
}
char[] txt = text.toCharArray();
@@ -268,6 +269,16 @@ public class JavaTextAreaPainter extends TextAreaPainter
}
// Failed attempt to switch line numbers to old-style figures
String makeOSF(String what) {
char[] c = what.toCharArray();
for (int i = 0; i < c.length; i++) {
c[i] += (char) (c[i] - '0' + 0x362);
}
return new String(c);
}
// /**
// * Paint the gutter background (solid color).
// *