HiRISE

HiRISE.HiPlan.Utilities
Class Clocks

java.lang.Object
  extended by HiRISE.HiPlan.Utilities.Clocks
All Implemented Interfaces:
ActionListener, EventListener

public class Clocks
extends Object
implements ActionListener


Field Summary
static String APPLICATION_GROUP
           
static String DEFAULT_CLOCK_FORMAT
           
static int FAILURE
          Exit status for an unsuccessful operation.
static String ID
          Class identification name with source code version and date.
static int SUCCESS
          Exit status for a successful operation.
 
Constructor Summary
Clocks()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addJLabel(String format, String timeZoneId)
           
 void addJLabels(Configuration configuration)
           
 void addJMenuItem(String format, String timeZoneId)
           
 void addJMenuItems(Configuration configuration)
           
 void appendClocks(JMenu menu)
           
 void appendClocks(JMenu menu, Configuration configuration)
           
static void main(String[] args)
          Invokes an instance of the clocks application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values

DEFAULT_CLOCK_FORMAT

public static final String DEFAULT_CLOCK_FORMAT
See Also:
Constant Field Values

APPLICATION_GROUP

public static final String APPLICATION_GROUP
See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
Exit status for a successful operation.

See Also:
Constant Field Values

FAILURE

public static final int FAILURE
Exit status for an unsuccessful operation.

See Also:
Constant Field Values
Constructor Detail

Clocks

public Clocks()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

addJMenuItems

public void addJMenuItems(Configuration configuration)

addJMenuItem

public void addJMenuItem(String format,
                         String timeZoneId)

addJLabels

public void addJLabels(Configuration configuration)

addJLabel

public void addJLabel(String format,
                      String timeZoneId)

appendClocks

public void appendClocks(JMenu menu)

appendClocks

public void appendClocks(JMenu menu,
                         Configuration configuration)

main

public static void main(String[] args)
Invokes an instance of the clocks application. The individual clocks, defined in the operator's configuration file, are written to the standard output stream with the current time. A cursory attempt is made to diagnose problems with the individual clock configurations.

Usage

Clocks [--configuration configuration_pathname]

Clocks --time-zones

Clocks --usage

Clocks --version

Options are not case-sensitive and may be reduced to their shortest unique form. One or two dashes may be used.

Options

--configuration configuration_pathname
Sets the pathname of the configuration file from which to configure the application. See Configuration_Helper.getConfiguration(String,String,String...) for details on the configuration pathname; if this option is not used, the config source argument is null.
--time-zones
Prints a list of all TimeZone IDs available. No clocks are printed.

Parameters:
args - the command-line arguments.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona