|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.io.IOHandler | +--y.io.ImageOutputHandler | +--y.io.GIFIOHandler
Writes a Graph2D in GIF image format.
The encoding process is done in two steps. First the
graph will be renderer to an image. Rendering upon an image
is done by calling method Graph2DView.paintVisibleContent(Graphics2D)
on the current view of the Graph2D. Configuring the view
influences size, viewport, background, etc. of the rendered
image.
In the second step the image is taken and encoded to the
output format.
Constructor Summary | |
GIFIOHandler()
Instantiates a new GIFIOHandler. |
Method Summary | |
Graph2DView |
createDefaultGraph2DView(Graph2D graph)
Takes the value returned by the base class and adds a transparent background to it. |
protected BufferedImage |
createImage(int width,
int height)
Creates the buffered image on which the graph will be rendered. |
protected void |
encode(BufferedImage image,
OutputStream out)
Encodes the given image to the given output stream. |
String |
getFileFormatString()
Returns the GIF file format string. |
String |
getFileNameExtension()
Returns the GIF file name extension, i.e. |
Methods inherited from class y.io.ImageOutputHandler |
canRead, isAntialiasingEnabled, read, setAntialiasingEnabled, write |
Methods inherited from class y.io.IOHandler |
canWrite, canWriteSubset, createObjectInputStream, createObjectOutputStream, hide, read, read, shouldSerialize, shouldSerialize, write, writeSubset, writeSubset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GIFIOHandler()
Method Detail |
public String getFileFormatString()
getFileFormatString
in class IOHandler
public String getFileNameExtension()
getFileNameExtension
in class IOHandler
protected void encode(BufferedImage image, OutputStream out) throws IOException
ImageOutputHandler
encode
in class ImageOutputHandler
IOException
protected BufferedImage createImage(int width, int height)
ImageOutputHandler
createImage
in class ImageOutputHandler
public Graph2DView createDefaultGraph2DView(Graph2D graph)
createDefaultGraph2DView
in class ImageOutputHandler
Graph2D.removeView(View)
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |