## org.das2.DasApplication

DasApplication object manages per-application resources, like object name space, dataset caching, progress monitoring, exception handling and a network speed limiter.

## createMainFrame

Deprecated: use createMainFrame( String title, Container container ); createMainFrame( String title, java.awt.Container container ) → javax.swing.JFrame [view source]
createMainFrame( ) → javax.swing.JFrame [view source]
createMainFrame( String title ) → javax.swing.JFrame [view source]

## getDas2UserDirectory

getDas2UserDirectory( ) → java.io.File

returns the location of the local directory sandbox. For example, The web filesystem object downloads temporary files to here, logging properties file, etc. Assume that this File is local, so I/O is quick, and that the process has write access to this area. For definition, assume that at least 1Gb of storage is available as well.

### Returns:

java.io.File
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getDas2Version

getDas2Version( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getDataSetCache

getDataSetCache( ) → org.das2.dataset.DataSetCache

### Returns:

org.das2.dataset.DataSetCache
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getDefaultApplication

getDefaultApplication( ) → org.das2.DasApplication

### Returns:

org.das2.DasApplication
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getExceptionHandler

getExceptionHandler( ) → org.das2.util.ExceptionHandler

warning: this code is repeated in FileSystem to avoid dependence.

### Returns:

an org.das2.util.ExceptionHandler
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getInputStreamMeter

getInputStreamMeter( ) → org.das2.client.InputStreamMeter

### Returns:

org.das2.client.InputStreamMeter
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getLogger

getLogger( ) → java.util.logging.Logger

### Returns:

java.util.logging.Logger
[search for examples] [view on GitHub] [view on old javadoc] [view source]
getLogger( org.das2.system.LoggerId id ) → java.util.logging.Logger [view source]

## getMainFrame

getMainFrame( ) → javax.swing.JFrame

### Returns:

javax.swing.JFrame
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getMonitorFactory

getMonitorFactory( ) → org.das2.system.MonitorFactory

### Returns:

org.das2.system.MonitorFactory
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getNameContext

getNameContext( ) → org.das2.NameContext

### Returns:

org.das2.NameContext
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getProperty

getProperty( String name, String deft ) → String

support restricted security environment by checking permissions before checking property.

### Parameters

name - a String
deft - a String

### Returns:

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

## hasAllPermission

hasAllPermission( ) → boolean

check the security manager to see if all permissions are allowed, True indicates is not an applet running in a sandbox. See FileSystemSettings, which has a copy of this code

### Returns:

true if all permissions are allowed
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isApplet

isApplet( ) → boolean

### Returns:

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

## isHeadless

isHeadless( ) → boolean

### Returns:

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

## isInteractive

isInteractive( ) → boolean

Getter for property interactive.

### Returns:

Value of property interactive.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isJavaWebStart

isJavaWebStart( ) → boolean

return true if the application appears to have been launched with Java WebStart.

### Returns:

true if it appears that Java Webstart was used to launch the application.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isReloadLoggingProperties

isReloadLoggingProperties( ) → boolean

### Returns:

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

## quit

quit( ) → void

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## resetDefaultApplication

resetDefaultApplication( ) → void

nasty, evil method for releasing resources on a server. DO NOT USE THIS!!!!

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setApplet

setApplet( boolean applet ) → void

### Parameters

applet - a boolean

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setExceptionHandler

setExceptionHandler( org.das2.util.ExceptionHandler h ) → void

explicitly set the ExceptionHandler that will handle runtime exceptions

### Parameters

h - an ExceptionHandler

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setHeadless

setHeadless( boolean headless ) → void

### Parameters

headless - a boolean

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setInteractive

setInteractive( boolean interactive ) → void

Setter for property interactive.

### Parameters

interactive - New value of property interactive.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setMainFrame

setMainFrame( javax.swing.JFrame frame ) → void

### Parameters

frame - a JFrame

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setReloadLoggingProperties

setReloadLoggingProperties( boolean v ) → void

### Parameters

v - a boolean

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setRestrictPermission

setRestrictPermission( boolean v ) → void

true means don't attempt to gain access to applet-restricted functions.

### Parameters

v - true means don't attempt to gain access to applet-restricted functions.

### Returns:

void (returns nothing)

### See Also:

FileSystemSettings#setRestrictPermission(boolean)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## suggestNameFor

suggestNameFor( Object c ) → String

### Parameters

c - an Object

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]