Skip to content

Scamper Architecture

kris-fillip edited this page Jul 10, 2018 · 22 revisions

Class Diagram

Class Descriptions:

Scamper: main class, responsible for most of the functionality, e.g. download of websites, displaying on the UI and User Applications.

WebPageMorph: displays the currently opened website in the UI.

HtmlGridlayout: defines the layout policy, that is used for displaying Html-Elements on the WebPageMorph.

ScamperButton: button customized to fit into Scampers UI.

BrowserUrl: responsible for downloading internal websites

ScamperWorker: responsible for downloading elements, that aren't completly contained in the HtmlDocument of a website, e.g. download of pictures. This is done in the background.

HtmlBlockMorph: provides a superclass, for the derived classes HtmlBodyMorph, HtmlDocumentMorph, HtmlLinkMorph und HtmlTableMorph. They represent the HtmlDOMNodes and model the structure of a HtmlDocument as Morphs, that can be dislpayed on the WebPageMorph.

HtmlInlineMorph: displays the text in HtmlDocuments as a TextMorph.