Modified TextTokenizerFactory to throw RuntimeException.
Instead of the three exceptions the java.lang.reflect package was throwing.
This is much cleaner for the user.
FontFactory added
Renamed TextPainter.setForegroundColor() -> setTextColor()
Originally, we were trying to match what GC is doing, but I think users will understand setTextColor() more.
Also added convenience constructor for passing an RGB object.
font factory test added, moved some references to use font factory
merge with upstream
Expose IntelliJ to generated-src directory.
merged font factory branch with local master
moved factory tests to integ tests
moved factory tests to integ tests... for real
Fix issues with new idea changes.
Allow TextPainter.handlePaint with a GC.
I, many times, use a generic Event handler and then direct all the different Event types to the appropriate handler.
Because of this, I needed to have a handlePaint that didn't take PaintEvent (because I just have an Event, which PaintEvent isn't actually a descendant of ... oh SWT).
This is to show a possible improvement we want in TextPainter.
In this example, I want to know the size the text would be to set the size of the PopOverShell.
However, it shows a bit of a chicken-and-egg problem where the TextExtent.computeSize() wants to know its bounds already, which we're trying to calculate.
I'm pushing this to origin to show @sesteel.
Added comment.
added unit test and FontFactory disposeAll call to Example
Merge branch 'master' into fontfactory
Created a FormattedText Type
Added padding; more testing required
*FormattedTextTokenizer.java.rl
Utilize new preComputeSize from @sesteel.
Use new padding in TextPainter.