|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
org.python.core.PyInstance
org.python.core.PyJavaInstance
org.virbo.autoplot.ScriptContext
public class ScriptContext
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
org.python.core.PyObject.ConversionException |
Field Summary |
---|
Fields inherited from class org.python.core.PyInstance |
---|
__dict__, instclass |
Fields inherited from class org.python.core.PyObject |
---|
exposed_name |
Constructor Summary | |
---|---|
ScriptContext()
|
Method Summary | |
---|---|
static void |
_setOutputStream(java.io.OutputStream out)
resets the output stream. |
static void |
bind(java.lang.Object src,
java.lang.String srcProp,
java.lang.Object dst,
java.lang.String dstProp)
binds two bean properties together. |
static void |
createGui()
create a model with a GUI presentation layer. |
static void |
dumpToDas2Stream(org.virbo.dataset.QDataSet ds,
boolean ascii)
serializes the dataset to a das2stream, a well-documented, open, streaming data format. |
static void |
dumpToDas2Stream(org.virbo.dataset.QDataSet ds,
java.lang.String file,
boolean ascii)
serializes the dataset to a das2stream, a well-documented, open, streaming data format. |
static ApplicationModel |
getApplicationModel()
returns the internal application model (the object that does all the business). |
static org.virbo.dataset.QDataSet |
getDataSet(java.lang.String surl)
load the data specified by URL into Autoplot's internal data model. |
static org.virbo.dataset.QDataSet |
getDataSet(java.lang.String surl,
org.das2.util.monitor.ProgressMonitor mon)
load the data specified by URL into Autoplot's internal data model. |
static java.lang.String[] |
getTimeRangesFor(java.lang.String surl,
java.lang.String timeRange,
java.lang.String format)
return an array of URLs that match the spec for the time range provided. |
static java.lang.String[] |
list(java.lang.String surl)
returns a list of the files in the local or remote filesystem pointed to by surl. |
static void |
peekAt(java.lang.Object o)
|
static void |
plot(java.lang.String surl)
bring up the autoplot with the specified URL. |
protected static void |
setApplicationModel(ApplicationModel m)
|
static void |
setCanvasSize(int width,
int height)
set the size of the canvas. |
static void |
setDataSourceURL(java.lang.String surl)
set the internal model's url to surl. |
static void |
setTitle(java.lang.String title)
set the title of the plot. |
protected static void |
setView(AutoPlotUI v)
|
static void |
writeToPdf(java.lang.String filename)
write out the current canvas to a pdf file. |
static void |
writeToPng(java.io.OutputStream out)
write out the current canvas to stdout. |
static void |
writeToPng(java.lang.String filename)
write out the current canvas to a png file. |
Methods inherited from class org.python.core.PyJavaInstance |
---|
__cmp__, __delattr__, __init__, __repr__, __str__, _is, _isnot, hashCode, noField, readExternal, unassignableField, writeExternal |
Methods inherited from class org.python.core.PyInstance |
---|
__abs__, __add__, __and__, __call__, __coerce_ex__, __complex__, __contains__, __delitem__, __div__, __divmod__, __eq__, __findattr__, __findattr__, __finditem__, __finditem__, __float__, __floordiv__, __ge__, __getitem__, __gt__, __hex__, __iadd__, __iand__, __idiv__, __ifloordiv__, __ilshift__, __imod__, __imul__, __int__, __invert__, __ior__, __ipow__, __irshift__, __isub__, __iter__, __iternext__, __itruediv__, __ixor__, __jfindattr__, __le__, __len__, __long__, __lshift__, __lt__, __mod__, __mul__, __ne__, __neg__, __nonzero__, __oct__, __or__, __pos__, __pow__, __radd__, __rand__, __rdiv__, __rdivmod__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __setattr__, __setitem__, __sub__, __tojava__, __truediv__, __unicode__, __xor__, fastGetClass, ifindclass, ifindfunction, ifindlocal, invoke_ex, invoke_ex, invoke_ex, invoke_ex, invoke, invoke, invoke, makeProxy |
Methods inherited from class org.python.core.PyObject |
---|
__call__, __call__, __call__, __call__, __call__, __call__, __call__, __coerce__, __delattr__, __delete__, __delitem__, __delslice__, __delslice__, __dir__, __findattr__, __finditem__, __get__, __getattr__, __getattr__, __getitem__, __getnewargs__, __getslice__, __getslice__, __hash__, __idivmod__, __not__, __pow__, __rawdir__, __reduce__, __set__, __setattr__, __setitem__, __setitem__, __setslice__, __setslice__, _add, _and, _callextra, _cmp, _div, _divmod, _doget, _doget, _doset, _eq, _floordiv, _ge, _gt, _in, _jcall, _jcallexc, _jthrow, _le, _lshift, _lt, _mod, _mul, _ne, _notin, _or, _pow, _rshift, _sub, _truediv, _unsupportedop, _xor, addKeys, asInt, asLong, asName, asString, asStringOrNull, delDict, delType, dispatch__init__, equals, fastGetDict, getDict, getDoc, getType, impAttr, implementsDescrDelete, implementsDescrSet, invoke, invoke, isCallable, isDataDescr, isMappingType, isNumberType, isSequenceType, noAttributeError, readonlyAttributeError, runsupportedopMessage, safeRepr, setDict, setType, toString, typeSetup, unsupportedopMessage |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptContext()
Method Detail |
---|
protected static void setApplicationModel(ApplicationModel m)
protected static void setView(AutoPlotUI v)
public static void _setOutputStream(java.io.OutputStream out)
out
- public static void setCanvasSize(int width, int height)
width
- height
- public static void setDataSourceURL(java.lang.String surl) throws java.lang.InterruptedException
surl
-
java.lang.InterruptedException
public static void plot(java.lang.String surl) throws java.lang.InterruptedException
surl
-
java.lang.InterruptedException
public static void writeToPng(java.lang.String filename) throws java.lang.InterruptedException, java.io.IOException
filename
-
java.lang.InterruptedException
java.io.IOException
public static void peekAt(java.lang.Object o) throws java.io.IOException
java.io.IOException
public static void writeToPng(java.io.OutputStream out) throws java.lang.InterruptedException, java.io.IOException
OutputStream
- out
java.lang.InterruptedException
java.io.IOException
public static void writeToPdf(java.lang.String filename) throws java.lang.InterruptedException, java.io.IOException
filename
-
java.lang.InterruptedException
java.io.IOException
public static java.lang.String[] getTimeRangesFor(java.lang.String surl, java.lang.String timeRange, java.lang.String format) throws java.io.IOException, java.text.ParseException
surl
- an autoplot url with an aggregation specifier.timeRange
- a string that is parsed to a time range, such as "2001"format
- format for the result, such as "%Y-%m-%d"
java.io.IOException
- if the remote folder cannot be listed.
java.text.ParseException
- if the timerange cannot be parsed.public static void setTitle(java.lang.String title)
title
- public static void createGui()
public static ApplicationModel getApplicationModel()
public static void bind(java.lang.Object src, java.lang.String srcProp, java.lang.Object dst, java.lang.String dstProp)
src
- java bean such as model.getPlot()srcProp
- a property name such as "title"dst
- java bean such as model.getPlot().getXAxis()dstProp
- a property name such as "label"public static org.virbo.dataset.QDataSet getDataSet(java.lang.String surl, org.das2.util.monitor.ProgressMonitor mon) throws java.lang.Exception
ds
-
java.lang.Exception
public static org.virbo.dataset.QDataSet getDataSet(java.lang.String surl) throws java.lang.Exception
ds
-
java.lang.Exception
public static void dumpToDas2Stream(org.virbo.dataset.QDataSet ds, boolean ascii)
ds
- public static void dumpToDas2Stream(org.virbo.dataset.QDataSet ds, java.lang.String file, boolean ascii) throws java.io.IOException
ds
-
java.io.IOException
public static java.lang.String[] list(java.lang.String surl) throws java.net.MalformedURLException, java.io.IOException
surl
-
java.net.MalformedURLException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |