Ashape structural overview – MiG InfoCom MiG Calendar AShape Developer Manual User Manual

Page 7

Advertising
background image

MiG InfoCom AB

AShape Structural Overview

The Basics
To understand how this component works you must have an
understanding on both the class hierarchy, which is really
simple, and the tree like structure the objects are stored in
when they are created. It is important to understand the
distinction between class inheritance and tree structure the
objects are ordered in.

Class Hierarchy

As you can see the class hierarchy is simple to understand,
yet very powerful. The objects should almost exclusively be
handled by their interface type

AShape

. This ensures that

the implementation can be exchanged at any time, say of
you want to exchange the

TextAShape

for your own

implementation at a later time.

AbstractAShape

adds a lot of boiler plate functionality for

the sub classes. It implements almost everything from the

AShape

interface and a lot more. This includes:

Property handling with override support (explained below)

Layout and paint cycle management

AShape Developer Manual

Page 7 / 24

Advertising