JHotDraw Pattern Language

Modifying Existing Figures

The framework comes presupplied with many different types of Figure. Often developers will find that predefined figures deliver only part of the functionality required for their application. In such circumstances figures can be subclassed to defined the required behaviour.

It is important to develop a good understanding of a Figure's behaviour before subclassing to identify which methods will have to be overridden and what extra methods will have to be added to create the new figure.

When creating a new subclass remember to maintain the naming convention of ending the class name with Figure.


Copyright Douglas Kirk