public class SVGRasterLayer extends RasterLayer
| Modifier and Type | Field and Description |
|---|---|
protected SVGGraphics |
svgGraphics
Underlying SVG Graphics
|
protected double |
xscale
The scale of the image on the x-axis in terms of pixels per input units
|
protected double |
yscale
The scale of the image on the y-axis in terms of pixels per input units
|
height, inputMBR, width| Constructor and Description |
|---|
SVGRasterLayer()
Default constructor is necessary to be able to deserialize it
|
SVGRasterLayer(Rectangle inputMBR,
int width,
int height)
Creates a raster layer of the given size for a given (portion of) input
data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawShape(Shape shape) |
void |
mergeWith(SVGRasterLayer intermediateLayer) |
void |
readFields(java.io.DataInput in) |
void |
write(java.io.DataOutput out) |
void |
writeToFile(java.io.PrintStream ps) |
getHeight, getInputMBR, getWidth, projectToImageSpaceprotected SVGGraphics svgGraphics
protected double xscale
protected double yscale
public SVGRasterLayer()
public SVGRasterLayer(Rectangle inputMBR, int width, int height)
inputMBR - - the MBR of the input area to rasterizewidth - - width the of the image to generate in pixelsheight - - height of the image to generate in pixelspublic void write(java.io.DataOutput out)
throws java.io.IOException
write in class RasterLayerjava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in class RasterLayerjava.io.IOExceptionpublic void drawShape(Shape shape)
public void mergeWith(SVGRasterLayer intermediateLayer)
public void writeToFile(java.io.PrintStream ps)