public static class SVGPlot.SVGRasterizer extends Rasterizer
| Constructor and Description |
|---|
SVGPlot.SVGRasterizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration conf)
Configures this rasterizer according to the MapReduce program.
|
RasterLayer |
createRaster(int width,
int height,
Rectangle mbr)
Creates an empty raster layer of the given width and height.
|
java.lang.Class<? extends RasterLayer> |
getRasterClass()
Returns the raster class associated with this rasterizer
|
void |
merge(RasterLayer finalLayer,
RasterLayer intermediateLayer)
Merges an intermediate layer into the final layer based on its location
|
void |
rasterize(RasterLayer rasterLayer,
Shape shape)
Rasterizes one shape to the given layer
|
void |
writeImage(RasterLayer layer,
java.io.DataOutputStream out,
boolean vflip)
Writes a raster layer as an image to the output.
|
getRadius, getRasterizer, isSmooth, rasterize, rasterize, setRasterizer, smoothpublic void configure(Configuration conf)
Rasterizerconfigure in class Rasterizerpublic RasterLayer createRaster(int width, int height, Rectangle mbr)
RasterizercreateRaster in class Rasterizerwidth - - Width of the created layer in pixelsheight - - Height of the created layer in pixelsmbr - - The minimal bounding rectangle of the layer in the inputpublic void rasterize(RasterLayer rasterLayer, Shape shape)
Rasterizerrasterize in class RasterizerrasterLayer - - the layer to rasterize to. This layer has to be created
using the method Rasterizer.createRaster(int, int, Rectangle).shape - - the shape to rasterizepublic java.lang.Class<? extends RasterLayer> getRasterClass()
RasterizergetRasterClass in class Rasterizerpublic void merge(RasterLayer finalLayer, RasterLayer intermediateLayer)
Rasterizermerge in class Rasterizerpublic void writeImage(RasterLayer layer, java.io.DataOutputStream out, boolean vflip) throws java.io.IOException
RasterizerwriteImage in class Rasterizerlayer - - the layer to be written to the output as an imageout - - the output stream to which the image will be writtenvflip - - if true, the image is vertically flipped before writtenjava.io.IOException