doc = area.getDocument();
doc.insertString(0, "line1\nline2\n\u05DC\u05DD\nline3\n", null);
// positions: 012345 678901 2 3 4 567890
// 0 1 2
root = doc.getDefaultRootElement();
view = new CompositeViewImpl(root) {
private int getY(final ChildView view) {
int result = 0;
for (int i = 0; i < view.getID(); i++) {
result += ViewTestHelpers.getHeight(i);
}