Package ucar.unidata.idv.ui
Class ImageGenerator
java.lang.Object
ucar.unidata.ui.WindowHolder
ucar.unidata.idv.IdvManager
ucar.unidata.idv.ui.ImageGenerator
- All Implemented Interfaces:
ActionListener
,EventListener
,IdvConstants
Manages the user interface for the IDV
- Author:
- IDV development team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Class MyBreakException for handling break tagsprotected static class
Class MyContinueException for handling continue tagsprotected static class
Class descriptionprotected static class
Class MyReturnException allows us to return from a isl procedure by throwing an exception. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
x aspect attributestatic final String
y aspect attributestatic final String
z aspect attributestatic final String
azimuth attributestatic final String
isl tagstatic final String
bounding box attributestatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
the count tagstatic final String
dashes tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
the draw lat lines tagstatic final String
the draw lon lines tagstatic final String
bounding time driver time attributestatic final String
bounding time driver time attributestatic final String
isl tagstatic final String
isl tag for ending frame pause for animated gifsstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl attrstatic final String
isl tagstatic final String
isl attrstatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
index attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
that latlabels tagstatic final String
that latvalues tagstatic final String
isl tagstatic final String
from level attributestatic final String
to level attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
linewidth tagstatic final String
isl tagstatic final String
that lonlabels tagstatic final String
that lonvalues tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
x rotation attributestatic final String
y rotation attributestatic final String
z rotation attributestatic final String
isl tagstatic final String
scale attributestatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
showunit atttributestatic final String
isl tagstatic final String
isl attributestatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
bottom space attributestatic final String
left space attributestatic final String
right space attributestatic final String
top space attributestatic final String
stride attributestatic final String
x stride attributestatic final String
y stride attributestatic final String
z stride attributestatic final String
suffix attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
tilt attributestatic final String
isl tagstatic final String
isl attrstatic final String
top attributestatic final String
transparency attributestatic final String
x translation attributestatic final String
y translation attributestatic final String
z translation attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl attributestatic final String
the valign attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
the view dir attributestatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl attributestatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
macro propertystatic final String
macro propertystatic final String
file propertystatic final String
filenosuffix propertystatic final String
fileprefix propertystatic final String
filetail propertystatic final String
filetailnosuffix propertystatic final String
macro propertystatic final String
macro propertystatic final String
macro propertystatic final String
macro propertystatic final String
padded loop indexstatic final String
padded loop indexstatic final String
padded loop indexstatic final String
macro propertystatic final String
macro propertystatic final String
macro propertystatic final String
isl tagstatic final String
background transparent tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
datasource tagstatic final String
isl tagstatic final String
displaylist tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
kml colorbar tagstatic final String
isl tagstatic final String
that latlonlabels tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
publish tagstatic final String
isl tagstatic final String
isl tagstatic final String
show tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
isl tagstatic final String
view tagstatic final String
viewpoint tagstatic final String
isl tagstatic final String
attr valuestatic final String
isl attributestatic final String
attr valuestatic final String
isl attributestatic final String
attr valuestatic final String
attr valuestatic final String
attr valuestatic final String
attr valuestatic final String
attr valuestatic final String
isl attributestatic final String
attr valueFields inherited from class ucar.unidata.ui.WindowHolder
contents, dialog, frame, window
Fields inherited from interface ucar.unidata.idv.IdvConstants
ARG_B64BUNDLE, ARG_B64ISL, ARG_BUNDLE, ARG_CATALOG, ARG_CHOOSER, ARG_CLEARDEFAULT, ARG_CODE, ARG_CONNECT, ARG_CURRENTTIME, ARG_DATA, ARG_DEBUG, ARG_DEFAULT, ARG_DISPLAY, ARG_DXML, ARG_FIXEDTIME, ARG_HELP, ARG_IMAGE, ARG_IMAGESERVER, ARG_INSTALLPLUGIN, ARG_ISLFILE, ARG_ISLINTERACTIVE, ARG_LISTRESOURCES, ARG_MAINCLASS, ARG_MOVIE, ARG_MSG_DEBUG, ARG_MSG_RECORD, ARG_NODEFAULT, ARG_NOERRORSINGUI, ARG_NOGUI, ARG_NOONEINSTANCE, ARG_NOPLUGINS, ARG_NOPREF, ARG_ONEINSTANCEPORT, ARG_PLUGIN, ARG_PORT, ARG_PRINTJNLP, ARG_PROPERTIES, ARG_SCRIPT, ARG_SERVER, ARG_SETFILES, ARG_SITEPATH, ARG_TEMPLATE, ARG_TEST, ARG_TESTEVAL, ARG_TRACE, ARG_TRACEONLY, ARG_USERPATH, DEFAULT_DATE_FORMAT, DEFAULT_DOCPATH, DEFAULT_TIMEZONE, FILTER_CPT, FILTER_ISL, FILTER_JNLP, FILTER_XIDV, FILTER_XIDVZIDV, FILTER_XML, FILTER_ZIDV, ID_COMMANDSTORUN, ID_DATASOURCES, ID_DISPLAYCONTROLS, ID_IDV, ID_JYTHON, ID_MESSAGE, ID_MISCHASHTABLE, ID_NCIDV_VERSION, ID_VERSION, ID_VIEWMANAGERS, ID_WINDOWS, INITIAL_PROBE_EARTHLOCATION, NULL_DATA_SELECTION, NULL_STRING, PREF_APPEARANCEMODE, PREF_ARCHIVEDIR, PREF_ARCHIVENAME, PREF_AUTODISPLAYS_ENABLE, PREF_AUTODISPLAYS_SHOWGUI, PREF_AUTOSELECTDATA, PREF_CACHESIZE, PREF_CONTROLSINTABS, PREF_DATAPREFIX, PREF_DATE_FORMAT, PREF_DISTANCEUNIT, PREF_DOCACHE, PREF_EMBEDDATACHOOSERINDASHBOARD, PREF_EMBEDFIELDSELECTORINDASHBOARD, PREF_EMBEDLEGENDINDASHBOARD, PREF_EMBEDQUICKLINKSINDASHBOARD, PREF_EVENT_KEYBOARDMAP, PREF_EVENT_MOUSEMAP, PREF_EVENT_WHEELMAP, PREF_FAST_RENDER, PREF_FIELD_CACHETHRESHOLD, PREF_FILEREADDIR, PREF_FILEWRITEDIR, PREF_GEOMETRY_BY_REF, PREF_HISTORY, PREF_IMAGE_BY_REF, PREF_LARGE_REMOTE_DATA_WARN, PREF_LASTVERSION, PREF_LATLON_FORMAT, PREF_LEGEND_SHOWICONS, PREF_LOCALE, PREF_LOOKANDFEEL, PREF_MAXIMAGESIZE, PREF_MEMORY, PREF_NPOT_IMAGE, PREF_OPEN_ASK, PREF_OPEN_MERGE, PREF_OPEN_REMOVE, PREF_PROJ_LIST, PREF_SAMPLINGMODE, PREF_SHOWCONTROLWINDOW, PREF_SHOWDASHBOARD, PREF_SHOWDECODEDIALOG, PREF_SHOWHIDDENFILES, PREF_SHOWQUITCONFIRM, PREF_SITEPATH, PREF_THREADS_DATA, PREF_THREADS_RENDER, PREF_TIMEZONE, PREF_VERTICALCS, PREF_VERTICALUNIT, PREF_WINDOW_SHOWTOOLBAR, PREF_ZIDV_ASK, PREF_ZIDV_DIRECTORY, PREF_ZIDV_SAVETOTMP, PROP_3DMODE, PROP_ABOUTTEXT, PROP_APPRESOURCEPATH, PROP_CHOOSERS, PROP_CHOOSERS_ALL, PROP_CONTROLDESCRIPTORS, PROP_CONTROLDESCRIPTORS_ALL, PROP_DATAHOLDERBOUNDS, PROP_DEFAULTLOCATIONS, PROP_DISPLAYLIST_GROUP, PROP_FIXFILELOCKUP, PROP_JNLPCODEBASE, PROP_JNLPTEMPLATE, PROP_JNLPTITLE, PROP_LOADINGXML, PROP_MAP_GLOBE_LEVEL, PROP_MAP_MAP_LEVEL, PROP_MINIMUMFRAMECYCLETIME, PROP_MONITORPORT, PROP_OLDCONTROLDESCRIPTORS, PROP_ONEINSTANCEPORT, PROP_PREFERENCES, PROP_PROJ_NAME, PROP_RESOURCEFILES, PROP_SHOWCLOCK_DASH, PROP_SHOWCLOCK_VIEW, PROP_SHOWDASHBOARD, PROP_SHOWDATATREE, PROP_SHOWFORMULAS, PROP_SHOWSPLASH, PROP_SPLASHICON, PROP_UI_DESKTOP, PROP_USE_DISPLAYAREA, PROP_USE_TIMEDRIVER, PROP_VERSIONFILE, PROP_WINDOW_SCREENSIZEOFFSET, PROP_WINDOW_SIZEHEIGHT, PROP_WINDOW_SIZEWIDTH, PROP_WINDOW_USESCREENSIZE, SUFFIX_BAT, SUFFIX_CPT, SUFFIX_ISL, SUFFIX_JNLP, SUFFIX_RBI, SUFFIX_SH, SUFFIX_XIDV, SUFFIX_XML, SUFFIX_ZIDV
-
Constructor Summary
ConstructorsConstructorDescriptionCreate me with the IDVImageGenerator
(IntegratedDataViewer idv, List scriptFiles) Create me with the IDV and start processing files -
Method Summary
Modifier and TypeMethodDescriptionDo the macro substitutionapplyMacros
(Element node, String attr) Find the attribute value of the given node.boolean
applyMacros
(Element node, String attr, boolean dflt) If the attribute does not exist return the dflt.double
applyMacros
(Element node, String attr, double dflt) If the attribute does not exist return the dflt.int
applyMacros
(Element node, String attr, int dflt) If the attribute does not exist return the dflt.applyMacros
(Element node, String attr, Color dflt) If the attribute does not exist return the dflt.applyMacros
(Element node, String attr, String dflt) If the attribute does not exist return the dflt.void
captureImage
(String filename) Capture an image from the first active view managersvoid
captureMovie
(String filename) Capture a movie from the first view managervoid
captureMovie
(String filename, Element scriptingNode) Capture the movieprotected void
Print the message if in debug modedoLatLonLabels
(Element child, ViewManager viewManager, BufferedImage image, Hashtable imageProps) Process the lat/lon labels tagdoMatte
(BufferedImage image, Element child, int dfltSpace) Matte the imagedoMatte
(BufferedImage image, Element child, Insets insets) Matte the imagevoid
Called to notify this object that the movie capture is doneprotected boolean
Utility to print a message and return false.protected boolean
Utility to print a message and return false.boolean
evaluateIsl
(String isl) Evaluate the given islcallable by jython to find the data choices that match the given patternFind the display control identified by the given idfindDisplayControl
(String id, List<DisplayControlImpl> controls) Find the display controlstatic void
Do an FTP put of the given bytesFind the animation time of the first Animation in a view manager we findgetError()
getImage()
Get the Image of the current displayGet the insetsgetLetter
(int i) Get the letter for the indexprotected String[]
getPropertyValue
(Element node) Get the property valuegetRoman
(int i) Get the roman numeralvoid
loadBundle
(String bundleFile, List setFiles) Load the given bundle filevoid
loadBundle
(String bundleFile, List setFiles, int width, int height) Load the given bundle file, list of datasets, width and heightvoid
loadBundle
(String bundleFile, List setFiles, int width, int height, String times, boolean clear) Load the given bundle file, list of datasets, width and heightprotected static String
Create XML from the input StringmatteImage
(BufferedImage image, String bgString, int top, int left, int bottom, int right) Matte the imagevoid
pause()
Wait until all displays are builtprotected BufferedImage
processImage
(BufferedImage image, String filename, Element node, Hashtable props, ViewManager viewManager, Hashtable imageProps) Process the imageboolean
processScriptFile
(String islFile) Process the isl filesboolean
processScriptFile
(String islFile, Hashtable properties) Process the script fileboolean
processScriptFile
(String islFile, Hashtable properties, boolean interactive) Process the script filevoid
processScriptFiles
(List scriptFiles) Process the list of isl filesprotected boolean
processTagAnimation
(Element node) Handle the animation tag.protected boolean
processTagAppend
(Element node) Handle the append tagprotected boolean
processTagAsk
(Element node) process the given nodeprotected boolean
process the given nodeprotected boolean
processTagBeep
(Element node) make a beepprotected boolean
processTagBreak
(Element node) process the given nodeprotected boolean
processTagBundle
(Element node) process the given nodeprotected boolean
processTagCall
(Element node) process the given nodeprotected boolean
processTagCall
(Element node, Element procNode) process the given nodeprotected boolean
processTagCenter
(Element node) process the given nodeprotected boolean
processTagClear
(Element node) Handle the clear tagprotected boolean
processTagContinue
(Element node) process the given nodeprotected boolean
processTagCopy
(Element node) process the given nodeprotected boolean
processTagDatasource
(Element node) process the given nodeprotected boolean
processTagDelete
(Element node) process the given nodeprotected boolean
processTagDisplay
(Element node) process the given nodeprotected boolean
Process tag display propertiesprotected boolean
processTagEcho
(Element node) process the given nodeprotected boolean
processTagExec
(Element node) process the given nodeprotected boolean
processTagExists
(Element node) process the given nodeprotected boolean
processTagExport
(Element node) Process the export tag.protected boolean
processTagFileset
(Element node) process the given nodeprotected boolean
processTagFor
(Element node) Process the "for" tagprotected boolean
processTagForeach
(Element node) process the given nodeprotected boolean
processTagFtp
(Element node) process the given nodeprotected boolean
processTagGc
(Element node) process the given nodeprotected boolean
processTagGroup
(Element node) process the given nodeprotected boolean
processTagHtml
(Element node) process the given nodeprotected boolean
processTagIdvproperty
(Element node) Process IDV property tagprotected boolean
processTagIf
(Element node) process the given nodeprotected boolean
processTagImage
(Element node) process the given nodeprotected boolean
processTagImport
(Element node) process the given nodeprotected boolean
processTagIncrement
(Element node) Handle the append tagprotected boolean
processTagIsl
(Element node) process the given nodeprotected boolean
processTagJoin
(Element node) process the given nodeprotected boolean
processTagJython
(Element node) process the given nodeprotected boolean
Load a directory to the file chooserprotected boolean
processTagLoadcatalog
(Element node) Load a catalog URLprotected boolean
processTagMkdir
(Element node) process the given nodeprotected boolean
processTagMove
(Element node) process the given nodeprotected boolean
processTagMovie
(Element node) process the given nodeprotected boolean
processTagOutput
(Element node) process the given nodeprotected boolean
processTagPanel
(Element node) process the given nodeprotected boolean
processTagPause
(Element node) process the given nodeprotected boolean
processTagPrintcache
(Element node) Process the print cache tagprotected boolean
processTagProcedure
(Element node) process the given nodeprotected boolean
processTagProjection
(Element node) process the given nodeprotected boolean
processTagProperty
(Element node) process the given nodeprotected boolean
processTagPublish
(Element node) protected boolean
processTagReload
(Element node) process the given nodeprotected boolean
processTagRemoveall
(Element node) process the given nodeprotected boolean
process the given nodeprotected boolean
processTagRename
(Element node) process the given nodeprotected boolean
processTagReplace
(Element node) Handle the append tagprotected boolean
processTagReturn
(Element node) process the given nodeprotected boolean
processTagSave
(Element node) protected boolean
processTagSetfiles
(Element node) process the given nodeprotected boolean
processTagStop
(Element node) process the given nodeprotected boolean
processTagTrace
(Element node) Process the tag traceprotected boolean
processTagView
(Element node) Process the view tagprotected boolean
processTagViewpoint
(Element node) Process the viewpoint tagprotected boolean
processTagWait
(Element node) process the given nodevoid
Put the indexprotected Image
Resize the imageresizeImage
(BufferedImage image, String widthStr, String heightStr) Resize the imagevoid
setDebug
(boolean v) Toggle debugprotected void
Update the view managersvoid
writeImage
(String filename, String params, float qual) Get the image of the current display and write to file.void
writeImageToFile
(Image image, String file) Write an Image to the specified filevoid
writeMovie
(String filename, String params) Capture a movie and write it out.Methods inherited from class ucar.unidata.idv.IdvManager
getArgsManager, getCollabManager, getColorTableManager, getDataManager, getIdv, getIdvChooserManager, getIdvClass, getIdvProjectionManager, getIdvUIManager, getImageGenerator, getInstallManager, getJythonManager, getPersistenceManager, getPreferenceManager, getProperty, getProperty, getProperty, getPublishManager, getResourceManager, getStateManager, getStationModelManager, getStore, getVMManager, logException, showNormalCursor, showWaitCursor, waitUntilDisplaysAreDone, waitUntilDisplaysAreDone
Methods inherited from class ucar.unidata.ui.WindowHolder
actionPerformed, close, doMakeContents, getContents, getDialog, getFrame, getWindow, getWindowTitle, isShowing, removeAll, setMenuBar, setWindowTitle, shouldMakeDialog, show, show, showModal, toFront, windowIsClosing
-
Field Details
-
VALUE_TOP
attr value- See Also:
-
VALUE_BOTTOM
attr value- See Also:
-
VALUE_RIGHT
attr value- See Also:
-
VALUE_LEFT
attr value- See Also:
-
VALUE_ALL
attr value- See Also:
-
VALUE_NONE
attr value- See Also:
-
VALUE_FIRST
attr value- See Also:
-
VALUE_LAST
attr value- See Also:
-
PROP_LOOPINDEX
macro property- See Also:
-
PROP_LOOPINDEX_PAD2
padded loop index- See Also:
-
PROP_LOOPINDEX_PAD3
padded loop index- See Also:
-
PROP_LOOPINDEX_PAD4
padded loop index- See Also:
-
PROP_VIEWINDEX
macro property- See Also:
-
PROP_VIEWNAME
macro property- See Also:
-
PROP_IMAGEINDEX
macro property- See Also:
-
PROP_IMAGEFILE
macro property- See Also:
-
PROP_IMAGEPATH
macro property- See Also:
-
PROP_FILE
file property- See Also:
-
PROP_FILENOSUFFIX
filenosuffix property- See Also:
-
PROP_FILETAIL
filetail property- See Also:
-
PROP_FILETAILNOSUFFIX
filetailnosuffix property- See Also:
-
PROP_FILEPREFIX
fileprefix property- See Also:
-
PROP_CONTENTS
macro property- See Also:
-
PROP_ANIMATIONTIME
macro property- See Also:
-
PROP_OFFSCREEN
macro property- See Also:
-
TAG_FILESET
isl tag- See Also:
-
TAG_VIEW
view tag- See Also:
-
TAG_TEMPLATE
isl tag- See Also:
-
TAG_APPEND
isl tag- See Also:
-
TAG_SETFILES
isl tag- See Also:
-
TAG_ISL
isl tag- See Also:
-
TAG_VIEWPOINT
viewpoint tag- See Also:
-
TAG_PROPERTY
isl tag- See Also:
-
TAG_IMPORT
isl tag- See Also:
-
TAG_IMAGE
isl tag- See Also:
-
TAG_GROUP
isl tag- See Also:
-
TAG_PAUSE
isl tag- See Also:
-
TAG_MOVIE
isl tag- See Also:
-
TAG_BUNDLE
isl tag- See Also:
-
TAG_ELSE
isl tag- See Also:
-
TAG_THEN
isl tag- See Also:
-
TAG_COLORBAR
isl tag- See Also:
-
TAG_CLIP
isl tag- See Also:
-
TAG_PUBLISH
publish tag- See Also:
-
TAG_DISPLAY
isl tag- See Also:
-
TAG_DATASOURCE
datasource tag- See Also:
-
TAG_MATTE
isl tag- See Also:
-
TAG_SHOW
show tag- See Also:
-
TAG_DISPLAYLIST
displaylist tag- See Also:
-
TAG_OUTPUT
isl tag- See Also:
-
TAG_OVERLAY
isl tag- See Also:
-
TAG_KML
isl tag- See Also:
-
TAG_KML_COLORBAR
kml colorbar tag- See Also:
-
TAG_KMZFILE
isl tag- See Also:
-
TAG_SPLIT
isl tag- See Also:
-
TAG_RESIZE
isl tag- See Also:
-
TAG_THUMBNAIL
isl tag- See Also:
-
TAG_TRANSPARENT
isl tag- See Also:
-
TAG_PROJECTION
isl tag- See Also:
-
TAG_BGTRANSPARENT
background transparent tag- See Also:
-
ATTR_INDEX
index attribute- See Also:
-
ATTR_STRIDE
stride attribute- See Also:
-
ATTR_STRIDEX
x stride attribute- See Also:
-
ATTR_STRIDEY
y stride attribute- See Also:
-
ATTR_STRIDEZ
z stride attribute- See Also:
-
ATTR_BBOX
bounding box attribute- See Also:
-
ATTR_DRIVERTIME_START
bounding time driver time attribute- See Also:
-
ATTR_DRIVERTIME_END
bounding time driver time attribute- See Also:
-
ATTR_LEVEL_FROM
from level attribute- See Also:
-
ATTR_LEVEL_TO
to level attribute- See Also:
-
ATTR_AZIMUTH
azimuth attribute- See Also:
-
ATTR_TILT
tilt attribute- See Also:
-
ATTR_ASPECTX
x aspect attribute- See Also:
-
ATTR_ASPECTY
y aspect attribute- See Also:
-
ATTR_ASPECTZ
z aspect attribute- See Also:
-
ATTR_ROTX
x rotation attribute- See Also:
-
ATTR_ROTY
y rotation attribute- See Also:
-
ATTR_ROTZ
z rotation attribute- See Also:
-
ATTR_SCALE
scale attribute- See Also:
-
ATTR_TRANSX
x translation attribute- See Also:
-
ATTR_TRANSY
y translation attribute- See Also:
-
ATTR_TRANSZ
z translation attribute- See Also:
-
ATTR_SUFFIX
suffix attribute- See Also:
-
ATTR_SHOWUNIT
showunit atttribute- See Also:
-
ATTR_TRANSPARENCY
transparency attribute- See Also:
-
ATTR_TOP
top attribute- See Also:
-
ATTR_SPACE_LEFT
left space attribute- See Also:
-
ATTR_SPACE_RIGHT
right space attribute- See Also:
-
ATTR_SPACE_TOP
top space attribute- See Also:
-
ATTR_SPACE_BOTTOM
bottom space attribute- See Also:
-
TAG_WRITE
isl tag- See Also:
-
ATTR_ANCHOR
isl tag- See Also:
-
ATTR_FROM
isl attr- See Also:
-
ATTR_TO
isl attr- See Also:
-
ATTR_GLOBAL
isl attribute- See Also:
-
ATTR_ONERROR
isl attribute- See Also:
-
ATTR_SORT
isl attribute- See Also:
-
ATTR_SORTDIR
isl attribute- See Also:
-
VALUE_TIME
isl attribute- See Also:
-
VALUE_ASCENDING
isl attribute- See Also:
-
VALUE_DESCENDING
isl attribute- See Also:
-
ATTR_FIRST
isl attribute- See Also:
-
ATTR_LAST
isl attribute- See Also:
-
ATTR_USEPROJECTION
isl tag- See Also:
-
ATTR_EXPR
isl tag- See Also:
-
ATTR_COPY
isl tag- See Also:
-
ATTR_COUNT
the count tag- See Also:
-
ATTR_COLUMNS
isl tag- See Also:
-
ATTR_DATASOURCE
isl attribute- See Also:
-
ATTR_DESTINATION
isl attribute- See Also:
-
ATTR_SERVER
isl attribute- See Also:
-
ATTR_PASSWORD
isl attribute- See Also:
-
ATTR_USER
isl attribute- See Also:
-
ATTR_ROWS
isl tag- See Also:
-
ATTR_CLASS
isl tag- See Also:
-
ATTR_ANGLE
isl tag- See Also:
-
ATTR_WHERE
isl tag- See Also:
-
ATTR_BACKGROUND
isl tag- See Also:
-
ATTR_BUNDLE
isl attribute- See Also:
-
ATTR_SHOWLINES
isl tag- See Also:
-
ATTR_LINECOLOR
isl tag- See Also:
-
ATTR_COLOR
isl tag- See Also:
-
ATTR_COMMAND
isl tag- See Also:
-
ATTR_FONTFACE
isl tag- See Also:
-
ATTR_FORMAT
isl attr- See Also:
-
TAG_LATLONLABELS
that latlonlabels tag- See Also:
-
ATTR_LAT_VALUES
that latvalues tag- See Also:
-
ATTR_LAT_LABELS
that latlabels tag- See Also:
-
ATTR_LON_VALUES
that lonvalues tag- See Also:
-
ATTR_LON_LABELS
that lonlabels tag- See Also:
-
ATTR_DRAWLONLINES
the draw lon lines tag- See Also:
-
ATTR_DRAWLATLINES
the draw lat lines tag- See Also:
-
ATTR_DASHES
dashes tag- See Also:
-
ATTR_LINEWIDTH
linewidth tag- See Also:
-
ATTR_LINEOFFSET_RIGHT
isl tag- See Also:
-
ATTR_LINEOFFSET_LEFT
isl tag- See Also:
-
ATTR_LINEOFFSET_TOP
isl tag- See Also:
-
ATTR_LINEOFFSET_BOTTOM
isl tag- See Also:
-
ATTR_LABELBACKGROUND
isl tag- See Also:
-
ATTR_SHOWTOP
isl tag- See Also:
-
ATTR_SHOWBOTTOM
isl tag- See Also:
-
ATTR_SHOWLEFT
isl tag- See Also:
-
ATTR_SHOWRIGHT
isl tag- See Also:
-
ATTR_FONTSIZE
isl tag- See Also:
-
ATTR_FRAMERATE
isl tag- See Also:
-
ATTR_ENDFRAMEPAUSE
isl tag for ending frame pause for animated gifs- See Also:
-
ATTR_CAPTION
isl tag- See Also:
-
ATTR_DEBUG
isl tag- See Also:
-
ATTR_DEFAULT
isl tag- See Also:
-
ATTR_DISPLAY
isl tag- See Also:
-
ATTR_OFFSCREEN
isl tag- See Also:
-
ATTR_TIMES
isl tag- See Also:
-
ATTR_ENSEMBLES
isl tag- See Also:
-
ATTR_DIR
isl tag- See Also:
-
ATTR_PATTERN
isl tag- See Also:
-
ATTR_WAIT
isl attribute- See Also:
-
ATTR_PROPERTY
isl tag- See Also:
-
ATTR_QUALITY
isl tag- See Also:
-
ATTR_LOOP
isl tag- See Also:
-
ATTR_ENTRY
isl tag- See Also:
-
ATTR_ID
isl tag- See Also:
-
ATTR_IMAGE
isl tag- See Also:
-
ATTR_INTERVAL
isl tag- See Also:
-
ATTR_LEFT
isl tag- See Also:
-
ATTR_MESSAGE
isl tag- See Also:
-
ATTR_MATTEBG
isl tag- See Also:
-
ATTR_NAME
isl tag- See Also:
-
ATTR_RIGHT
isl tag- See Also:
-
ATTR_TICKMARKS
isl tag- See Also:
-
ATTR_SPACE
isl tag- See Also:
-
ATTR_HSPACE
isl tag- See Also:
-
ATTR_VSPACE
isl tag- See Also:
-
ATTR_BOTTOM
isl tag- See Also:
-
ATTR_VALIGN
the valign attribute- See Also:
-
ATTR_TEXT
isl tag- See Also:
-
ATTR_TEMPLATE
isl tag- See Also:
-
ATTR_TYPE
isl tag- See Also:
-
ATTR_EVERY
isl tag- See Also:
-
ATTR_VALUE
isl tag- See Also:
-
ATTR_VALUES
isl tag- See Also:
-
ATTR_ORIENTATION
isl tag- See Also:
-
ATTR_PARAM
isl tag- See Also:
-
ATTR_PLACE
isl tag- See Also:
-
ATTR_VIEW
isl tag- See Also:
-
ATTR_VIEWDIR
the view dir attribute- See Also:
-
ATTR_URL
isl tag- See Also:
-
ATTR_FILE
isl tag- See Also:
-
ATTR_FROMFILE
isl tag- See Also:
-
ATTR_NORTH
isl tag- See Also:
-
ATTR_SOUTH
isl tag- See Also:
-
ATTR_EAST
isl tag- See Also:
-
ATTR_WEST
isl tag- See Also:
-
ATTR_WIDTH
isl tag- See Also:
-
ATTR_HEIGHT
isl tag- See Also:
-
ATTR_SLEEP
isl tag- See Also:
-
ATTR_SECONDS
isl tag- See Also:
-
ATTR_MINUTES
isl tag- See Also:
-
ATTR_HOURS
isl tag- See Also:
-
ATTR_CLEAR
isl tag- See Also:
-
ATTR_WINDOW
isl tag- See Also:
-
ATTR_CODE
isl tag- See Also:
-
ATTR_LAT
isl tag- See Also:
-
ATTR_LON
isl tag- See Also:
-
ATTR_WHAT
isl attribute- See Also:
-
ATTR_COMBINE
isl attribute- See Also:
-
ATTR_ANIMATION_INDEX
isl attribute- See Also:
-
-
Constructor Details
-
ImageGenerator
Create me with the IDV- Parameters:
idv
- The IDV
-
ImageGenerator
Create me with the IDV and start processing files- Parameters:
idv
- The IDVscriptFiles
- List of isl files
-
-
Method Details
-
processScriptFiles
Process the list of isl files- Parameters:
scriptFiles
- isl files
-
processScriptFile
Process the isl files- Parameters:
islFile
- file- Returns:
- Was it successful
-
processScriptFile
Process the script file- Parameters:
islFile
- the ISL fileproperties
- optional properties- Returns:
- true if successful
-
processScriptFile
Process the script file- Parameters:
islFile
- the ISL fileproperties
- optional propertiesinteractive
- Is this call interactive. If not interactive then we don't pop up the error dialog- Returns:
- true if successful
-
getResults
-
getError
-
processTagFor
Process the "for" tag- Parameters:
node
- the tag node- Returns:
- true if successful
- Throws:
Throwable
- an error
-
processTagFtp
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagExport
Process the export tag. This allows one to export data from a display. It requires a display identifier- Parameters:
node
- isl xml node- Returns:
- everything is cool
- Throws:
Throwable
- On badness
-
processTagSave
- Throws:
Throwable
-
processTagPublish
- Throws:
Throwable
-
processTagTrace
Process the tag trace- Parameters:
node
- the node- Returns:
- true if processed
- Throws:
Throwable
- on badness
-
processTagRemovedisplays
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagPrintcache
Process the print cache tag- Parameters:
node
- the XML node- Returns:
- true if successful
- Throws:
Throwable
- on badness
-
processTagRemoveall
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagSetfiles
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagExists
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagBeep
make a beep- Parameters:
node
- the isl xml node- Returns:
- true
- Throws:
Throwable
-
processTagAsk
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagEcho
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagAsktocontinue
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagGc
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagBreak
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagContinue
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagReturn
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagProcedure
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagMkdir
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagStop
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
getPropertyValue
Get the property value- Parameters:
node
- the XML node- Returns:
- the values
- Throws:
Throwable
- on badness
-
processTagIdvproperty
Process IDV property tag- Parameters:
node
- the XML node- Returns:
- true if successful
- Throws:
Throwable
- on badness
-
processTagProperty
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagMove
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagRename
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagDelete
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagClear
Handle the clear tag- Parameters:
node
- node- Returns:
- ok
- Throws:
Throwable
- On badness
-
processTagAppend
Handle the append tag- Parameters:
node
- node- Returns:
- ok
- Throws:
Throwable
- On badness
-
processTagIncrement
Handle the append tag- Parameters:
node
- node- Returns:
- ok
- Throws:
Throwable
- On badness
-
processTagReplace
Handle the append tag- Parameters:
node
- node- Returns:
- ok
- Throws:
Throwable
- On badness
-
processTagCopy
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagReload
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagExec
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagJython
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagFileset
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagImport
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagLoadcatalog
Load a catalog URL- Parameters:
node
- The ISL node- Returns:
- Keep going
- Throws:
Throwable
-
processTagListdirectory
Load a directory to the file chooser- Parameters:
node
- The ISL node- Returns:
- Keep going
- Throws:
Throwable
-
processTagDatasource
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagJoin
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagView
Process the view tag- Parameters:
node
- the element- Returns:
- true if it was processed
- Throws:
Throwable
- problems
-
processTagAnimation
Handle the animation tag. The index attribute can either be a number or be "end"- Parameters:
node
- the node- Returns:
- true if successful
- Throws:
Throwable
- problems
-
processTagViewpoint
Process the viewpoint tag- Parameters:
node
- the node- Returns:
- true if successful
- Throws:
Throwable
- problems
-
processTagCenter
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagProjection
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
findDisplayControl
Find the display control identified by the given id- Parameters:
id
- The id of the display control. This can be the id or it can be a 'class:class name'- Returns:
- The display control or null
-
findDisplayControl
Find the display control- Parameters:
id
- the control idcontrols
- the list of controls- Returns:
- the control or null
-
processTagBundle
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagCall
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagCall
process the given node- Parameters:
node
- Node to processprocNode
- The procedure node- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagIf
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagOutput
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagIsl
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagGroup
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagForeach
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagMovie
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagHtml
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagPanel
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
writeMovie
Capture a movie and write it out. This is typically called by the jython scripting- Parameters:
filename
- Movie filenameparams
- xml parameters of the the form: "task arg=val arg2=val; task2 arg3=val"- Throws:
Exception
- On badness
-
processTagImage
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagWait
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
processTagPause
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
- Throws:
Throwable
- On badness
-
updateViewManagers
protected void updateViewManagers()Update the view managers -
processTagDisplayproperties
Process tag display properties- Parameters:
node
- the node- Returns:
- true if successful
-
processTagDisplay
process the given node- Parameters:
node
- Node to process- Returns:
- keep going
-
error
Utility to print a message and return false.- Parameters:
msg
- message- Returns:
- false
-
error
Utility to print a message and return false.- Parameters:
msg
- messageexc
- exception- Returns:
- false
-
applyMacros
Find the attribute value of the given node. Apply the macros to it.- Parameters:
node
- Node to processattr
- Attribute name- Returns:
- The value
-
applyMacros
If the attribute does not exist return the dflt. Else return the value.- Parameters:
node
- Node to processattr
- Attribute namedflt
- The default value to use if the attribute does not exist- Returns:
- The value
-
applyMacros
If the attribute does not exist return the dflt. Else return the value.- Parameters:
node
- Node to processattr
- Attribute namedflt
- The default value to use if the attribute does not exist- Returns:
- The value
-
applyMacros
If the attribute does not exist return the dflt. Else return the value.- Parameters:
node
- Node to processattr
- Attribute namedflt
- The default value to use if the attribute does not exist- Returns:
- The value
-
applyMacros
If the attribute does not exist return the dflt. Else return the value.- Parameters:
node
- Node to processattr
- Attribute namedflt
- The default value to use if the attribute does not exist- Returns:
- The value
-
applyMacros
If the attribute does not exist return the dflt. Else return the value.- Parameters:
node
- Node to processattr
- Attribute namedflt
- The default value to use if the attribute does not exist- Returns:
- The value
-
applyMacros
Do the macro substitution- Parameters:
s
- The string- Returns:
- The expanded string
-
captureImage
Capture an image from the first active view managers- Parameters:
filename
- The image filename
-
putIndex
Put the index- Parameters:
props
- the propertiesname
- the namev
- the index
-
pause
public void pause()Wait until all displays are built -
setDebug
public void setDebug(boolean v) Toggle debug- Parameters:
v
- debug
-
evaluateIsl
Evaluate the given isl- Parameters:
isl
- The isl- Returns:
- success
- Throws:
Throwable
- On badness
-
loadBundle
Load the given bundle file- Parameters:
bundleFile
- The bundlesetFiles
- This is a list, which may be null, of datasource patterns and file names to change- Throws:
Throwable
- On badness
-
loadBundle
Load the given bundle file, list of datasets, width and height- Parameters:
bundleFile
- The bundlesetFiles
- This is a list, which may be null, of datasource patterns and file names to changewidth
- The width of the display area to useheight
- The height of the display are to use- Throws:
Throwable
- an exception
-
loadBundle
public void loadBundle(String bundleFile, List setFiles, int width, int height, String times, boolean clear) throws Throwable Load the given bundle file, list of datasets, width and height- Parameters:
bundleFile
- The bundlesetFiles
- This is a list, which may be null, of datasource patterns and file names to changewidth
- The width of the display area to useheight
- The height of the display are to usetimes
- A string of times to use from the bundle fileclear
- If false then do not clear out the data sources and displays (which is otherwise the default)- Throws:
Throwable
- an exception
-
writeImageToFile
Write an Image to the specified file- Parameters:
image
- Image to be writtenfile
- Name of output file (may use macros)- Throws:
Exception
- On badness
-
makeXmlFromString
Create XML from the input String- Parameters:
s
- in the form: "task arg=val arg2=val; task2 arg3=val"- Returns:
-
writeImage
Get the image of the current display and write to file. Image may be modified by the params given in the form: tag1 arg=val arg2=val2; tag2 arg=val where 'tag' are ISL tags. -
getImage
Get the Image of the current display- Returns:
- the Image
- Throws:
Exception
- On badness
-
resize
Resize the image- Parameters:
image
- The imagenode
- Node to process. This may contain a width or a height attribute.- Returns:
- The resized image
-
resizeImage
Resize the image- Parameters:
image
- The imagewidthStr
- width of desired image (pixels)heightStr
- height of desired image (pixels)- Returns:
- The resized image
-
matteImage
public BufferedImage matteImage(BufferedImage image, String bgString, int top, int left, int bottom, int right) Matte the image- Parameters:
image
- The imagebgString
- color for the matte ("red", "green", etc)top
- number of lines for the top (north) matteleft
- number of pixels for the left (west) mattebottom
- number of lines for the bottom (south) matteright
- number of pixels for the right (east) matte- Returns:
- The matte'd image
-
processImage
protected BufferedImage processImage(BufferedImage image, String filename, Element node, Hashtable props, ViewManager viewManager, Hashtable imageProps) throws Throwable Process the image- Parameters:
image
- The imagefilename
- File to write the image tonode
- Node to processprops
- Extra propertiesviewManager
- The viewmanager this image came fromimageProps
- the image properties- Returns:
- The processed image
- Throws:
Throwable
- On badness
-
getInsets
Get the insets- Parameters:
child
- the elementdflt
- the default value- Returns:
- the Insets
-
doLatLonLabels
public BufferedImage doLatLonLabels(Element child, ViewManager viewManager, BufferedImage image, Hashtable imageProps) throws Exception Process the lat/lon labels tag- Parameters:
child
- the XMLviewManager
- the associated view managerimage
- the image to draw onimageProps
- the image properties- Returns:
- a new image
- Throws:
Exception
- on badness
-
doMatte
Matte the image- Parameters:
image
- the imagechild
- the XML defining the mattingdfltSpace
- default spacing- Returns:
- a new image
-
doMatte
Matte the image- Parameters:
image
- the imagechild
- the matte specsinsets
- the insets- Returns:
- a new image
-
doneCapturingMovie
public void doneCapturingMovie()Called to notify this object that the movie capture is done -
captureMovie
Capture a movie from the first view manager- Parameters:
filename
- The movie filename
-
captureMovie
Capture the movie- Parameters:
filename
- The filescriptingNode
- Node form isl.
-
getAnimationTime
Find the animation time of the first Animation in a view manager we find- Returns:
- Animation time
-
fields
callable by jython to find the data choices that match the given pattern- Parameters:
datasource
- data sourcepattern
- pattern to match- Returns:
- comma separated list of data choice names
-
debug
Print the message if in debug mode- Parameters:
msg
- The message
-
ftpPut
public static void ftpPut(String server, String userName, String password, String destination, byte[] bytes) throws Exception Do an FTP put of the given bytes- Parameters:
server
- serveruserName
- user name on serverpassword
- password on serverdestination
- Where to put the bytesbytes
- The bytes- Throws:
Exception
- On badness
-
getLetter
Get the letter for the index- Parameters:
i
- the index- Returns:
- the letter
-
getRoman
Get the roman numeral- Parameters:
i
- the index- Returns:
- the corresponding number
-