Class RasterScanner
java.lang.Object
org.pushingpixels.radiance.tools.svgtranscoder.internal.RasterScanner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringconvertToBase64String(RenderedImage renderedImage) static StringgetMD5(RenderedImage renderedImage) booleanvoidscan(org.apache.batik.gvt.GraphicsNode gvtRoot) Scans the SVG image for raster contentprivate voidscanCompositeGraphicsNode(org.apache.batik.gvt.CompositeGraphicsNode node) Scans the specified composite graphics node.private voidscanCompositeShapePainter(org.apache.batik.gvt.CompositeShapePainter painter) Scans the specified composite shape painter.private voidscanFillShapePainter(org.apache.batik.gvt.FillShapePainter painter) Scans the specified fill shape painter.private voidscanGraphicsNode(org.apache.batik.gvt.GraphicsNode node) Scans the specified graphics node.private voidscanMarkerShapePainter(org.apache.batik.gvt.MarkerShapePainter painter) Scans the specified marker shape painter.private voidScans the specified paint.private voidscanPatternPaint(org.apache.batik.gvt.PatternPaint paint) private voidscanRasterImageNode(org.apache.batik.gvt.RasterImageNode node) private voidscanShapeNode(org.apache.batik.gvt.ShapeNode node) Scans the specified shape node.private voidscanShapePainter(org.apache.batik.gvt.ShapePainter painter) Scans the specified shape painter.private voidscanStrokeShapePainter(org.apache.batik.gvt.StrokeShapePainter painter) Scans the specified stroke shape painter.private void
-
Field Details
-
printWriter
-
languageRenderer
-
processedMD5s
-
-
Constructor Details
-
RasterScanner
-
-
Method Details
-
scan
public void scan(org.apache.batik.gvt.GraphicsNode gvtRoot) Scans the SVG image for raster content- Parameters:
gvtRoot- Graphics vector tree root.
-
hasRasters
public boolean hasRasters() -
scanPatternPaint
private void scanPatternPaint(org.apache.batik.gvt.PatternPaint paint) -
scanPaint
Scans the specified paint.- Parameters:
paint- Paint.- Throws:
UnsupportedOperationException- if the paint is unsupported.
-
scanShapePainter
private void scanShapePainter(org.apache.batik.gvt.ShapePainter painter) throws UnsupportedOperationException Scans the specified shape painter.- Parameters:
painter- Shape painter.- Throws:
UnsupportedOperationException- if the shape painter is unsupported.
-
scanCompositeShapePainter
private void scanCompositeShapePainter(org.apache.batik.gvt.CompositeShapePainter painter) Scans the specified composite shape painter.- Parameters:
painter- Composite shape painter.
-
scanFillShapePainter
private void scanFillShapePainter(org.apache.batik.gvt.FillShapePainter painter) Scans the specified fill shape painter.- Parameters:
painter- Fill shape painter.
-
scanStrokeShapePainter
private void scanStrokeShapePainter(org.apache.batik.gvt.StrokeShapePainter painter) Scans the specified stroke shape painter.- Parameters:
painter- Stroke shape painter.
-
scanMarkerShapePainter
private void scanMarkerShapePainter(org.apache.batik.gvt.MarkerShapePainter painter) Scans the specified marker shape painter.- Parameters:
painter- Marker shape painter.
-
scanShapeNode
private void scanShapeNode(org.apache.batik.gvt.ShapeNode node) Scans the specified shape node.- Parameters:
node- Shape node.
-
scanCompositeGraphicsNode
private void scanCompositeGraphicsNode(org.apache.batik.gvt.CompositeGraphicsNode node) Scans the specified composite graphics node.- Parameters:
node- Composite graphics node.
-
transcodeRenderedImage
-
scanRasterImageNode
private void scanRasterImageNode(org.apache.batik.gvt.RasterImageNode node) -
scanGraphicsNode
private void scanGraphicsNode(org.apache.batik.gvt.GraphicsNode node) throws UnsupportedOperationException Scans the specified graphics node.- Parameters:
node- Graphics node.- Throws:
UnsupportedOperationException- if the graphics node is unsupported.
-
convertToBase64String
-
getMD5
-