197 val begin = start max to_current(e.start(document)) |
197 val begin = start max to_current(e.start(document)) |
198 val finish = end - 1 min to_current(e.stop(document)) |
198 val finish = end - 1 min to_current(e.stop(document)) |
199 encolor(gfx, y, metrics.getHeight, begin, finish, TheoryView.choose_color(e), true) |
199 encolor(gfx, y, metrics.getHeight, begin, finish, TheoryView.choose_color(e), true) |
200 |
200 |
201 // paint details of command |
201 // paint details of command |
202 for (node <- e.root_node.dfs) { |
202 for (node <- e.highlight_node.flatten) { |
203 val begin = to_current(node.abs_start(document)) |
203 val begin = to_current(node.abs_start(document)) |
204 val finish = to_current(node.abs_stop(document)) |
204 val finish = to_current(node.abs_stop(document)) |
205 if (finish > start && begin < end) { |
205 if (finish > start && begin < end) { |
206 encolor(gfx, y + metrics.getHeight - 2, 1, begin max start, finish min end - 1, |
206 encolor(gfx, y + metrics.getHeight - 2, 1, begin max start, finish min end - 1, |
207 DynamicTokenMarker.choose_color(node.desc, text_area.getPainter.getStyles), true) |
207 DynamicTokenMarker.choose_color(node.desc, text_area.getPainter.getStyles), true) |