org.autoplot.dom.Application

Represents a state of the application as a whole, with its one canvas and multiple plots, axes, and bindings.

Application( )


DEFAULT_TIME_RANGE

default time range indicates when the range is not being used. This should never been seen by the user.


PROP_DATASOURCEFILTERS


PROP_PLOT_ELEMENTS


PROP_PLOTS


PROP_CANVASES


PROP_ANNOTATIONS


PROP_TIMERANGE

all time axes should hang off of this.


PROP_EVENTSLISTURI


PROP_BINDINGS


PROP_CONNECTORS

childNodes( ) → java.util.List [view source]

copy

copy( ) → org.autoplot.dom.DomNode

return a copy of this application state.

Returns:

a copy of this application state.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


diffs

diffs( org.autoplot.dom.DomNode node ) → java.util.List

List the differences between the two nodes. These should always be from this to that. TODO: somehow this ends up working, although PlotElement and Style don't follow this rule.

Parameters

node - a DomNode

Returns:

a java.util.List

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getAnnotations( ) → org.autoplot.dom.Annotation[] [view source]
getAnnotations( int index ) → org.autoplot.dom.Annotation [view source]
getBindings( ) → org.autoplot.dom.BindingModel[] [view source]
getBindings( int index ) → org.autoplot.dom.BindingModel [view source]
getCanvases( ) → org.autoplot.dom.Canvas[] [view source]
getCanvases( int index ) → org.autoplot.dom.Canvas [view source]
getConnectors( ) → org.autoplot.dom.Connector[] [view source]
getConnectors( int index ) → org.autoplot.dom.Connector [view source]
getController( ) → org.autoplot.dom.ApplicationController [view source]
getDataSourceFilters( ) → org.autoplot.dom.DataSourceFilter[] [view source]
getDataSourceFilters( int index ) → org.autoplot.dom.DataSourceFilter [view source]

getElementById

getElementById( String id ) → org.autoplot.dom.DomNode

return the DomNode referenced by id. This was introduced because it is often difficult to identify the index of a plot in the plots array but its id is known, and this avoids the import of DomUtil.

Parameters

id - an id, such as "plot_2"

Returns:

the node

See Also:

DomUtil#getElementById(org.autoplot.dom.DomNode, java.lang.String)


[search for examples] [view on GitHub] [view on old javadoc] [view source]

getEventsListUri( ) → String [view source]
getOptions( ) → org.autoplot.dom.Options [view source]
getPlotElements( ) → org.autoplot.dom.PlotElement[] [view source]
getPlotElements( int index ) → org.autoplot.dom.PlotElement [view source]
getPlots( ) → org.autoplot.dom.Plot[] [view source]
getPlots( int index ) → org.autoplot.dom.Plot [view source]
getTimeRange( ) → DatumRange [view source]
setAnnotations( org.autoplot.dom.Annotation[] annotations ) → void [view source]
setAnnotations( int index, org.autoplot.dom.Annotation annotation ) → void [view source]
setBindings( org.autoplot.dom.BindingModel[] bindings ) → void [view source]
setBindings( int index, org.autoplot.dom.BindingModel newBinding ) → void [view source]
setCanvases( org.autoplot.dom.Canvas[] canvases ) → void [view source]
setCanvases( int index, org.autoplot.dom.Canvas newCanvas ) → void [view source]
setConnectors( org.autoplot.dom.Connector[] connectors ) → void [view source]
setConnectors( int index, org.autoplot.dom.Connector newConnector ) → void [view source]
setDataSourceFilters( org.autoplot.dom.DataSourceFilter[] dataSourceFilters ) → void [view source]
setDataSourceFilters( int index, org.autoplot.dom.DataSourceFilter newDataSourceFilter ) → void [view source]
setEventsListUri( String eventsListUri ) → void [view source]
setOptions( org.autoplot.dom.Options options ) → void [view source]
setPlotElements( org.autoplot.dom.PlotElement[] pele ) → void [view source]
setPlotElements( int index, org.autoplot.dom.PlotElement pele ) → void [view source]
setPlots( org.autoplot.dom.Plot[] plots ) → void [view source]
setPlots( int index, org.autoplot.dom.Plot newPlots ) → void [view source]
setTimeRange( DatumRange timeRange ) → void [view source]
syncTo( org.autoplot.dom.DomNode n ) → void [view source]
syncTo( org.autoplot.dom.DomNode n, java.util.List exclude ) → void [view source]