|
Description
|
The Javadoc documentation page for interface
java.awt.swing.text.StyledDocument has no
top-level description of how StyledDocument models
a styled document.
The interface description says only:
Interface for a generic styled document.
For example, it doesn't specify any required
or assumed structure of the elements representing
the document.
From getParagraphElement and getCharacterElement,
one can tell that a styled document is assumed to
contain paragraphs. However, any requirements on
the structure of elements is not defined.
Also note the description of getCharacterElement:
Gets the element that represents the character
that is at the given offset within the document.
That is a bit ambiguous--it almost implies that
a character element represents one character,
although one can (apparently) represent a sequence
of adjacent characters.
(Review ID: 28199)
======================================================================
Posted Date : 2005-10-14 08:59:23.0
|