Package uk.ac.starlink.topcat
Class Driver
- java.lang.Object
-
- uk.ac.starlink.topcat.Driver
-
public class Driver extends java.lang.ObjectMain class for invoking the TOPCAT application from scratch. Contains some useful static configuration-type methods as well as themain(java.lang.String[])method itself.- Since:
- 9 Mar 2004
- Author:
- Mark Taylor (Starlink)
-
-
Constructor Summary
Constructors Constructor Description Driver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanRead()Indicates whether the security context will permit reads from local disk.static booleancanWrite()Indicates whether the security context will permit writes to local disk.static booleanisStandalone()Indicates whether the TableViewer application is standalone or not.static voidmain(java.lang.String[] args)Main method for TOPCAT invocation.static voidsetStandalone(boolean standalone)Determines whether TableViewers associated with this class should act as a standalone application.
-
-
-
Method Detail
-
setStandalone
public static void setStandalone(boolean standalone)
Determines whether TableViewers associated with this class should act as a standalone application. If standalone is set true, then it will be possible to exit the JVM using menu items etc in the viewer. Otherwise, no normal activity within the TableViewer GUI will cause a JVM exit.- Parameters:
standalone- whether this class should act as a standalone application
-
isStandalone
public static boolean isStandalone()
Indicates whether the TableViewer application is standalone or not.- Returns:
- whether this should act as a standalone application.
-
canRead
public static boolean canRead()
Indicates whether the security context will permit reads from local disk.- Returns:
- true iff reads are permitted
-
canWrite
public static boolean canWrite()
Indicates whether the security context will permit writes to local disk.- Returns:
- true iff writes are permitted
-
main
public static void main(java.lang.String[] args) throws org.astrogrid.samp.client.SampException, java.io.IOExceptionMain method for TOPCAT invocation. Under normal circumstances this will pop up a ControlWindow and populate it with tables named in the arguments.- Parameters:
args- list of flags and table specifications- Throws:
org.astrogrid.samp.client.SampExceptionjava.io.IOException
-
-