The TextBorderFactory API is very difficult to use, due to lack of any specified way to create a border. This should be fixed. Support at least: - newTextBorderStyle(Border border) A factory should be created with newFactory(String mode) (Have a look at the other factories, and try to make it more similar to them)