|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.WindowHolder
ucar.unidata.idv.IdvManager
ucar.unidata.idv.ui.ImageGenerator
public class ImageGenerator
Manages the user interface for the IDV
| Nested Class Summary | |
|---|---|
protected static class |
ImageGenerator.MyBreakException
Class MyBreakException for handling break tags |
protected static class |
ImageGenerator.MyContinueException
Class MyContinueException for handling continue tags |
protected static class |
ImageGenerator.MyQuitException
Class description |
protected static class |
ImageGenerator.MyReturnException
Class MyReturnException allows us to return from a isl procedure by throwing an exception. |
| Field Summary | |
|---|---|
static String |
ATTR_ANCHOR
isl tag |
static String |
ATTR_ANGLE
isl tag |
static String |
ATTR_ASPECTX
x aspect attribute |
static String |
ATTR_ASPECTY
y aspect attribute |
static String |
ATTR_ASPECTZ
z aspect attribute |
static String |
ATTR_AZIMUTH
azimuth attribute |
static String |
ATTR_BACKGROUND
isl tag |
static String |
ATTR_BBOX
bounding box attribute |
static String |
ATTR_BOTTOM
isl tag |
static String |
ATTR_BUNDLE
isl attribute |
static String |
ATTR_CAPTION
isl tag |
static String |
ATTR_CLASS
isl tag |
static String |
ATTR_CLEAR
isl tag |
static String |
ATTR_CODE
isl tag |
static String |
ATTR_COLOR
isl tag |
static String |
ATTR_COLUMNS
isl tag |
static String |
ATTR_COMMAND
isl tag |
static String |
ATTR_COPY
isl tag |
static String |
ATTR_COUNT
the count tag |
static String |
ATTR_DASHES
dashes tag |
static String |
ATTR_DATASOURCE
isl attribute |
static String |
ATTR_DEBUG
isl tag |
static String |
ATTR_DEFAULT
isl tag |
static String |
ATTR_DESTINATION
isl attribute |
static String |
ATTR_DIR
isl tag |
static String |
ATTR_DISPLAY
isl tag |
static String |
ATTR_DRAWLATLINES
the draw lat lines tag |
static String |
ATTR_DRAWLONLINES
the draw lon lines tag |
static String |
ATTR_EAST
isl tag |
static String |
ATTR_ENDFRAMEPAUSE
isl tag for ending frame pause for animated gifs |
static String |
ATTR_ENSEMBLES
isl tag |
static String |
ATTR_ENTRY
isl tag |
static String |
ATTR_EVERY
isl tag |
static String |
ATTR_EXPR
isl tag |
static String |
ATTR_FILE
isl tag |
static String |
ATTR_FIRST
isl attribute |
static String |
ATTR_FONTFACE
isl tag |
static String |
ATTR_FONTSIZE
isl tag |
static String |
ATTR_FORMAT
isl attr |
static String |
ATTR_FRAMERATE
isl tag |
static String |
ATTR_FROM
isl attr |
static String |
ATTR_FROMFILE
isl tag |
static String |
ATTR_GLOBAL
isl attribute |
static String |
ATTR_HEIGHT
isl tag |
static String |
ATTR_HOURS
isl tag |
static String |
ATTR_HSPACE
isl tag |
static String |
ATTR_ID
isl tag |
static String |
ATTR_IMAGE
isl tag |
static String |
ATTR_INDEX
index attribute |
static String |
ATTR_INTERVAL
isl tag |
static String |
ATTR_LABELBACKGROUND
_more_ |
static String |
ATTR_LAST
isl attribute |
static String |
ATTR_LAT
isl tag |
static String |
ATTR_LAT_LABELS
that latlabels tag |
static String |
ATTR_LAT_VALUES
that latvalues tag |
static String |
ATTR_LEFT
isl tag |
static String |
ATTR_LEVEL_FROM
from level attribute |
static String |
ATTR_LEVEL_TO
to level attribute |
static String |
ATTR_LINECOLOR
isl tag |
static String |
ATTR_LINEOFFSET_BOTTOM
_more_ |
static String |
ATTR_LINEOFFSET_LEFT
_more_ |
static String |
ATTR_LINEOFFSET_RIGHT
_more_ |
static String |
ATTR_LINEOFFSET_TOP
_more_ |
static String |
ATTR_LINEWIDTH
linewidth tag |
static String |
ATTR_LON
isl tag |
static String |
ATTR_LON_LABELS
that lonlabels tag |
static String |
ATTR_LON_VALUES
that lonvalues tag |
static String |
ATTR_LOOP
isl tag |
static String |
ATTR_MATTEBG
_more_ |
static String |
ATTR_MESSAGE
isl tag |
static String |
ATTR_MINUTES
isl tag |
static String |
ATTR_NAME
isl tag |
static String |
ATTR_NORTH
isl tag |
static String |
ATTR_OFFSCREEN
isl tag |
static String |
ATTR_ONERROR
isl attribute |
static String |
ATTR_ORIENTATION
isl tag |
static String |
ATTR_PARAM
isl tag |
static String |
ATTR_PASSWORD
isl attribute |
static String |
ATTR_PATTERN
isl tag |
static String |
ATTR_PLACE
isl tag |
static String |
ATTR_PROPERTY
isl tag |
static String |
ATTR_QUALITY
isl tag |
static String |
ATTR_RIGHT
isl tag |
static String |
ATTR_ROTX
x rotation attribute |
static String |
ATTR_ROTY
y rotation attribute |
static String |
ATTR_ROTZ
z rotation attribute |
static String |
ATTR_ROWS
isl tag |
static String |
ATTR_SCALE
scale attribute |
static String |
ATTR_SECONDS
isl tag |
static String |
ATTR_SERVER
isl attribute |
static String |
ATTR_SHOWBOTTOM
_more_ |
static String |
ATTR_SHOWLEFT
_more_ |
static String |
ATTR_SHOWLINES
isl tag |
static String |
ATTR_SHOWRIGHT
_more_ |
static String |
ATTR_SHOWTOP
_more_ |
static String |
ATTR_SHOWUNIT
showunit atttribute |
static String |
ATTR_SLEEP
isl tag |
static String |
ATTR_SORT
isl attribute |
static String |
ATTR_SORTDIR
isl attribute |
static String |
ATTR_SOUTH
isl tag |
static String |
ATTR_SPACE
isl tag |
static String |
ATTR_SPACE_BOTTOM
bottom space attribute |
static String |
ATTR_SPACE_LEFT
left space attribute |
static String |
ATTR_SPACE_RIGHT
right space attribute |
static String |
ATTR_SPACE_TOP
top space attribute |
static String |
ATTR_STRIDE
stride attribute |
static String |
ATTR_STRIDEX
x stride attribute |
static String |
ATTR_STRIDEY
y stride attribute |
static String |
ATTR_STRIDEZ
z stride attribute |
static String |
ATTR_SUFFIX
suffix attribute |
static String |
ATTR_TEMPLATE
isl tag |
static String |
ATTR_TEXT
isl tag |
static String |
ATTR_TICKMARKS
isl tag |
static String |
ATTR_TILT
tilt attribute |
static String |
ATTR_TIMES
isl tag |
static String |
ATTR_TO
isl attr |
static String |
ATTR_TOP
top attribute |
static String |
ATTR_TRANSPARENCY
transparency attribute |
static String |
ATTR_TRANSX
x translation attribute |
static String |
ATTR_TRANSY
y translation attribute |
static String |
ATTR_TRANSZ
z translation attribute |
static String |
ATTR_TYPE
isl tag |
static String |
ATTR_URL
isl tag |
static String |
ATTR_USEPROJECTION
isl tag |
static String |
ATTR_USER
isl attribute |
static String |
ATTR_VALIGN
the valign attribute |
static String |
ATTR_VALUE
isl tag |
static String |
ATTR_VALUES
isl tag |
static String |
ATTR_VIEW
isl tag |
static String |
ATTR_VIEWDIR
the view dir attribute |
static String |
ATTR_VSPACE
isl tag |
static String |
ATTR_WAIT
isl attribute |
static String |
ATTR_WEST
isl tag |
static String |
ATTR_WHAT
isl attribute |
static String |
ATTR_WHERE
isl tag |
static String |
ATTR_WIDTH
isl tag |
static String |
PROP_ANIMATIONTIME
macro property |
static String |
PROP_CONTENTS
macro property |
static String |
PROP_FILE
file property |
static String |
PROP_FILENOSUFFIX
filenosuffix property |
static String |
PROP_FILEPREFIX
fileprefix property |
static String |
PROP_FILETAIL
filetail property |
static String |
PROP_FILETAILNOSUFFIX
filetailnosuffix property |
static String |
PROP_IMAGEFILE
macro property |
static String |
PROP_IMAGEINDEX
macro property |
static String |
PROP_IMAGEPATH
macro property |
static String |
PROP_LOOPINDEX
macro property |
static String |
PROP_LOOPINDEX_PAD2
padded loop index |
static String |
PROP_LOOPINDEX_PAD3
padded loop index |
static String |
PROP_LOOPINDEX_PAD4
padded loop index |
static String |
PROP_OFFSCREEN
macro property |
static String |
PROP_VIEWINDEX
macro property |
static String |
PROP_VIEWNAME
macro property |
static String |
TAG_APPEND
isl tag |
static String |
TAG_BGTRANSPARENT
background transparent tag |
static String |
TAG_BUNDLE
isl tag |
static String |
TAG_CLIP
isl tag |
static String |
TAG_COLORBAR
isl tag |
static String |
TAG_DATASOURCE
datasource tag |
static String |
TAG_DISPLAY
isl tag |
static String |
TAG_DISPLAYLIST
displaylist tag |
static String |
TAG_ELSE
isl tag |
static String |
TAG_FILESET
isl tag |
static String |
TAG_GROUP
isl tag |
static String |
TAG_IMAGE
isl tag |
static String |
TAG_IMPORT
isl tag |
static String |
TAG_ISL
isl tag |
static String |
TAG_KML
isl tag |
static String |
TAG_KML_COLORBAR
kml colorbar tag |
static String |
TAG_KMZFILE
isl tag |
static String |
TAG_LATLONLABELS
that latlonlabels tag |
static String |
TAG_MATTE
isl tag |
static String |
TAG_MOVIE
isl tag |
static String |
TAG_OUTPUT
isl tag |
static String |
TAG_OVERLAY
isl tag |
static String |
TAG_PAUSE
isl tag |
static String |
TAG_PROPERTY
isl tag |
static String |
TAG_PUBLISH
publish tag |
static String |
TAG_RESIZE
isl tag |
static String |
TAG_SETFILES
isl tag |
static String |
TAG_SHOW
show tag |
static String |
TAG_SPLIT
isl tag |
static String |
TAG_TEMPLATE
isl tag |
static String |
TAG_THEN
isl tag |
static String |
TAG_THUMBNAIL
isl tag |
static String |
TAG_TRANSPARENT
isl tag |
static String |
TAG_VIEW
view tag |
static String |
TAG_VIEWPOINT
viewpoint tag |
static String |
TAG_WRITE
isl tag |
static String |
VALUE_ALL
attr value |
static String |
VALUE_ASCENDING
isl attribute |
static String |
VALUE_BOTTOM
attr value |
static String |
VALUE_DESCENDING
isl attribute |
static String |
VALUE_FIRST
attr value |
static String |
VALUE_LAST
attr value |
static String |
VALUE_LEFT
attr value |
static String |
VALUE_NONE
attr value |
static String |
VALUE_RIGHT
attr value |
static String |
VALUE_TIME
isl attribute |
static String |
VALUE_TOP
attr value |
| Fields inherited from class ucar.unidata.ui.WindowHolder |
|---|
contents, dialog, frame, window |
| Constructor Summary | |
|---|---|
ImageGenerator(IntegratedDataViewer idv)
Create me with the IDV |
|
ImageGenerator(IntegratedDataViewer idv,
List scriptFiles)
Create me with the IDV and start processing files |
|
| Method Summary | |
|---|---|
String |
applyMacros(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. |
Color |
applyMacros(Element node,
String attr,
Color 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. |
String |
applyMacros(Element node,
String attr,
String dflt)
If the attribute does not exist return the dflt. |
String |
applyMacros(String s)
Do the macro substitution |
void |
captureImage(String filename)
Capture an image from the first active view managers |
void |
captureMovie(String filename)
Capture a movie from the first view manager |
void |
captureMovie(String filename,
Element scriptingNode)
Capture the movie |
protected void |
debug(String msg)
Print the message if in debug mode |
BufferedImage |
doLatLonLabels(Element child,
ViewManager viewManager,
BufferedImage image,
Hashtable imageProps)
Process the lat/lon labels tag |
BufferedImage |
doMatte(BufferedImage image,
Element child,
Insets insets)
Matte the image |
BufferedImage |
doMatte(BufferedImage image,
Element child,
int dfltSpace)
Matte the image |
void |
doneCapturingMovie()
Called to notify this object that the movie capture is done |
protected boolean |
error(String msg)
Utility to print a message and return false. |
protected boolean |
error(String msg,
Exception exc)
Utility to print a message and return false. |
boolean |
evaluateIsl(String isl)
Evaluate the given isl |
String |
fields(String datasource,
String pattern)
callable by jython to find the data choices that match the given pattern |
DisplayControlImpl |
findDisplayControl(String id)
Find the display control identified by the given id |
DisplayControlImpl |
findDisplayControl(String id,
List<DisplayControlImpl> controls)
Find the display control |
static void |
ftpPut(String server,
String userName,
String password,
String destination,
byte[] bytes)
Do an FTP put of the given bytes |
Date |
getAnimationTime()
Find the animation time of the first Animation in a view manager we find |
Image |
getImage()
Get the Image of the current display |
Insets |
getInsets(Element child,
int dflt)
Get the insets |
String |
getLetter(int i)
Get the letter for the index |
protected String[] |
getPropertyValue(Element node)
Get the property value |
String |
getRoman(int i)
Get the roman numeral |
void |
loadBundle(String bundleFile,
List setFiles)
Load the given bundle file |
void |
loadBundle(String bundleFile,
List setFiles,
int width,
int height)
Load the given bundle file, list of datasets, width and height |
void |
loadBundle(String bundleFile,
List setFiles,
int width,
int height,
String times,
boolean clear)
Load the given bundle file, list of datasets, width and height |
protected static String |
makeXmlFromString(String s)
Create XML from the input String |
BufferedImage |
matteImage(BufferedImage image,
String bgString,
int top,
int left,
int bottom,
int right)
Matte the image |
void |
pause()
Wait until all displays are built |
protected BufferedImage |
processImage(BufferedImage image,
String filename,
Element node,
Hashtable props,
ViewManager viewManager,
Hashtable imageProps)
Process the image |
boolean |
processScriptFile(String islFile)
Process the isl files |
boolean |
processScriptFile(String islFile,
Hashtable properties)
Process the script file |
void |
processScriptFiles(List scriptFiles)
Process the list of isl files |
protected boolean |
processTagAnimation(Element node)
Handle the animation tag. |
protected boolean |
processTagAppend(Element node)
Handle the append tag |
protected boolean |
processTagAsk(Element node)
process the given node |
protected boolean |
processTagAsktocontinue(Element node)
process the given node |
protected boolean |
processTagBreak(Element node)
process the given node |
protected boolean |
processTagBundle(Element node)
process the given node |
protected boolean |
processTagCall(Element node)
process the given node |
protected boolean |
processTagCall(Element node,
Element procNode)
process the given node |
protected boolean |
processTagCenter(Element node)
process the given node |
protected boolean |
processTagClear(Element node)
Handle the clear tag |
protected boolean |
processTagContinue(Element node)
process the given node |
protected boolean |
processTagCopy(Element node)
process the given node |
protected boolean |
processTagDatasource(Element node)
process the given node |
protected boolean |
processTagDelete(Element node)
process the given node |
protected boolean |
processTagDisplay(Element node)
process the given node |
protected boolean |
processTagDisplayproperties(Element node)
Process tag display properties |
protected boolean |
processTagEcho(Element node)
process the given node |
protected boolean |
processTagExec(Element node)
process the given node |
protected boolean |
processTagExists(Element node)
process the given node |
protected boolean |
processTagExport(Element node)
Process the export tag. |
protected boolean |
processTagFileset(Element node)
process the given node |
protected boolean |
processTagForeach(Element node)
process the given node |
protected boolean |
processTagFtp(Element node)
process the given node |
protected boolean |
processTagGc(Element node)
process the given node |
protected boolean |
processTagGroup(Element node)
process the given node |
protected boolean |
processTagHtml(Element node)
process the given node |
protected boolean |
processTagIdvproperty(Element node)
Process IDV property tag |
protected boolean |
processTagIf(Element node)
process the given node |
protected boolean |
processTagImage(Element node)
process the given node |
protected boolean |
processTagImport(Element node)
process the given node |
protected boolean |
processTagIncrement(Element node)
Handle the append tag |
protected boolean |
processTagIsl(Element node)
process the given node |
protected boolean |
processTagJoin(Element node)
process the given node |
protected boolean |
processTagJython(Element node)
process the given node |
protected boolean |
processTagMkdir(Element node)
process the given node |
protected boolean |
processTagMove(Element node)
process the given node |
protected boolean |
processTagMovie(Element node)
process the given node |
protected boolean |
processTagOutput(Element node)
process the given node |
protected boolean |
processTagPanel(Element node)
process the given node |
protected boolean |
processTagPause(Element node)
process the given node |
protected boolean |
processTagPrintcache(Element node)
Process the print cache tag |
protected boolean |
processTagProcedure(Element node)
process the given node |
protected boolean |
processTagProperty(Element node)
process the given node |
protected boolean |
processTagReload(Element node)
process the given node |
protected boolean |
processTagRemoveall(Element node)
process the given node |
protected boolean |
processTagRemovedisplays(Element node)
process the given node |
protected boolean |
processTagRename(Element node)
process the given node |
protected boolean |
processTagReplace(Element node)
Handle the append tag |
protected boolean |
processTagReturn(Element node)
process the given node |
protected boolean |
processTagSetfiles(Element node)
process the given node |
protected boolean |
processTagStop(Element node)
process the given node |
protected boolean |
processTagTrace(Element node)
Process the tag trace |
protected boolean |
processTagView(Element node)
Process the view tag |
protected boolean |
processTagViewpoint(Element node)
Process the viewpoint tag |
protected boolean |
processTagWait(Element node)
process the given node |
void |
putIndex(Hashtable props,
String name,
int v)
Put the index |
protected Image |
resize(Image image,
Element node)
Resize the image |
BufferedImage |
resizeImage(BufferedImage image,
String widthStr,
String heightStr)
Resize the image |
void |
setDebug(boolean v)
Toggle debug |
protected void |
updateViewManagers()
Update the view managers |
void |
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 file |
void |
writeMovie(String filename,
String params)
Capture a movie and write it out. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VALUE_TOP
public static final String VALUE_BOTTOM
public static final String VALUE_RIGHT
public static final String VALUE_LEFT
public static final String VALUE_ALL
public static final String VALUE_NONE
public static final String VALUE_FIRST
public static final String VALUE_LAST
public static final String PROP_LOOPINDEX
public static final String PROP_LOOPINDEX_PAD2
public static final String PROP_LOOPINDEX_PAD3
public static final String PROP_LOOPINDEX_PAD4
public static final String PROP_VIEWINDEX
public static final String PROP_VIEWNAME
public static final String PROP_IMAGEINDEX
public static final String PROP_IMAGEFILE
public static final String PROP_IMAGEPATH
public static final String PROP_FILE
public static final String PROP_FILENOSUFFIX
public static final String PROP_FILETAIL
public static final String PROP_FILETAILNOSUFFIX
public static final String PROP_FILEPREFIX
public static final String PROP_CONTENTS
public static final String PROP_ANIMATIONTIME
public static final String PROP_OFFSCREEN
public static final String TAG_FILESET
public static final String TAG_VIEW
public static final String TAG_TEMPLATE
public static final String TAG_APPEND
public static final String TAG_SETFILES
public static final String TAG_ISL
public static final String TAG_VIEWPOINT
public static final String TAG_PROPERTY
public static final String TAG_IMPORT
public static final String TAG_IMAGE
public static final String TAG_GROUP
public static final String TAG_PAUSE
public static final String TAG_MOVIE
public static final String TAG_BUNDLE
public static final String TAG_ELSE
public static final String TAG_THEN
public static final String TAG_COLORBAR
public static final String TAG_CLIP
public static final String TAG_PUBLISH
public static final String TAG_DISPLAY
public static final String TAG_DATASOURCE
public static final String TAG_MATTE
public static final String TAG_SHOW
public static final String TAG_DISPLAYLIST
public static final String TAG_OUTPUT
public static final String TAG_OVERLAY
public static final String TAG_KML
public static final String TAG_KML_COLORBAR
public static final String TAG_KMZFILE
public static final String TAG_SPLIT
public static final String TAG_RESIZE
public static final String TAG_THUMBNAIL
public static final String TAG_TRANSPARENT
public static final String TAG_BGTRANSPARENT
public static final String ATTR_INDEX
public static final String ATTR_STRIDE
public static final String ATTR_STRIDEX
public static final String ATTR_STRIDEY
public static final String ATTR_STRIDEZ
public static final String ATTR_BBOX
public static final String ATTR_LEVEL_FROM
public static final String ATTR_LEVEL_TO
public static final String ATTR_AZIMUTH
public static final String ATTR_TILT
public static final String ATTR_ASPECTX
public static final String ATTR_ASPECTY
public static final String ATTR_ASPECTZ
public static final String ATTR_ROTX
public static final String ATTR_ROTY
public static final String ATTR_ROTZ
public static final String ATTR_SCALE
public static final String ATTR_TRANSX
public static final String ATTR_TRANSY
public static final String ATTR_TRANSZ
public static final String ATTR_SUFFIX
public static final String ATTR_SHOWUNIT
public static final String ATTR_TRANSPARENCY
public static final String ATTR_TOP
public static final String ATTR_SPACE_LEFT
public static final String ATTR_SPACE_RIGHT
public static final String ATTR_SPACE_TOP
public static final String ATTR_SPACE_BOTTOM
public static final String TAG_WRITE
public static final String ATTR_ANCHOR
public static final String ATTR_FROM
public static final String ATTR_TO
public static final String ATTR_GLOBAL
public static final String ATTR_ONERROR
public static final String ATTR_SORT
public static final String ATTR_SORTDIR
public static final String VALUE_TIME
public static final String VALUE_ASCENDING
public static final String VALUE_DESCENDING
public static final String ATTR_FIRST
public static final String ATTR_LAST
public static final String ATTR_USEPROJECTION
public static final String ATTR_EXPR
public static final String ATTR_COPY
public static final String ATTR_COUNT
public static final String ATTR_COLUMNS
public static final String ATTR_DATASOURCE
public static final String ATTR_DESTINATION
public static final String ATTR_SERVER
public static final String ATTR_PASSWORD
public static final String ATTR_USER
public static final String ATTR_ROWS
public static final String ATTR_CLASS
public static final String ATTR_ANGLE
public static final String ATTR_WHERE
public static final String ATTR_BACKGROUND
public static final String ATTR_BUNDLE
public static final String ATTR_SHOWLINES
public static final String ATTR_LINECOLOR
public static final String ATTR_COLOR
public static final String ATTR_COMMAND
public static final String ATTR_FONTFACE
public static final String ATTR_FORMAT
public static final String TAG_LATLONLABELS
public static final String ATTR_LAT_VALUES
public static final String ATTR_LAT_LABELS
public static final String ATTR_LON_VALUES
public static final String ATTR_LON_LABELS
public static final String ATTR_DRAWLONLINES
public static final String ATTR_DRAWLATLINES
public static final String ATTR_DASHES
public static final String ATTR_LINEWIDTH
public static final String ATTR_LINEOFFSET_RIGHT
public static final String ATTR_LINEOFFSET_LEFT
public static final String ATTR_LINEOFFSET_TOP
public static final String ATTR_LINEOFFSET_BOTTOM
public static final String ATTR_LABELBACKGROUND
public static final String ATTR_SHOWTOP
public static final String ATTR_SHOWBOTTOM
public static final String ATTR_SHOWLEFT
public static final String ATTR_SHOWRIGHT
public static final String ATTR_FONTSIZE
public static final String ATTR_FRAMERATE
public static final String ATTR_ENDFRAMEPAUSE
public static final String ATTR_CAPTION
public static final String ATTR_DEBUG
public static final String ATTR_DEFAULT
public static final String ATTR_DISPLAY
public static final String ATTR_OFFSCREEN
public static final String ATTR_TIMES
public static final String ATTR_ENSEMBLES
public static final String ATTR_DIR
public static final String ATTR_PATTERN
public static final String ATTR_WAIT
public static final String ATTR_PROPERTY
public static final String ATTR_QUALITY
public static final String ATTR_LOOP
public static final String ATTR_ENTRY
public static final String ATTR_ID
public static final String ATTR_IMAGE
public static final String ATTR_INTERVAL
public static final String ATTR_LEFT
public static final String ATTR_MESSAGE
public static final String ATTR_MATTEBG
public static final String ATTR_NAME
public static final String ATTR_RIGHT
public static final String ATTR_TICKMARKS
public static final String ATTR_SPACE
public static final String ATTR_HSPACE
public static final String ATTR_VSPACE
public static final String ATTR_BOTTOM
public static final String ATTR_VALIGN
public static final String ATTR_TEXT
public static final String ATTR_TEMPLATE
public static final String ATTR_TYPE
public static final String ATTR_EVERY
public static final String ATTR_VALUE
public static final String ATTR_VALUES
public static final String ATTR_ORIENTATION
public static final String ATTR_PARAM
public static final String ATTR_PLACE
public static final String ATTR_VIEW
public static final String ATTR_VIEWDIR
public static final String ATTR_URL
public static final String ATTR_FILE
public static final String ATTR_FROMFILE
public static final String ATTR_NORTH
public static final String ATTR_SOUTH
public static final String ATTR_EAST
public static final String ATTR_WEST
public static final String ATTR_WIDTH
public static final String ATTR_HEIGHT
public static final String ATTR_SLEEP
public static final String ATTR_SECONDS
public static final String ATTR_MINUTES
public static final String ATTR_HOURS
public static final String ATTR_CLEAR
public static final String ATTR_CODE
public static final String ATTR_LAT
public static final String ATTR_LON
public static final String ATTR_WHAT
| Constructor Detail |
|---|
public ImageGenerator(IntegratedDataViewer idv)
idv - The IDV
public ImageGenerator(IntegratedDataViewer idv,
List scriptFiles)
idv - The IDVscriptFiles - List of isl files| Method Detail |
|---|
public void processScriptFiles(List scriptFiles)
scriptFiles - isl filespublic boolean processScriptFile(String islFile)
islFile - file
public boolean processScriptFile(String islFile,
Hashtable properties)
islFile - the ISL fileproperties - optional properties
protected boolean processTagFtp(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagExport(Element node)
throws Throwable
node - isl xml node
Throwable - On badness
protected boolean processTagTrace(Element node)
throws Throwable
node - the node
Throwable - on badness
protected boolean processTagRemovedisplays(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagPrintcache(Element node)
throws Throwable
node - the XML node
Throwable - on badness
protected boolean processTagRemoveall(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagSetfiles(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagExists(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagAsk(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagEcho(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagAsktocontinue(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagGc(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagBreak(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagContinue(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagReturn(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagProcedure(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagMkdir(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagStop(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected String[] getPropertyValue(Element node)
throws Throwable
node - the XML node
Throwable - on badness
protected boolean processTagIdvproperty(Element node)
throws Throwable
node - the XML node
Throwable - on badness
protected boolean processTagProperty(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagMove(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagRename(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagDelete(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagClear(Element node)
throws Throwable
node - node
Throwable - On badness
protected boolean processTagAppend(Element node)
throws Throwable
node - node
Throwable - On badness
protected boolean processTagIncrement(Element node)
throws Throwable
node - node
Throwable - On badness
protected boolean processTagReplace(Element node)
throws Throwable
node - node
Throwable - On badness
protected boolean processTagCopy(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagReload(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagExec(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagJython(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagFileset(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagImport(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagDatasource(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagJoin(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagView(Element node)
throws Throwable
node - the element
Throwable - problems
protected boolean processTagAnimation(Element node)
throws Throwable
node - the node
Throwable - problems
protected boolean processTagViewpoint(Element node)
throws Throwable
node - the node
Throwable - problems
protected boolean processTagCenter(Element node)
throws Throwable
node - Node to process
Throwable - On badnesspublic DisplayControlImpl findDisplayControl(String id)
id - The id of the display control. This can be the id or it can be a 'class:class name'
public DisplayControlImpl findDisplayControl(String id,
List<DisplayControlImpl> controls)
id - the control idcontrols - the list of controls
protected boolean processTagBundle(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagCall(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagCall(Element node,
Element procNode)
throws Throwable
node - Node to processprocNode - The procedure node
Throwable - On badness
protected boolean processTagIf(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagOutput(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagIsl(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagGroup(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagForeach(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagMovie(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagHtml(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagPanel(Element node)
throws Throwable
node - Node to process
Throwable - On badness
public void writeMovie(String filename,
String params)
throws Exception
filename - Movie filenameparams - xml parameters of the the form: "task arg=val arg2=val; task2 arg3=val"
ImageGenerator.MyBreakException - On badness
Exception
protected boolean processTagImage(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagWait(Element node)
throws Throwable
node - Node to process
Throwable - On badness
protected boolean processTagPause(Element node)
throws Throwable
node - Node to process
Throwable - On badnessprotected void updateViewManagers()
protected boolean processTagDisplayproperties(Element node)
node - the node
protected boolean processTagDisplay(Element node)
node - Node to process
protected boolean error(String msg)
msg - message
protected boolean error(String msg,
Exception exc)
msg - messageexc - exception
public String applyMacros(Element node,
String attr)
node - Node to processattr - Attribute name
public String applyMacros(Element node,
String attr,
String dflt)
node - Node to processattr - Attribute namedflt - The default value to use if the attribute does not exist
public int applyMacros(Element node,
String attr,
int dflt)
node - Node to processattr - Attribute namedflt - The default value to use if the attribute does not exist
public boolean applyMacros(Element node,
String attr,
boolean dflt)
node - Node to processattr - Attribute namedflt - The default value to use if the attribute does not exist
public Color applyMacros(Element node,
String attr,
Color dflt)
node - Node to processattr - Attribute namedflt - The default value to use if the attribute does not exist
public double applyMacros(Element node,
String attr,
double dflt)
node - Node to processattr - Attribute namedflt - The default value to use if the attribute does not exist
public String applyMacros(String s)
s - The string
public void captureImage(String filename)
filename - The image filename
public void putIndex(Hashtable props,
String name,
int v)
props - the propertiesname - the namev - the indexpublic void pause()
public void setDebug(boolean v)
v - debug
public boolean evaluateIsl(String isl)
throws Throwable
isl - The isl
Throwable - On badness
public void loadBundle(String bundleFile,
List setFiles)
throws Throwable
bundleFile - The bundlesetFiles - This is a list, which may be null, of datasource patterns and file names to change
Throwable - On badness
public void loadBundle(String bundleFile,
List setFiles,
int width,
int height)
throws Throwable
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
Throwable - an exception
public void loadBundle(String bundleFile,
List setFiles,
int width,
int height,
String times,
boolean clear)
throws Throwable
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)
Throwable - an exception
public void writeImageToFile(Image image,
String file)
throws Exception
image - Image to be writtenfile - Name of output file (may use macros)
ImageGenerator.MyBreakException - On badness
Exceptionprotected static String makeXmlFromString(String s)
s - in the form: "task arg=val arg2=val; task2 arg3=val"
public void writeImage(String filename,
String params,
float qual)
throws Exception,
Throwable
filename - Output filename (may be modified by macros)params - String of parametersqual - Quality (def=1.0)
ImageGenerator.MyBreakException - On badness
Throwable - On badness
Exception
public Image getImage()
throws Exception
ImageGenerator.MyBreakException - On badness
Exception
protected Image resize(Image image,
Element node)
image - The imagenode - Node to process. This may contain a width or a height attribute.
public BufferedImage resizeImage(BufferedImage image,
String widthStr,
String heightStr)
image - The imagewidthStr - width of desired image (pixels)heightStr - height of desired image (pixels)
public BufferedImage matteImage(BufferedImage image,
String bgString,
int top,
int left,
int bottom,
int right)
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
protected BufferedImage processImage(BufferedImage image,
String filename,
Element node,
Hashtable props,
ViewManager viewManager,
Hashtable imageProps)
throws Throwable
image - The imagefilename - File to write the image tonode - Node to processprops - Extra propertiesviewManager - The viewmanager this image came fromimageProps - the image properties
Throwable - On badness
public Insets getInsets(Element child,
int dflt)
child - the elementdflt - the default value
public BufferedImage doLatLonLabels(Element child,
ViewManager viewManager,
BufferedImage image,
Hashtable imageProps)
throws Exception
child - the XMLviewManager - the associated view managerimage - the image to draw onimageProps - the image properties
ImageGenerator.MyBreakException - on badness
Exception
public BufferedImage doMatte(BufferedImage image,
Element child,
int dfltSpace)
image - the imagechild - the XML defining the mattingdfltSpace - default spacing
public BufferedImage doMatte(BufferedImage image,
Element child,
Insets insets)
image - the imagechild - the matte specsinsets - the insets
public void doneCapturingMovie()
public void captureMovie(String filename)
filename - The movie filename
public void captureMovie(String filename,
Element scriptingNode)
filename - The filescriptingNode - Node form isl.public Date getAnimationTime()
public String fields(String datasource,
String pattern)
datasource - data sourcepattern - pattern to match
protected void debug(String msg)
msg - The message
public static void ftpPut(String server,
String userName,
String password,
String destination,
byte[] bytes)
throws Exception
server - serveruserName - user name on serverpassword - password on serverdestination - Where to put the bytesbytes - The bytes
ImageGenerator.MyBreakException - On badness
Exceptionpublic String getLetter(int i)
i - the index
public String getRoman(int i)
i - the index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||