JEXI design (6) UML of Document class

zhaozj2021-02-16  62

The documentation in the MVC structure is discussed earlier, and an abstract interface Glyph is used in Composite mode, derived two types of Glyph: Basic data structure char, Picture and Paragraph; Display Model Structure Row and Page, the UML map is as follows:

For any glyph object, it can know:

Subscriber Node - Child (), Size (); Add, Delete Sub Node - Add (), Remove (); Size of Its Size - Width (), Height (); How to Draw itself - DRAW () .

If a specific subclass does not support some way, you will directly throw the unsupportedOperationException.

ROW is an object to Paragraph and Page, and Paragraph generates ROW through the typography and constructs Page.

In order to connect with the display, add Style to determine how to display. In order to independently discharge, add Compositor, the relationship between the entire Document class is as follows:

Click here to view full map

Welcome to BLogger to comment!

转载请注明原文地址:https://www.9cbs.com/read-13616.html

New Post(0)