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 classClass MyBreakException for handling break tagsprotected static classClass MyContinueException for handling continue tagsprotected static classClass descriptionprotected static classClass MyReturnException allows us to return from a isl procedure by throwing an exception. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringx aspect attributestatic final Stringy aspect attributestatic final Stringz aspect attributestatic final Stringazimuth attributestatic final Stringisl tagstatic final Stringbounding box attributestatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringthe count tagstatic final Stringdashes tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringthe draw lat lines tagstatic final Stringthe draw lon lines tagstatic final Stringbounding time driver time attributestatic final Stringbounding time driver time attributestatic final Stringisl tagstatic final Stringisl tag for ending frame pause for animated gifsstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attrstatic final Stringisl tagstatic final Stringisl attrstatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringindex attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringthat latlabels tagstatic final Stringthat latvalues tagstatic final Stringisl tagstatic final Stringfrom level attributestatic final Stringto level attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringlinewidth tagstatic final Stringisl tagstatic final Stringthat lonlabels tagstatic final Stringthat lonvalues tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringx rotation attributestatic final Stringy rotation attributestatic final Stringz rotation attributestatic final Stringisl tagstatic final Stringscale attributestatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringshowunit atttributestatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringbottom space attributestatic final Stringleft space attributestatic final Stringright space attributestatic final Stringtop space attributestatic final Stringstride attributestatic final Stringx stride attributestatic final Stringy stride attributestatic final Stringz stride attributestatic final Stringsuffix attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringtilt attributestatic final Stringisl tagstatic final Stringisl attrstatic final Stringtop attributestatic final Stringtransparency attributestatic final Stringx translation attributestatic final Stringy translation attributestatic final Stringz translation attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl attributestatic final Stringthe valign attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringthe view dir attributestatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl attributestatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringmacro propertystatic final Stringmacro propertystatic final Stringfile propertystatic final Stringfilenosuffix propertystatic final Stringfileprefix propertystatic final Stringfiletail propertystatic final Stringfiletailnosuffix propertystatic final Stringmacro propertystatic final Stringmacro propertystatic final Stringmacro propertystatic final Stringmacro propertystatic final Stringpadded loop indexstatic final Stringpadded loop indexstatic final Stringpadded loop indexstatic final Stringmacro propertystatic final Stringmacro propertystatic final Stringmacro propertystatic final Stringisl tagstatic final Stringbackground transparent tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringdatasource tagstatic final Stringisl tagstatic final Stringdisplaylist tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringkml colorbar tagstatic final Stringisl tagstatic final Stringthat latlonlabels tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringpublish tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringshow tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringisl tagstatic final Stringview tagstatic final Stringviewpoint tagstatic final Stringisl tagstatic final Stringattr valuestatic final Stringisl attributestatic final Stringattr valuestatic final Stringisl attributestatic final Stringattr valuestatic final Stringattr valuestatic final Stringattr valuestatic final Stringattr valuestatic final Stringattr valuestatic final Stringisl attributestatic final Stringattr valueFields inherited from class ucar.unidata.ui.WindowHolder
contents, dialog, frame, windowFields 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.booleanapplyMacros(Element node, String attr, boolean dflt) If the attribute does not exist return the dflt.doubleapplyMacros(Element node, String attr, double dflt) If the attribute does not exist return the dflt.intapplyMacros(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.voidcaptureImage(String filename) Capture an image from the first active view managersvoidcaptureMovie(String filename) Capture a movie from the first view managervoidcaptureMovie(String filename, Element scriptingNode) Capture the movieprotected voidPrint 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 imagevoidCalled to notify this object that the movie capture is doneprotected booleanUtility to print a message and return false.protected booleanUtility to print a message and return false.booleanevaluateIsl(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 voidDo 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 numeralvoidloadBundle(String bundleFile, List setFiles) Load the given bundle filevoidloadBundle(String bundleFile, List setFiles, int width, int height) Load the given bundle file, list of datasets, width and heightvoidloadBundle(String bundleFile, List setFiles, int width, int height, String times, boolean clear) Load the given bundle file, list of datasets, width and heightprotected static StringCreate XML from the input StringmatteImage(BufferedImage image, String bgString, int top, int left, int bottom, int right) Matte the imagevoidpause()Wait until all displays are builtprotected BufferedImageprocessImage(BufferedImage image, String filename, Element node, Hashtable props, ViewManager viewManager, Hashtable imageProps) Process the imagebooleanprocessScriptFile(String islFile) Process the isl filesbooleanprocessScriptFile(String islFile, Hashtable properties) Process the script filebooleanprocessScriptFile(String islFile, Hashtable properties, boolean interactive) Process the script filevoidprocessScriptFiles(List scriptFiles) Process the list of isl filesprotected booleanprocessTagAnimation(Element node) Handle the animation tag.protected booleanprocessTagAppend(Element node) Handle the append tagprotected booleanprocessTagAsk(Element node) process the given nodeprotected booleanprocess the given nodeprotected booleanprocessTagBeep(Element node) make a beepprotected booleanprocessTagBreak(Element node) process the given nodeprotected booleanprocessTagBundle(Element node) process the given nodeprotected booleanprocessTagCall(Element node) process the given nodeprotected booleanprocessTagCall(Element node, Element procNode) process the given nodeprotected booleanprocessTagCenter(Element node) process the given nodeprotected booleanprocessTagClear(Element node) Handle the clear tagprotected booleanprocessTagContinue(Element node) process the given nodeprotected booleanprocessTagCopy(Element node) process the given nodeprotected booleanprocessTagDatasource(Element node) process the given nodeprotected booleanprocessTagDelete(Element node) process the given nodeprotected booleanprocessTagDisplay(Element node) process the given nodeprotected booleanProcess tag display propertiesprotected booleanprocessTagEcho(Element node) process the given nodeprotected booleanprocessTagExec(Element node) process the given nodeprotected booleanprocessTagExists(Element node) process the given nodeprotected booleanprocessTagExport(Element node) Process the export tag.protected booleanprocessTagFileset(Element node) process the given nodeprotected booleanprocessTagFor(Element node) Process the "for" tagprotected booleanprocessTagForeach(Element node) process the given nodeprotected booleanprocessTagFtp(Element node) process the given nodeprotected booleanprocessTagGc(Element node) process the given nodeprotected booleanprocessTagGroup(Element node) process the given nodeprotected booleanprocessTagHtml(Element node) process the given nodeprotected booleanprocessTagIdvproperty(Element node) Process IDV property tagprotected booleanprocessTagIf(Element node) process the given nodeprotected booleanprocessTagImage(Element node) process the given nodeprotected booleanprocessTagImport(Element node) process the given nodeprotected booleanprocessTagIncrement(Element node) Handle the append tagprotected booleanprocessTagIsl(Element node) process the given nodeprotected booleanprocessTagJoin(Element node) process the given nodeprotected booleanprocessTagJython(Element node) process the given nodeprotected booleanLoad a directory to the file chooserprotected booleanprocessTagLoadcatalog(Element node) Load a catalog URLprotected booleanprocessTagMkdir(Element node) process the given nodeprotected booleanprocessTagMove(Element node) process the given nodeprotected booleanprocessTagMovie(Element node) process the given nodeprotected booleanprocessTagOutput(Element node) process the given nodeprotected booleanprocessTagPanel(Element node) process the given nodeprotected booleanprocessTagPause(Element node) process the given nodeprotected booleanprocessTagPrintcache(Element node) Process the print cache tagprotected booleanprocessTagProcedure(Element node) process the given nodeprotected booleanprocessTagProjection(Element node) process the given nodeprotected booleanprocessTagProperty(Element node) process the given nodeprotected booleanprocessTagPublish(Element node) protected booleanprocessTagReload(Element node) process the given nodeprotected booleanprocessTagRemoveall(Element node) process the given nodeprotected booleanprocess the given nodeprotected booleanprocessTagRename(Element node) process the given nodeprotected booleanprocessTagReplace(Element node) Handle the append tagprotected booleanprocessTagReturn(Element node) process the given nodeprotected booleanprocessTagSave(Element node) protected booleanprocessTagSetfiles(Element node) process the given nodeprotected booleanprocessTagStop(Element node) process the given nodeprotected booleanprocessTagTrace(Element node) Process the tag traceprotected booleanprocessTagView(Element node) Process the view tagprotected booleanprocessTagViewpoint(Element node) Process the viewpoint tagprotected booleanprocessTagWait(Element node) process the given nodevoidPut the indexprotected ImageResize the imageresizeImage(BufferedImage image, String widthStr, String heightStr) Resize the imagevoidsetDebug(boolean v) Toggle debugprotected voidUpdate the view managersvoidwriteImage(String filename, String params, float qual) Get the image of the current display and write to file.voidwriteImageToFile(Image image, String file) Write an Image to the specified filevoidwriteMovie(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, waitUntilDisplaysAreDoneMethods 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
-