|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ImageRef | Serves as a reference to an image; able to represent image in different ways. |
ImageRefFactory | Used with the HOLDER_GRAPHICS holder; able to produce
Drawable instances. |
Class Summary | |
---|---|
BufferedImageRef | Represents a buffered image. |
ImageRefImpl | Implements the ImageRef interface. |
A special type of Object source/result, that is capable of transferring
images. Marked with the http://www.uniba.sk/euromath/holder/image
namespace.
We could transfer the image in the java.awt.image.RenderedImage
placeholder, however that would take too much memory and it would prevent
us from transferring vector images. Therefore, this communication protocol
is employed:
offerObject()
must return
instance of ImageRefFactory
factory, producing drawable canvases of desired dimension.Graphics2D
provided by
this ImageRef
instance and return it encapsulated in the ObjectSource
instance.ImageRef
instance it has produced. It should process it as needed, and then
dispose it if required.There are two built-in exporters that takes this kind of source: the
ImageToEpsExporter exporting
ImageRef
to a stream containing the postscript EPS file,
and ImageToPngExporter exporting
ImageRef
to a stream containing a PNG file.
Maintainer: Martin Vysny
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |