Class UlvShared

java.lang.Object
  |
  +--UlvShared

public class UlvShared
extends java.lang.Object

this classes contains all of the common data for the ulv program and the shared static methods, it is also the class that is responsible for the maintenance of the configuration file that stores user preferences


Field Summary
static java.awt.Color abortColor
           
static boolean addBackButtonToHelpWindow
          what to include in the help window
static boolean addStatusBarToHelpWindow
           
static java.awt.Color axisColor
           
static java.awt.Color axisTextColor
           
static java.awt.Color axisTitleTextColor
           
static java.awt.Color backgroundColor
          misc.
static java.awt.Color badPutColor
           
static java.awt.Color badPutXColor
           
static int[] biggestZoom
           
static int[] bigZoom
           
static java.awt.Color borderColor
           
static int borderGap
           
static int BOX_HEIGHT
           
static int BOX_WIDTH
           
static java.awt.Color checkPointColor
           
static boolean checkPointsExist
          some booleans to show which events exist in the current view
static java.lang.String condorIcon
           
static java.net.URL currentURL
          the currentURL if we're using the sample.log
static Debugger DebugApplet
           
static Debugger DebugConfigFile
           
static Debugger DebugDebugger
           
static Debugger DebugDoubleDraw
           
static Debugger DebugFreeze
           
static Debugger DebugGetImageFile
           
static Debugger DebugJobSelector
           
static Debugger DebugJobTrimmer
           
static Debugger DebugLegend
           
static Debugger DebugMenuCheckBoxes
           
static Debugger DebugMultiYear
           
static Debugger DebugNullStartTime
           
static Debugger DebugParse
           
static Debugger DebugRecenter
           
static Debugger DebugRHS
           
static Debugger DebugScrollBars
           
static Debugger DebugSplashWindow
           
static Debugger DebugTransistions
          some debuggers
static Debugger DebugZoom
           
 float defaultSecsToPixels
           
static java.awt.Color distinctBadPutColor
           
static java.awt.Color distinctUnknownStateColor
           
static boolean doubleAxisLines
           
static int Down
           
static boolean drawFakeLittleHelpButton
          whether to draw the fake little help button
static java.awt.Color errorTextColor
           
static boolean evictBadsExist
          some booleans to show which events exist in the current view
static java.awt.Color evictColor
           
static boolean evictGoodsExist
          some booleans to show which events exist in the current view
static java.awt.Color executableErrorColor
           
static java.awt.Color executeColor
           
static boolean executeErrorsExist
          some booleans to show which events exist in the current view
static boolean executesExist
          some booleans to show which events exist in the current view
static boolean expertMode
          controls whether the legend and eventDescription boxes are added to main window at creation time or not
static java.awt.Color flashBoxColor
           
static java.awt.Color flashBoxColor2
           
static int FullRedraw
          how should drawing board redraw itself
static java.awt.Color genericColor
           
static boolean genericsExist
          some booleans to show which events exist in the current view
static java.awt.Color goodPutColor
          state colors
static java.awt.Color goodPutPlusColor
           
static java.awt.Color helpButtonBoxColor
           
static java.awt.Color helpButtonColor
           
static java.lang.String helpFile
          the filename of the help file
static java.awt.Point helpWindowLocation
           
static java.awt.Dimension helpWindowSize
          the help windows last start position and size
static java.awt.Color idleColor
           
static java.awt.Color imageColor
           
static boolean imageSizesExist
          some booleans to show which events exist in the current view
static boolean inAnApplet
          a boolean that shows whether the program is being run as an applet or as an application, main() turns it to false
static java.awt.Color incrementMarkerColor
           
static int incrementMarkerHeight
          axes data
static int incrementMarkerWidth
           
static boolean jobAbortsExist
          some booleans to show which events exist in the current view
static java.awt.Point jobSelectorLocation
          the job selector's last position
static java.lang.String lastDirectory
          the last directory used to open a file
static java.lang.String lastModified
           
static int Left
           
static int LINE_HEIGHT
          the int indexes to refer to the values in the zoom arrays
static java.awt.Color lookAheadColor
           
static int maxJobGap
          size of images
static int minJobGap
           
static java.awt.Color notAliveColor
           
static java.lang.String onLineHelpURL
          where to find online help
static boolean openFullScreen
          whether to open as totally maximized or not
static int PartialRedraw
           
static java.awt.Point programLocation
          the programs last start position and size
static java.lang.String programmer
          who is a trusted user
static java.lang.String programName
          used by the auto-upgrader which is not yet implemented
static java.awt.Dimension programSize
           
static boolean reportParseErrors
          a boolean to control whether to report parse errors
static int Right
           
static java.lang.String sampleLogFileName
          the name of the sample log file which users can view in the applet demo
static java.awt.Color shadowColor
           
static boolean shadowsExist
          some booleans to show which events exist in the current view
static boolean showBothRunStates
          some booleans to control what is drawn
static boolean showCheckPointEvents
           
static boolean showCheckPoints
           
static boolean showErrorEvents
           
static boolean showEvictBads
           
static boolean showEvictGoods
           
static boolean showExecutableErrors
           
static boolean showExecutes
           
static boolean showGenerics
           
static boolean showImageSizes
           
static boolean showJobAborts
           
static boolean showJobSelector
          does the user like a jobSelector window
static boolean showShadows
           
static boolean showSubmits
          some booleans to show which events appear
static boolean showTerminates
           
static boolean showToolBar
          does the user want the toolbar visible
static boolean showUnknownPutAsBadPut
           
static boolean showUnknownTransistions
           
static boolean showZoomFinder
          for flashing a quick zoom finder box
static int[] smallestZoom
          a couple of arrays to hold zoom settings the data represents lineHeight, boxWidth, boxHeight
static int[] smallZoom
           
static java.lang.String splashImage
          image file names
static java.awt.Color submitColor
          COLORS * event colors
static boolean submitsExist
          some booleans to show which events exist in the current view
static java.awt.Color terminateColor
           
static boolean terminatesExist
          some booleans to show which events exist in the current view
static java.awt.Color textColor
           
static boolean transistionsStartAtExactTime
          a boolean which controls whether transistions are drawn to the far left of the event box - which is exactly correct - or to the center of the event box - which may be more visually intuitive
static java.awt.Color unknownPutColor
           
static java.awt.Color unknownStateColor
           
static int Up
          for scrollbar adjustments
static java.lang.String versionNumber
           
static int ZOOM_FULL
           
static int ZOOM_IN
          how to zoom
static int ZOOM_OUT
           
static int zoomRatio
           
 
Constructor Summary
UlvShared()
           
 
Method Summary
static void appletSecurityWarning()
          this method warns users that they are attempting to do something in the applet that they are only allowed to do in the application
static void beep()
          a beeping shortcut
static void errorMessage(java.lang.String error)
          this method writes all error messages in the package to an error file
static java.util.Vector getAllCurrentLogFiles()
          a method that uses 'condor_q -global -verbose' to show all current log files in the network
static java.lang.String getCurrentLogFile()
          this method allows users to get the currentLogFile path or null
static java.lang.String getCurrentLogFilePath()
          this method allows users to get the currentLogFile
static java.net.URL getHelpURL(java.lang.Class clazz)
          this method returns the url of the help file
static java.awt.Image getImage(java.lang.String fileName, java.lang.Class clazz)
          this method trys to find the requested image file, currently it just looks for the image file in the class directory after checking that it hasn't been passed the full path already if it can't find the image file, it returns null
static java.net.URL getSampleLog(java.lang.Class clazz)
          a method which returns the file holding the sample log which can be viewed in the applet demo - null if it can't find it
static void loadPrefs()
          this method looks for a configuration file and loads settings from it
static void makeCondorIcon(javax.swing.JFrame win)
          this method attempts to add a Condor Icon to a frame
static void popupDebugger(java.lang.String foo)
          this method pops up a window with a debug message passed
static void printStackTrace()
          this method prints a stack trace - useful for debugging
static void rememberFile()
          this method adds a file name to the list of previously opened file
static void savePrefs()
          this methods looks for a configuration file and saves settings to it
