public class ExportParameters
extends java.lang.Object
WebExportParameters
, which is an
Attribute
that can be stored in a model.Red (cxh) |
Red (cxh) |
Modifier and Type | Field and Description |
---|---|
protected NamedObj |
_jsCopier
Directory into which JavaScript and related files have been written,
or null if they are not being copied.
|
java.awt.Color |
backgroundColor
Background color.
|
boolean |
copyJavaScriptFiles
If true, then make an exported web page stand alone.
|
boolean |
deleteFilesOnExit
If true, files generated will be deleted when the JVM terminates.
|
java.io.File |
directoryToExportTo
The directory to export to.
|
java.lang.String |
HTMLPathForFiles
The path to use for accessing the file in the HTML code.
|
java.lang.String |
imageFormat
The image format to use, which can be one of "gif" (the default),
"png", or "jpg".
|
boolean |
openCompositesBeforeExport
If true, hierarchically open all composite actors
in the model before exporting (so that these also
get exported, and hyperlinks to them are created).
|
boolean |
runBeforeExport
If true, run the model before exporting (to open plotter
or other display windows that get exported).
|
boolean |
showInBrowser
If true, open a web browser to display the resulting
export.
|
boolean |
usePtWebsite
If true, use the server-side includes of the Ptolemy website.
|
Constructor and Description |
---|
ExportParameters()
Construct an instance of this data structure with
default values, which are
null for backgroundColor,
false for copyJavaScriptFiles,
null for directoryToExportTo,
false for openCompositesBeforeExport,
false for runBeforeExport,
and true for showInBrowser.
|
ExportParameters(java.io.File directoryToExportTo)
Construct an instance of this data structure with
default values, which are
null for backgroundColor,
false for copyJavaScriptFiles,
false for deleteFilesOnExit,
false for openCompositesBeforeExport,
false for runBeforeExport,
true for showInBrowser,
and empty String for HTMLPathForFiles.
|
ExportParameters(java.io.File directoryToExportTo,
ExportParameters template)
Construct an instance of this data structure that is
identical to the one given except for directoryToExportTo,
which is as specified.
|
Modifier and Type | Method and Description |
---|---|
NamedObj |
getJSCopier()
Get the composite entity that
is copying JavaScript and
related files; return null if they are not being copied.
|
void |
setJSCopier(NamedObj copier)
Specify the composite entity responsible for copying JavaScript and
related files.
|
public java.awt.Color backgroundColor
public boolean copyJavaScriptFiles
public boolean deleteFilesOnExit
public java.io.File directoryToExportTo
public java.lang.String HTMLPathForFiles
<img src="/files/imagename.gif"/>even though the image is stored in $PTT/org/ptolemy/ptango/temp, since the resource handler is mapped to http://hostname:port/servicename/files.
public java.lang.String imageFormat
public boolean openCompositesBeforeExport
public boolean runBeforeExport
public boolean showInBrowser
public boolean usePtWebsite
protected NamedObj _jsCopier
public ExportParameters()
public ExportParameters(java.io.File directoryToExportTo)
directoryToExportTo
- The directory to export to.public ExportParameters(java.io.File directoryToExportTo, ExportParameters template)
directoryToExportTo
- The directory to export to.template
- The template parameters.public NamedObj getJSCopier()
setJSCopier(NamedObj)
public void setJSCopier(NamedObj copier)
copier
- The composite entity responsible for
copying JavaScript and related files.getJSCopier()