isPosGuarded

preInsertCheck

This method is called automatically before the document
is updated as result of removal. This function can throw
BadLocationException or its descendants to stop the ongoing
insert from being actually done.

runAtomic

Runs the runnable under write lock. This is a stronger version
of the runAtomicAsUser() method, because if there any locked sections
in the documents this methods breaks the modification locks and modifies
the document.
If there are any excpeptions thrown during the processing of the runnable,
all the document modifications are rolled back automatically.

setLogicalStyle

Sets the logical style to use for the paragraph at the
given position. If attributes aren't explicitly set
for character and paragraph attributes they will resolve
through the logical style assigned to the paragraph, which
in turn may resolve through some hierarchy completely
independent of the element hierarchy in the document.

getFont

Takes a set of attributes and turn it into a font
specification. This can be used to turn things like
family, style, size, etc into a font that is available
on the system the document is currently being used on.