static void setCurrentLogFile(java.io.File f)
          this method allows users to set the currentLogFile
static void setShowBothRunStates(boolean state)
          turn showBothRunStates on or off
static void setShowCheckPointEvents(boolean state)
          turn showCheckPointEvents on or off
static void setShowErrorEvents(boolean state)
          turn show showErrorEvents on or off
static void setShowEventFlags()
          sets flags for showEventFlags using the DrawTheLegend checkboxes
static void setShowEventFlags(boolean how)
          turns off or on all showEventFlags
static void setShowUnknownTransistions(boolean state)
          turn showUnknownTransistions on or off
static void simpleHelp()
          this method displays simple help if the cool help for some reason doesn't work
static boolean trustedUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastModified

public static final java.lang.String lastModified

programName

public static final java.lang.String programName
used by the auto-upgrader which is not yet implemented

versionNumber

public static final java.lang.String versionNumber

submitColor

public static final java.awt.Color submitColor
COLORS * event colors

executeColor

public static final java.awt.Color executeColor

executableErrorColor

public static final java.awt.Color executableErrorColor

checkPointColor

public static final java.awt.Color checkPointColor

evictColor

public static final java.awt.Color evictColor

goodPutPlusColor

public static java.awt.Color goodPutPlusColor

badPutXColor

public static final java.awt.Color badPutXColor

terminateColor

public static final java.awt.Color terminateColor

imageColor

public static final java.awt.Color imageColor

shadowColor

public static final java.awt.Color shadowColor

abortColor

public static final java.awt.Color abortColor

genericColor

public static final java.awt.Color genericColor

goodPutColor

public static final java.awt.Color goodPutColor
state colors

badPutColor

public static java.awt.Color badPutColor

distinctBadPutColor

public static final java.awt.Color distinctBadPutColor

unknownPutColor

public static java.awt.Color unknownPutColor

showUnknownPutAsBadPut

public static final boolean showUnknownPutAsBadPut

idleColor

public static final java.awt.Color idleColor

unknownStateColor

public static java.awt.Color unknownStateColor

distinctUnknownStateColor

public static final java.awt.Color distinctUnknownStateColor

notAliveColor

public static final java.awt.Color notAliveColor

lookAheadColor

public static final java.awt.Color lookAheadColor

backgroundColor

public static final java.awt.Color backgroundColor
misc. colors

textColor

public static final java.awt.Color textColor

errorTextColor

public static final java.awt.Color errorTextColor

axisTextColor

public static final java.awt.Color axisTextColor

axisTitleTextColor

public static final java.awt.Color axisTitleTextColor

borderColor

public static final java.awt.Color borderColor

axisColor

public static final java.awt.Color axisColor

incrementMarkerColor

public static final java.awt.Color incrementMarkerColor

helpButtonColor

public static final java.awt.Color helpButtonColor

helpButtonBoxColor

public static final java.awt.Color helpButtonBoxColor

flashBoxColor

public static final java.awt.Color flashBoxColor

flashBoxColor2

public static final java.awt.Color flashBoxColor2

showSubmits

public static boolean showSubmits
some booleans to show which events appear

showExecutes

public static boolean showExecutes

showExecutableErrors

public static boolean showExecutableErrors

showCheckPoints

public static boolean showCheckPoints

showEvictGoods

public static boolean showEvictGoods

showEvictBads

public static boolean showEvictBads

showTerminates

public static boolean showTerminates

showImageSizes

public static boolean showImageSizes

showShadows

public static boolean showShadows

showGenerics

public static boolean showGenerics

showJobAborts

public static boolean showJobAborts

showBothRunStates

public static boolean showBothRunStates
some booleans to control what is drawn

showUnknownTransistions

public static boolean showUnknownTransistions

showErrorEvents

public static boolean showErrorEvents

showCheckPointEvents

public static boolean showCheckPointEvents

submitsExist

public static boolean submitsExist
some booleans to show which events exist in the current view

executesExist

public static boolean executesExist
some booleans to show which events exist in the current view

executeErrorsExist

public static boolean executeErrorsExist
some booleans to show which events exist in the current view

checkPointsExist

