public final class PgHtmlLoader
extends java.lang.Object
Additionally, provides functionality for exporting geometries and images for validation and bug reporting.
Constructor and Description |
---|
PgHtmlLoader() |
Modifier and Type | Method and Description |
---|---|
static PsXmlSrc |
write(java.lang.String jvxFile,
java.lang.String jvdFile,
int width,
int height)
Write an Html file as XML tree which shows a JVX file in an applet.
|
static boolean |
write(java.io.Writer writer,
java.lang.String jvxFile,
java.lang.String jvdFile,
int width,
int height)
Write an Html file which displays a JVX file in an applet.
|
static PsXmlSrc |
writeValidate(java.lang.String title,
PsAuthorInfo authorInfo,
PsGeometryInfo geometryInfo,
java.lang.String codeBase,
java.lang.String jvxFile,
java.lang.String jvdFile,
java.lang.String imgFile,
int width,
int height,
java.lang.String jvzFile)
Generate an Html file as XML tree which displays an image, a JavaView applet and a jvLite applet.
|
static boolean |
writeValidate(java.io.Writer writer,
java.lang.String title,
PsAuthorInfo authorInfo,
PsGeometryInfo geometryInfo,
java.lang.String codeBase,
java.lang.String jvxFile,
java.lang.String jvdFile,
java.lang.String imgFile,
int width,
int height,
java.lang.String jvzFile)
Write an Html file which displays an image, a JavaView applet and a jvLite applet.
|
static PsXmlSrc |
writeValidateDescr(java.lang.String title,
PsAuthorInfo authorInfo,
PsGeometryInfo geometryInfo,
java.lang.String jvxFile,
java.lang.String jvdFile,
java.lang.String imgFile,
int width,
int height,
java.lang.String jvzFile,
boolean bValidate)
Generate an Html file as XML tree which displays an image, a JavaView applet and a jvLite applet.
|
public static boolean write(java.io.Writer writer, java.lang.String jvxFile, java.lang.String jvdFile, int width, int height) throws java.io.IOException
jvxFile
- Name of JVX geometry file to be loaded by the applet, without path information.jvdFile
- Name of JVD display file to be loaded by the applet, without path information.width
- width of appletheight
- height of applettrue
on success.java.io.IOException
write(String, String, int, int)
public static PsXmlSrc write(java.lang.String jvxFile, java.lang.String jvdFile, int width, int height)
jvxFile
- Name of JVX geometry file to be loaded by the applet, without path information.jvdFile
- Name of JVD display file to be loaded by the applet, without path information.width
- width of appletheight
- height of appletpublic static boolean writeValidate(java.io.Writer writer, java.lang.String title, PsAuthorInfo authorInfo, PsGeometryInfo geometryInfo, java.lang.String codeBase, java.lang.String jvxFile, java.lang.String jvdFile, java.lang.String imgFile, int width, int height, java.lang.String jvzFile) throws java.io.IOException
The geometry and image files must be generated elsewhere.
The writer must store the HTML file relative to the same codebase as the geometry and display files. For example, storing all files in a same subdirectory of the codebase is a good choice.
writer
- Writer writes HTML file relative to codebase.title
- Title of generated HTML page.authorInfo
- Displayed on the HTML file.geometryInfo
- Contains major description information about this HTML page.codeBase
- Codebase for the JavaView archives to be used in the codebase applet tag.jvxFile
- Relative name of JVX geometry file to be loaded by the applet, without path information.jvdFile
- Relative name of JVD display file to be loaded by the applet, without path information.imgFile
- Relative name of preview image.width
- width of appletheight
- height of appletjvzFile
- Relative name of JVZ geometry file to be loaded by the applet, without path information.true
on success.java.io.IOException
public static PsXmlSrc writeValidate(java.lang.String title, PsAuthorInfo authorInfo, PsGeometryInfo geometryInfo, java.lang.String codeBase, java.lang.String jvxFile, java.lang.String jvdFile, java.lang.String imgFile, int width, int height, java.lang.String jvzFile)
The geometry and image files must be generated elsewhere.
The writer must store the HTML file relative to the same codebase as the geometry and display files. For example, storing all files in a same subdirectory of the codebase is a good choice.
title
- Title of generated HTML page.authorInfo
- Displayed on the HTML file.geometryInfo
- Contains major description information about this HTML page.codeBase
- Codebase for the JavaView archives to be used in the codebase applet tag.jvxFile
- Relative name of JVX geometry file to be loaded by the applet, without path information.jvdFile
- Relative name of JVD display file to be loaded by the applet, without path information.imgFile
- Relative name of preview image.width
- width of appletheight
- height of appletjvzFile
- Relative name of JVZ geometry file to be loaded by the applet, without path information.true
on success.public static PsXmlSrc writeValidateDescr(java.lang.String title, PsAuthorInfo authorInfo, PsGeometryInfo geometryInfo, java.lang.String jvxFile, java.lang.String jvdFile, java.lang.String imgFile, int width, int height, java.lang.String jvzFile, boolean bValidate)
The geometry and image files must be generated elsewhere.
The writer must store the HTML file relative to the same codebase as the geometry and display files. For example, storing all files in a same subdirectory of the codebase is a good choice.
title
- Title of generated HTML page.authorInfo
- Displayed on the HTML file.geometryInfo
- Contains major description information about this HTML page.jvxFile
- Relative name of JVX geometry file to be loaded by the applet, without path information.jvdFile
- Relative name of JVD display file to be loaded by the applet, without path information.imgFile
- Relative name of preview image.width
- width of appletheight
- height of appletjvzFile
- Relative name of JVZ geometry file to be loaded by the applet, without path information.bValidate
- Determines if validation file or bug report is generated.true
on success."