jview
Class JSkyGrid.Display

java.lang.Object
  extended by util.CommandLineParser
      extended by astro.RaDeParser
          extended by jview.JSkyGrid.Display
Enclosing class:
JSkyGrid

public static final class JSkyGrid.Display
extends RaDeParser

Test the functionality. Understands command line switches for adding catalogs etc.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String CATALOG
          The default catalog name.
private static Map DEFAULT
          Default properties.
private static String FOOT
          A footer message.
private static String ONE
          The switches for adding properties.
private static double SIZE
          The default size.
private static String TWO
          The switches for adding properties.
private static String ZERO
          The no-argument switch.
 
Fields inherited from class astro.RaDeParser
USE
 
Constructor Summary
JSkyGrid.Display()
          Constructs the parser to the sky display.
 
Method Summary
static void main(String[] arg)
          Reads a fits-file from the first command line argument and displays it.
private  JSkyGrid process(String[] arg)
          Reads the command line and parses object ra,dec out of it.
 
Methods inherited from class astro.RaDeParser
getRaDe
 
Methods inherited from class util.CommandLineParser
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

private static final String ZERO
The no-argument switch.

See Also:
Constant Field Values

ONE

private static final String ONE
The switches for adding properties.

See Also:
Constant Field Values

TWO

private static final String TWO
The switches for adding properties.

See Also:
Constant Field Values

FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values

DEFAULT

private static Map DEFAULT
Default properties.


SIZE

private static final double SIZE
The default size.

See Also:
Constant Field Values

CATALOG

private static final String CATALOG
The default catalog name.

See Also:
Constant Field Values
Constructor Detail

JSkyGrid.Display

public JSkyGrid.Display()
Constructs the parser to the sky display. All known switches are registered.

Method Detail

process

private JSkyGrid process(String[] arg)
                  throws ParseException
Reads the command line and parses object ra,dec out of it. If a catlog is given, it is retrieved.

Throws:
ParseException

main

public static void main(String[] arg)
                 throws Exception
Reads a fits-file from the first command line argument and displays it.

Throws:
Exception