public static boolean checkPointsExist
some booleans to show which events exist in the current view

evictGoodsExist

public static boolean evictGoodsExist
some booleans to show which events exist in the current view

evictBadsExist

public static boolean evictBadsExist
some booleans to show which events exist in the current view

terminatesExist

public static boolean terminatesExist
some booleans to show which events exist in the current view

imageSizesExist

public static boolean imageSizesExist
some booleans to show which events exist in the current view

shadowsExist

public static boolean shadowsExist
some booleans to show which events exist in the current view

genericsExist

public static boolean genericsExist
some booleans to show which events exist in the current view

jobAbortsExist

public static boolean jobAbortsExist
some booleans to show which events exist in the current view

expertMode

public static boolean expertMode
controls whether the legend and eventDescription boxes are added to main window at creation time or not

transistionsStartAtExactTime

public static boolean transistionsStartAtExactTime
a boolean which controls whether transistions are drawn to the far left of the event box - which is exactly correct - or to the center of the event box - which may be more visually intuitive

reportParseErrors

public static boolean reportParseErrors
a boolean to control whether to report parse errors

showJobSelector

public static boolean showJobSelector
does the user like a jobSelector window

showToolBar

public static boolean showToolBar
does the user want the toolbar visible

showZoomFinder

public static boolean showZoomFinder
for flashing a quick zoom finder box

inAnApplet

public static boolean inAnApplet
a boolean that shows whether the program is being run as an applet or as an application, main() turns it to false

sampleLogFileName

public static java.lang.String sampleLogFileName
the name of the sample log file which users can view in the applet demo

currentURL

public static java.net.URL currentURL
the currentURL if we're using the sample.log

programLocation

public static java.awt.Point programLocation
the programs last start position and size

programSize

public static java.awt.Dimension programSize

helpWindowSize

public static java.awt.Dimension helpWindowSize
the help windows last start position and size

helpWindowLocation

public static java.awt.Point helpWindowLocation

jobSelectorLocation

public static java.awt.Point jobSelectorLocation
the job selector's last position

addBackButtonToHelpWindow

public static boolean addBackButtonToHelpWindow
what to include in the help window

addStatusBarToHelpWindow

public static boolean addStatusBarToHelpWindow

helpFile

public static java.lang.String helpFile
the filename of the help file

onLineHelpURL

public static java.lang.String onLineHelpURL
where to find online help

openFullScreen

public static boolean openFullScreen
whether to open as totally maximized or not

DebugTransistions

public static Debugger DebugTransistions
some debuggers

DebugZoom

public static Debugger DebugZoom

DebugNullStartTime

public static Debugger DebugNullStartTime

DebugParse

public static Debugger DebugParse

DebugMultiYear

public static Debugger DebugMultiYear

DebugFreeze

public static Debugger DebugFreeze

DebugLegend

public static Debugger DebugLegend

DebugDoubleDraw

public static Debugger DebugDoubleDraw

DebugJobSelector

public static Debugger DebugJobSelector

DebugJobTrimmer

public static Debugger DebugJobTrimmer

DebugScrollBars

public static Debugger DebugScrollBars

DebugRecenter

public static Debugger DebugRecenter

DebugSplashWindow

public static Debugger DebugSplashWindow

DebugGetImageFile

public static Debugger DebugGetImageFile

DebugApplet

public static Debugger DebugApplet

DebugConfigFile

public static Debugger DebugConfigFile

DebugRHS

public static Debugger DebugRHS

DebugDebugger

public static Debugger DebugDebugger

DebugMenuCheckBoxes

public static Debugger DebugMenuCheckBoxes

lastDirectory

public static java.lang.String lastDirectory
the last directory used to open a file

FullRedraw

public static final int FullRedraw
how should drawing board redraw itself

PartialRedraw

public static final int PartialRedraw

Up

public static final int Up
for scrollbar adjustments

Down

public static final int Down

Left

public static final int Left

Right

public static final int Right

ZOOM_IN

public static final int ZOOM_IN
how to zoom

ZOOM_OUT

public static final int ZOOM_OUT

ZOOM_FULL

public static final int ZOOM_FULL

maxJobGap

public static final int maxJobGap
size of images

minJobGap

public static int minJobGap

borderGap

public static final int borderGap

zoomRatio

public static final int zoomRatio

defaultSecsToPixels

public final float defaultSecsToPixels

smallestZoom

public static final int[] smallestZoom
a couple of arrays to hold zoom settings the data represents lineHeight, boxWidth, boxHeight

smallZoom

public static final int[] smallZoom

bigZoom

public static final int[] bigZoom

biggestZoom

public static final int[] biggestZoom

LINE_HEIGHT

public static final int LINE_HEIGHT
the int indexes to refer to the values in the zoom arrays

BOX_WIDTH

public static final int BOX_WIDTH

BOX_HEIGHT

public static final int BOX_HEIGHT

splashImage

public static final java.lang.String splashImage
image file names

condorIcon

public static final java.lang.String condorIcon

drawFakeLittleHelpButton

public static final boolean drawFakeLittleHelpButton
whether to draw the fake little help button

incrementMarkerHeight

public static int incrementMarkerHeight
axes data

incrementMarkerWidth

public static int incrementMarkerWidth

doubleAxisLines

public static final boolean doubleAxisLines

programmer

public static final java.lang.String programmer
who is a trusted user
Constructor Detail

UlvShared

public UlvShared()
Method Detail

setShowEventFlags

public static void setShowEventFlags(boolean how)
turns off or on all showEventFlags

setShowEventFlags

public static void setShowEventFlags()
sets flags for showEventFlags using the DrawTheLegend checkboxes

setShowBothRunStates

public static void setShowBothRunStates(boolean state)
turn showBothRunStates on or off

setShowUnknownTransistions

public static void setShowUnknownTransistions(boolean state)
turn showUnknownTransistions on or off

setShowErrorEvents

public static void setShowErrorEvents(boolean state)
turn show showErrorEvents on or off

setShowCheckPointEvents

public static void setShowCheckPointEvents(boolean state)
turn showCheckPointEvents on or off

trustedUser

public static boolean trustedUser()

getAllCurrentLogFiles

public static java.util.Vector getAllCurrentLogFiles()
a method that uses 'condor_q -global -verbose' to show all current log files in the network

beep

public static void beep()
a beeping shortcut

errorMessage

public static void errorMessage(java.lang.String error)
this method writes all error messages in the package to an error file

makeCondorIcon

public static void makeCondorIcon(javax.swing.JFrame win)
this method attempts to add a Condor Icon to a frame

getHelpURL

public static java.net.URL getHelpURL(java.lang.Class clazz)
this method returns the url of the help file

simpleHelp

public static void simpleHelp()
this method displays simple help if the cool help for some reason doesn't work

getImage

public static java.awt.Image getImage(java.lang.String fileName,
                                      java.lang.Class clazz)
this method trys to find the requested image file, currently it just looks for the image file in the class directory after checking that it hasn't been passed the full path already if it can't find the image file, it returns null

getSampleLog

public static java.net.URL getSampleLog(java.lang.Class clazz)
a method which returns the file holding the sample log which can be viewed in the applet demo - null if it can't find it

setCurrentLogFile

public static void setCurrentLogFile(java.io.File f)
this method allows users to set the currentLogFile

getCurrentLogFilePath

public static java.lang.String getCurrentLogFilePath()
this method allows users to get the currentLogFile

getCurrentLogFile

public static java.lang.String getCurrentLogFile()
this method allows users to get the currentLogFile path or null

rememberFile

public static void rememberFile()
this method adds a file name to the list of previously opened file

appletSecurityWarning

public static void appletSecurityWarning()
this method warns users that they are attempting to do something in the applet that they are only allowed to do in the application

popupDebugger

public static void popupDebugger(java.lang.String foo)
this method pops up a window with a debug message passed

printStackTrace

public static void printStackTrace()
this method prints a stack trace - useful for debugging

loadPrefs

public static void loadPrefs()
this method looks for a configuration file and loads settings from it

savePrefs

public static void savePrefs()
                      throws java.io.IOException
this methods looks for a configuration file and saves settings to it