|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jv.loader.PgJvxLoader
Loader for geometry files given in JavaView's JVX file format. For details see the webpage on supported file formats.
| Constructor Summary | |
PgJvxLoader()
|
|
| Method Summary | |
PvDisplayOption |
getDisplayOption()
Get display options which some parsers and geometry file formats supply. |
boolean |
isAnimation()
Determine if currently loaded data is an animation. |
static java.lang.String[][] |
parseFunList(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
Parse an array of PsXmlNodes of same element type, where each element has data consisting of a blank separated list of functions to be interpreted. |
PgJvxSrc[] |
read(java.io.BufferedReader in)
Read XML file and fill a new PsJvxSrc class. |
static PgJvxSrc[] |
read(java.lang.String fileName)
Read geometry from file in JavaView JVX format. |
void |
setAnimation(boolean flag)
Set flag whether current geometry data is an animation. |
void |
setDisplayOption(PvDisplayOption option)
Set the display options to be saved within the geometry file. |
static java.lang.String |
write(PgJvxSrc[] geom)
Write all geometries in a XML tree structure of instances of type PsXmlNode and create a XML formatted string. |
boolean |
write(java.io.Writer writer,
PgJvxSrc[] geom)
Write all geometries in a XML tree structure of instances of type PsXmlNode and into a writer. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PgJvxLoader()
| Method Detail |
public PvDisplayOption getDisplayOption()
getDisplayOption in interface PgLoaderIfpublic void setDisplayOption(PvDisplayOption option)
setDisplayOption in interface PgLoaderIfpublic boolean isAnimation()
isAnimation in interface PgLoaderIfpublic void setAnimation(boolean flag)
setAnimation in interface PgLoaderIfpublic static PgJvxSrc[] read(java.lang.String fileName)
fileName - File or URL to read data from.public PgJvxSrc[] read(java.io.BufferedReader in)
read in interface PgLoaderIfin - BufferedReader to read textual data from.
public boolean write(java.io.Writer writer,
PgJvxSrc[] geom)
PsXmlNode and into a writer.write in interface PgLoaderIfwriter - Write all data to this streamgeom - Array with geometries to savetrue on success.write(PgJvxSrc [])public static java.lang.String write(PgJvxSrc[] geom)
PsXmlNode and create a XML formatted string.geom - Array with geometries to savewrite(Writer, PgJvxSrc [])
public static java.lang.String[][] parseFunList(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
parentNode - parent node containing a set of color nodes as childrentype - type of elements in arrayattr - array of attributes the vector might have, may be null.
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||