Method and apparatus for an extensible editor
AssigneeSun Microsystems, Inc.
InventorTimothy N. Prinzing
Life of this patent
Estimating the term…
Abstract
A modular text editor formats and displays text by creating style objects that format text elements arranged hierarchically. Style objects may include formatting information for document text elements, paragraph text elements, and character text elements. These style objects are then arranged as subclasses according to the hierarchy of text elements. Next, the text editor provides view objects to display text elements of the document. Like the style objects, the view objects are arranged as subclasses according to the hierarchy of text elements. Using information associated with the style objects, the formatted text elements in the document are displayed using the view objects.
Claims16
A method, executed on a computer processor, of formatting and displaying text, comprising:
- associating style objects with corresponding text elements of a document, the style objects storing attributes and formatting information corresponding to the text elements;
- associating view objects with the corresponding text elements of the document, the view objects functioning to format and display the corresponding text elements;
- arranging the view objects as subclasses according to a hierarchy of the text elements;
- formatting the text elements using corresponding view objects and based on attributes and information in the corresponding style objects;
- and
- displaying the text elements using the view objects and based on attributes and information in the corresponding style objects.
An apparatus configured to format and display text comprising:
- a processor;
- and
- a memory having instructions executable on the processor that associates style objects with corresponding text elements of a document, the style objects storing attributes and formatting information corresponding to the text elements, associates view objects with the corresponding text elements of the document, the view objects functioning to format and display the corresponding text elements, arranges the view objects as subclasses according to a hierarchy of the text elements, and formats and displays the text elements using corresponding view objects and based on attributes and information in the corresponding style objects.
A memory containing program code capable of formatting and displaying text, the code having instructions for:
- associating style objects with corresponding text elements of a document, the style objects storing attributes and formatting information corresponding to the text elements;
- associating view objects with the corresponding text elements of the document, the view objects functioning to format and display the corresponding text elements;
- arranging the view objects as subclasses according to a hierarchy of the text elements;
- formatting the text elements using corresponding view objects and based on attributes and information in the corresponding style objects;
- and
- displaying the text elements using the view objects and based on attributes and information in the corresponding style objects.
A method, executed on a computer processor, of adding a new style to a text editor capable of formatting and displaying text, comprising:
- associating style objects with corresponding text elements of a document, the style objects storing attributes and formatting information corresponding to the text elements;
- associating view objects with the corresponding text elements of the document, the view objects functioning to format and display the corresponding text elements;
- arranging the view objects as subclasses according to a hierarchy of the text elements;
- formatting the text elements using corresponding view objects and based on attributes and information in the corresponding style objects;
- and
- displaying the text elements using the view objects and based on attributes and information in the corresponding style objects.
An apparatus configured to format and display text, comprising:
- means for associating style objects with corresponding text elements of a document, the style objects storing attributes and formatting information corresponding to the text elements;
- means for associating view objects with the corresponding text elements of the document, the view objects functioning to format and display the corresponding text elements;
- means for arranging the view objects as subclasses according to a hierarchy of the text elements;
- means for formatting the text elements using corresponding view objects and based on attributes and information in the corresponding style objects;
- and
- means for displaying the text elements using the view objects and based on attributes and information in the corresponding style objects.
Dependencies are inferred from the claim text.