JHotDraw 6.0b1

Package org.jhotdraw.contrib.html

Interface Summary
AttributeContentProducerContext AttributeContentProducerContext defines the interface required of clients requesting contents from AttributeFigures oriented ContentProducers.
ContentProducer ContentProducer defines the interface for objects capable of producing contents on behalf of a client context.
Primarely based on the Strategy pattern, the purpose of ContentProducers is twofold:
Detach the logic for producing generic content from interested parties so as to maximize reuse, of special interest for complex content Standardize contents by allowing for the automatic decentralization of contents source and production logic.
ContentProducerContext ContentProducerContext defines the base interface required of clients of ContentProducers.
ContentProducers may need to retrieve information from their calling client in order to fulfill the contents request
DisposableResourceHolder DisposableResourceHolder defines the interface for objects holding disposable resources.
A disposable resource is any kind of object that can be disposed of according to a given disposal strategy.
DisposableResourceHolder keeps track of the last time the resource is accessed to support ellapsed time ResourceDisposabilityStrategies.
For example, if you are handling large images that you can regenerate at will, the DisposableResourceHolder will hold the image, and if not accessed for let's say 60 secs then it discards the image (sets its reference to null) so that it can be GCed.
Within the context of JHotDraw, HTMLTextAreaFigure uses DisposableResourceHolders to handle the HTML generated image, but if the figure is not displayed (out of the display area or in a background view) then the image is disposed of after a while and the HTMLTextAreaFigure will regenerate it the next time it is displayed.
A resource may be locked so that its user can be sure it will not be disposed of while in use.
DisposableResourceManager DisposableResourceManager defines the interface for managers of disposable resources.
A DisposableResourceManager implements a strategy for efficient disposal of seldom used resources.
FigureContentProducerContext FigureContentProducerContext defines the interface required of clients requesting contents for Figure oriented ContentProducers.
GeometricFigure GeometricFigure defines required of figures that can be used as shape providers for other figures.
HTMLContentProducerContext HTMLContentProducerContext defines the interface required of clients requesting HTML based contents.
ResourceDisposabilityStrategy ResourceDisposabilityStrategy defines the interface for resource disposal strategies.
The strategy defines the logic used to determine which and when a resource can be efficiently disposed of.
 

Class Summary
AbstractContentProducer Base class for the ContentProducers hierarchy
Doesn't do a thing now, but we may need this one later to add generic behaviour.
AttributeFigureContentProducer AttributeFigureContentProducer provides content for AttributeFigures.
It gives priority to base class supplied values, and if none, then it gets the value from the supplied AttributeContentProducerContext.
ColorContentProducer ColorContentProducer produces RGB color encoded hexadecimal strings.
Ex: Color.blue ==> 0x0000FF
Color.red ==> 0xFF00FF
It can either be specific if set for a specific color, or generic, encoding any color passed to the getContents method.
ContentProducerRegistry ContentProducerRegistry acts as a repository for ContentProducers.
DiamondFigureGeometricAdapter Geometric adapter for the DiamondFigure
DisposableResourceManagerFactory DisposableResourceManagerFactory creates DisposableResourceHolders on behalf of requesting clients.
EllipseFigureGeometricAdapter Geometric adapter for the EllipseFigure
ETSLADisposalStrategy ETSLADisposalStrategy implements an Ellapsed Time Since Last Access disposal strategy. It checks the last time a resource was accessed and if greater than the resource's disposalDelay it disposes of the resource so that it can be GCed.
Disposal activity must be explicitely started using the startDisposing method
FigureDataContentProducer FigureDataContentProducer produces content on behalf of Figures.
It supports the basic information common to all figures.
HTMLColorContentProducer HTMLColorContentProducer produces RGB color HTML encoded strings.
Ex: Color.blue ==> #0000FF
Color.red ==> #FF00FF
It can either be specific if set for a specific color, or generic, encoding any color passed to the getContents method.
HTMLContentProducer HTMLContentProducer produces HTML suitable values and encoded strings for various types of values.
It can also transform values into their HTML equivalents, like for instance a mapping between font sizes in points and the HTML valid font size values.
HTMLLayouter HTMLLayouter implements the logic for laying out figures based on an HTML template.
HTMLTextAreaFigure An HTMLTextAreaFigure contains HTML formatted text.
Formatting is done internally by a JLabel component, so all display features and constrains that apply for a JLabel apply also for an HTMLTextAreaFigure, including text and images, as in any Web browser, even allowing for contents residing on external Web sources.
HTMLTextAreaTool HTMLTextAreaTool creates or edits HTMLTextAreaFigures.
Only diffreence with TextAreaFigure is that this allows to edit HTML code using a more suitable font than the one defined by the figure.
PolygonFigureGeometricAdapter Geometric adapter for the PolygonFigure
ResourceContentProducer ResourceContentProducer produces contents from resource in the application's CLASSPATH.
It takes a resource name and loads the resource as a String.
RoundRectangleGeometricAdapter Geometric adapter for the RoundRectangleFigure
StandardDisposableResourceHolder StandardDisposableResourceHolder is a standard implementation of the DisposableResourceHolder interface
StandardDisposableResourceManager StandardDisposableResourceManager implements disposable resource management using a client supplied strategy.
TextHolderContentProducer TextAreaFigureContentProducer produces text contents from an existing TextHolder figure
It can either be specific if set for a specific figure, or generic, encoding any color passed to the getContents method.
The main usage of this producer is to embed a "master" or "shared" drawing figure into other figures so that updating the master figure automatically changes all dependent figures as well.
TriangleFigureGeometricAdapter Geometric adapter for the TriangleFigure
URLContentProducer URLContentProducer produces string contents from URLs.
Anything the URL.openStream() method can get can be retrieved by this producer, that includes resources, local files, web documents, web queries, FTP files, and you name it.
It can either be specific if set for a specific URL, or generic, retrieving any URL passed to the getContents method.
 

Exception Summary
ResourceManagerNotSetException  
 


JHotDraw 6.0b1