Merge pull request #16 from csmith/master

Missing space in alias dialog.
Simplify line renderer a bit.

Remove some redundent checks, change firstChar/lastChar to be
relative to the current line, rather than within the whole
unwrapped line.
Merge pull request #17 from csmith/textpane

Simplify line renderer a bit.
Fix text pane performance regression.

I was wrong -- lineLayouts didn't need to be sorted. Making it
a TreeMap was quite expensive, as it had to do a bajillion
comparisons each time a line was added (which happens every
render cycle).
Merge pull request #18 from csmith/textpane

Fix text pane performance regression.
Fix a variety of horrible bugs I added.

TextPane no longer leaks memory like there's no tomorrow.
Selection works again.
Merge pull request #19 from csmith/textpane

Fix a variety of horrible bugs I added.
Use system highlight colours.
Merge pull request #24 from csmith/textpane

Use system highlight colours.
Make rendering of wrapped lines simpler.

We now always render bottom-to-top, regardless of whether lines
wrap. Previously for wrapped lines we jumped upwards, rendered
the wrapping lines top-to-bottom, then jumped upwards once more
and carried on bottom-to-top. That made for some really confusing
code.
Merge pull request #26 from csmith/textpane

Make rendering of wrapped lines simpler.
Unused method.
Merge pull request #27 from csmith/textpane

Unused method.
Fix some TextPane layout weirdness.

Stop adding descents all over the place. This stops the highlight
rectangles being slightly offset and allowing descenders to peek
out.

Also adjust the initial Y offset to include padding, and increment
it in the right place.
Merge pull request #28 from csmith/textpane

Fix some TextPane layout weirdness.
More TextPane tidying.

Change to using Rectangle2D.Float to avoid having to cast all
of the co-ords and dimensions to ints.

Remove a magic 1.5 in the calculations in favour of using the right
properties of the text.
Merge pull request #29 from csmith/textpane

More TextPane tidying.
Remove dodgy line height calculation.

Use the proper font metrics to calculate line height and spacing.
For Dialog size 12 (our default font), this seems to be identical
behaviour. Other fonts define more sensible leadings, so are
spaced out properly.

This also fixes highlighting having gaps for large font sizes.
Merge pull request #32 from csmith/textpane

Remove dodgy line height calculation.
Simplify highlight drawing code.

No need to translate, we can just add some numbers together.