|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.graph.output.Output
org.faceless.graph.output.ImageOutput
org.faceless.graph.output.JimiOutput
public class JimiOutput
The JimiOutput
class is used with the Jimi library, available
from http://java.sun.com/products/jimi.
Using this library, images can be rendered to PNG, JPEG, TIFF, PCX and many other
image formats with ease.
Constructor Summary | |
---|---|
JimiOutput(int width,
int height,
Color color,
int numcolors,
String mimetype,
OutputStream out)
Create a new JimiOutput of the specified width and height and background color. |
|
JimiOutput(int width,
int height,
String mimetype,
OutputStream out)
Create a new JimiOutput of the specified width and height. |
Method Summary | |
---|---|
void |
render(Graph gr)
Render the Graph to this Output object. |
Methods inherited from class org.faceless.graph.output.ImageOutput |
---|
canPattern, canRotate, getCanvas, getGraph, getImage, getReducedColorImage, getTextBox, line, poly, setColor, setFontMap, setLineDash, setLineThickness, setMargin, setRenderingHint, text |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JimiOutput(int width, int height, String mimetype, OutputStream out)
JimiOutput
of the specified width and height.
The image is created with a white background.
width
- the width of the image in pixelsheight
- the height of the image in pixelsmimetype
- the mimetype of the output imageout
- the OutputStream to render the image topublic JimiOutput(int width, int height, Color color, int numcolors, String mimetype, OutputStream out)
JimiOutput
of the specified width and height and background color.
The image can be reduced to a smaller paletter for image formats that require it, by
specifying a non-zero value for the numcolors parameter.
width
- the width of the image in pixelsheight
- the height of the image in pixelscolor
- the background color of the imagenumcolors
- The maximum number of colors in the image. A value of zero means no maximum.mimetype
- the mimetype of the output imageout
- the OutputStream to render the image toMethod Detail |
---|
public void render(Graph gr) throws IOException
Output
render
in class ImageOutput
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |