public class SVGImageRenderer extends Object implements ImageRenderer
Constructor and Description |
---|
SVGImageRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRender(String contentType) |
boolean |
drawImage(Graphics2D graphics,
Rectangle2D anchor) |
boolean |
drawImage(Graphics2D graphics,
Rectangle2D anchor,
Insets clip) |
Rectangle2D |
getBounds() |
BufferedImage |
getImage() |
BufferedImage |
getImage(Dimension2D dim) |
Rectangle2D |
getNativeBounds() |
org.apache.batik.gvt.GraphicsNode |
getSVGRoot() |
void |
loadImage(byte[] data,
String contentType) |
void |
loadImage(InputStream data,
String contentType) |
void |
setAlpha(double alpha) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCachedContentType, getCachedImage, getDimension, getGenericRecord, setCacheInput, setDefaultCharset
public void loadImage(InputStream data, String contentType) throws IOException
loadImage
in interface ImageRenderer
IOException
public void loadImage(byte[] data, String contentType) throws IOException
loadImage
in interface ImageRenderer
IOException
public Rectangle2D getBounds()
getBounds
in interface ImageRenderer
public void setAlpha(double alpha)
setAlpha
in interface ImageRenderer
public BufferedImage getImage()
getImage
in interface ImageRenderer
public BufferedImage getImage(Dimension2D dim)
getImage
in interface ImageRenderer
public boolean drawImage(Graphics2D graphics, Rectangle2D anchor)
drawImage
in interface ImageRenderer
public boolean drawImage(Graphics2D graphics, Rectangle2D anchor, Insets clip)
drawImage
in interface ImageRenderer
public boolean canRender(String contentType)
canRender
in interface ImageRenderer
public Rectangle2D getNativeBounds()
getNativeBounds
in interface ImageRenderer
public org.apache.batik.gvt.GraphicsNode getSVGRoot()