public class VecImg
extends java.lang.Object
Constructor and Description |
---|
VecImg(JPiv jpiv,
java.lang.String pathname)
Creates a new instance of VecImg
|
Modifier and Type | Method and Description |
---|---|
void |
drawIntoVectorGraphicsFile(java.lang.String filename,
java.lang.String format)
Export the vector plot in a vector based format like eps, pdf, svg etc.
|
javax.media.jai.PlanarImage |
getAsPlanarImage()
Returns the data as a Planar Image
|
java.lang.String |
getFilename()
Returns the name of the data file.
|
PivData |
getPivData()
Get the PIV data.
|
double[] |
getVectorAt(int x,
int y)
Get the vector at a point x, y.
|
void |
setShapeList(java.util.ArrayList<java.awt.Shape> shapeList)
Copy a list of shapes into the VecImg.
|
public VecImg(JPiv jpiv, java.lang.String pathname)
jpiv
- The parent component.pathname
- The pathname of the UTF-8 file containing vector data.public javax.media.jai.PlanarImage getAsPlanarImage()
public void drawIntoVectorGraphicsFile(java.lang.String filename, java.lang.String format)
filename
- the filenameformat
- one of the following format strings: "eps", "pdf", "svg",
"emf", or "swf"public java.lang.String getFilename()
public double[] getVectorAt(int x, int y)
x
- The x coordinate in pixel (zero at upper left corner).y
- The y coordinate in pixel (zero at upper left corner).public PivData getPivData()
public void setShapeList(java.util.ArrayList<java.awt.Shape> shapeList)
shapeList
- A list of shapes.