Some formatting properties pertain to paragraphs, others to text nodes.
Formatting a Paragraph
Here are some examples of the properties for formatting paragraphs in OpenOffice Writer using JAVA.
Formatting a text node
Here are some examples of the properties for formatting text nodes in OpenOffice Writer using JAVA.
Here is a sample project to download and install as a plugin, showcasing the code examples given above. Feel free to take a look at the source code and play around with it, so that you can get a feel for the methods used for formatting text in OpenOffice.