FIGUE
*Design *Boxes *Combinator *Formatting *Geometry *Reuse
*Selections *Paths *Concurrency *Exception *Interaction *Utility
*Resource *Drawing *Incremental *Customize *Various

Resources Management

The API cross references give an immediate access to relevant interfaces and classes.

* Resource Factory

A resource factory declares an interface for creating each resource (font, color, style, graphical context). A concrete resource factory such for AWT implements the resources in a specific context.

Here is the reason to deal with resources through abstract factory.

UML RESOURCE FACTORY

* Font

Here is the reason for reifiying family and style.

UML FONT

* Color

Here is the reason for reifiying basic colors.

UML FONT

* Style

A style is the conjunction of font, foreground and background colors.

UML STYLE

* Defered Resources

A defered resource allows reference to resources before we want or know how to allocate concrete one like fonts, colors or styles. As soon as the defered resource is loaded, there is no subsequent cost in speed or memory.A resource owner provides indirect access to the resource factory and write accessor to assign the concrete resource.

UML DEFERED RESOURCE
A defered resource acts like a kind of lazy proxy. The allocation process occurs the first time the concrete resource is needed. Here is the reason we do not use proxy.
UML SCENARIO DEFERED RESOURCE

* International Resources

We use the standard java.util.ResourceBundle to manage locale-specific objects, like messages.

* API Cross References


*Design *Boxes *Combinator *Formatting *Geometry *Reuse
*Selections *Paths *Concurrency *Exception *Interaction *Utility
*Resource *Drawing *Incremental *Customize *Various

Comments or suggestions?
Need some help?
Copyright ©1998 INRIA
Last updated 5 October 1998 by Bruno Conductier
FIGUE