|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSVGAbstractTranscoder
simtools.images.svg.FactoryTranscoder
public class FactoryTranscoder
The transcoder is in charge of processing an SVG file to paint an image
SVGAbstractTranscoder
Field Summary | |
---|---|
protected ImageHolder |
imageHolder
|
protected int |
originalHeight
|
protected int |
originalWidth
|
protected int |
requestedHeight
|
protected int |
requestedWidth
|
Constructor Summary | |
---|---|
FactoryTranscoder(ImageHolder ie)
|
Method Summary | |
---|---|
protected java.awt.image.BufferedImage |
createImage(int width,
int height)
Generate the image to be painted This default implementation generates an ARGB image i.e. with tansparency features |
int |
getHeight()
|
int |
getWidth()
|
void |
rasterize(TranscoderInput tinput,
int w,
int h)
Generate the image |
protected void |
sendImage(java.awt.image.BufferedImage img)
Send the image to all the users |
protected void |
transcode(org.w3c.dom.Document document,
java.lang.String uri,
TranscoderOutput output)
Transcodes the specified Document as an image in the specified output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ImageHolder imageHolder
protected int requestedWidth
protected int requestedHeight
protected int originalWidth
protected int originalHeight
Constructor Detail |
---|
public FactoryTranscoder(ImageHolder ie)
Method Detail |
---|
public void rasterize(TranscoderInput tinput, int w, int h) throws TranscoderException
tinput
- the input documentw
- the image widthh
- the image height
TranscoderException
public int getWidth()
public int getHeight()
protected void transcode(org.w3c.dom.Document document, java.lang.String uri, TranscoderOutput output) throws TranscoderException
document
- the document to transcodeuri
- the uri of the document or null if anyoutput
- the ouput where to transcode
TranscoderException
- if an error occured while transcodingprotected java.awt.image.BufferedImage createImage(int width, int height)
width
- the image widthheight
- the image height
protected void sendImage(java.awt.image.BufferedImage img)
img
- the painted image
TranscoderException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |