jimm.datavision
Class DataVision

java.lang.Object
  extended by jimm.datavision.DataVision

public class DataVision
extends java.lang.Object

This is the DataVision application class. It opens a design window for each report specified on the command line. If none are specified, it openes a new design window on a new, empty report.

Author:
Jim Menard, jimm@io.com

Field Summary
(package private)  java.lang.String charSepFile
           
(package private)  java.lang.String dbPassword
           
protected static java.lang.String DEFAULT_CHARACTER_SEPARATOR
           
(package private)  char layoutEngineChoice
           
(package private)  java.lang.String layoutEngineFileName
           
(package private)  int numReports
           
(package private)  java.lang.String outputDir
           
(package private)  java.lang.String paramXMLFile
           
(package private)  java.lang.String reportDir
           
(package private)  char sepChar
           
(package private)  boolean usesGUI
           
 
Constructor Summary
DataVision()
           
 
Method Summary
(package private)  LayoutEngine createLayoutEngine(java.io.File f, Getopts g)
           
protected  void dataSourceFromOptions(Getopts g)
          Use the options related to the data source defined in the report XML file.
(package private)  void designReport(Getopts g, java.io.File reportXMLFile)
           
(package private)  char getLayoutEngineChoice()
           
(package private)  boolean hasLayoutEngine()
           
(package private)  void layoutEngineChoiceFromOptions(Getopts g)
           
static void main(java.lang.String[] args)
          This main application method opens a design window for each report specified on the command line.
(package private)  void runReport(Getopts g, java.io.File reportXMLFile)
           
(package private) static boolean startupDialog()
          Shows startup dialog and returns true if we should exit the application.
protected  void swingLayoutEngineClosed()
          We arrange this method to be called by a Swing layout engine when it closes.
 java.lang.String toString()
           
static void usage(java.lang.String errMsg)
          Prints a usage message and an optional extra error message to System.err and exits.
(package private)  boolean usesGUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CHARACTER_SEPARATOR

protected static final java.lang.String DEFAULT_CHARACTER_SEPARATOR
See Also:
Constant Field Values

layoutEngineChoice

char layoutEngineChoice

layoutEngineFileName

java.lang.String layoutEngineFileName

dbPassword

java.lang.String dbPassword

paramXMLFile

java.lang.String paramXMLFile

numReports

int numReports

usesGUI

boolean usesGUI

charSepFile

java.lang.String charSepFile

sepChar

char sepChar

reportDir

java.lang.String reportDir

outputDir

java.lang.String outputDir
Constructor Detail

DataVision

public DataVision()
Method Detail

main

public static void main(java.lang.String[] args)
This main application method opens a design window for each report specified on the command line. If none are specified, it openes a new design window on a new, empty report.

Parameters:
args - command line array; each element is assumed to be a report file name.

designReport

void designReport(Getopts g,
                  java.io.File reportXMLFile)
            throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

startupDialog

static boolean startupDialog()
Shows startup dialog and returns true if we should exit the application.

Returns:
true if we should exit the application

runReport

void runReport(Getopts g,
               java.io.File reportXMLFile)
         throws java.lang.Exception
Throws:
java.lang.Exception

hasLayoutEngine

boolean hasLayoutEngine()

getLayoutEngineChoice

char getLayoutEngineChoice()

usesGUI

boolean usesGUI()

layoutEngineChoiceFromOptions

void layoutEngineChoiceFromOptions(Getopts g)

createLayoutEngine

LayoutEngine createLayoutEngine(java.io.File f,
                                Getopts g)
                          throws java.io.IOException
Throws:
java.io.IOException

swingLayoutEngineClosed

protected void swingLayoutEngineClosed()
We arrange this method to be called by a Swing layout engine when it closes. If appropriate, exit the app.


dataSourceFromOptions

protected void dataSourceFromOptions(Getopts g)
Use the options related to the data source defined in the report XML file.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

usage

public static void usage(java.lang.String errMsg)
Prints a usage message and an optional extra error message to System.err and exits.

Parameters:
errMsg - string to print; may be null