net.aerith.misao.pixy
Class Resource

java.lang.Object
  |
  +--net.aerith.misao.pixy.Resource

public class Resource
extends java.lang.Object

The Resource consists of string messages and HTML messages for the PIXY system.


Field Summary
private static javax.swing.ImageIcon batch_pixy_icon
          The icon to run the batch examination.
private static XmlConfiguration configuration
          The configuration of the system.
private static javax.swing.ImageIcon multiple_pixy_icon
          The icon to run the multiple image examination.
private static javax.swing.ImageIcon pixy2_icon
          The image icon of the PIXY System 2.
private static javax.swing.ImageIcon review_icon
          The icon to run the review.
private static javax.swing.ImageIcon single_pixy_icon
          The icon to run the image examination.
private static javax.swing.ImageIcon status_error_icon
          The image icon of the error status.
private static javax.swing.ImageIcon status_midway_icon
          The image icon of the midway status.
private static javax.swing.ImageIcon status_success_icon
          The image icon of the success status.
private static javax.swing.ImageIcon tutorial_pixy_icon
          The icon to run the image examination in the tutorial mode.
 
Constructor Summary
Resource()
           
 
Method Summary
(package private) static void ()
          Initializes the system configuration.
static javax.swing.ImageIcon getBatchPixyIcon()
          Gets the icon to run the batch examination.
static java.lang.String getDefaultCatalogPath(java.lang.String catalog_name)
          Gets the default catalog path.
static java.lang.String getDefaultFitsOrder()
          Gets the default FITS data order.
static java.lang.String getHelpHtmlMessageAfterImageOpened()
          Returns the help message of the PIXY system when the step is after the image is opened.
static java.lang.String getHelpHtmlMessageAfterMatching(boolean failed_flag)
          Returns the help message of the PIXY system when the step is after matching between detected stars and catalog data.
static java.lang.String getHelpHtmlMessageAfterPairing()
          Returns the help message of the PIXY system when the step is after making pairs between detected stars and catalog data.
static java.lang.String getHelpHtmlMessageAfterStarsDetected()
          Returns the help message of the PIXY system when the step is after stars are detected from the image.
static java.lang.String getHelpHtmlMessageAtBeginning()
          Returns the help message of the PIXY system when the step is at the beginning.
static javax.swing.ImageIcon getMultiplePixyIcon()
          Gets the icon to run the multiple image examination.
static java.lang.String getReviewHelpHtmlMessageAtBeginning()
          Returns the help message of the PIXY system to review at the beginning.
static java.lang.String getReviewHelpHtmlMessageWhenImageNotFound(java.lang.String path)
          Returns the help message of the PIXY system to review when the image is not found.
static javax.swing.ImageIcon getReviewIcon()
          Gets the icon to run the review.
static java.lang.String getSampleImageChipCode()
          Gets the CCD chip of the sample.
static Coor getSampleImageCoor()
          Gets the R.A.
static JulianDay getSampleImageDate()
          Gets the date and time of the sample image.
static double getSampleImageExposureInSecond()
          Gets the exposure time of the sample image in second.
static java.lang.String getSampleImageFilename()
          Gets the filename of the sample image.
static double getSampleImageHorizontalFieldOfView()
          Gets the horizontal field of view of the sample image in degree.
static java.lang.String getSampleImageMagSystemCode()
          Gets the magnitude system code of the sample.
static double getSampleImageVerticalFieldOfView()
          Gets the vertical field of view of the sample image in degree.
static java.lang.String getSampleStarCatalogFilename()
          Gets the filename of the sample star catalog.
static java.lang.String getSecondHelpHtmlMessageAfterPairing()
          Returns the help message of the PIXY system when the step is after making pairs between detected stars and catalog data.
static javax.swing.ImageIcon getSinglePixyIcon()
          Gets the icon to run the image examination.
static java.lang.String getSpecialThanksHtmlMessage()
          Returns the HTML string of special thanks messages.
static javax.swing.ImageIcon getStatusErrorIcon()
          Gets the icon of the error status.
static javax.swing.ImageIcon getStatusMidwayIcon()
          Gets the icon of the midway status.
static javax.swing.ImageIcon getStatusSuccessIcon()
          Gets the icon of the success status.
static javax.swing.ImageIcon getSystemIcon()
          Gets the image icon of the PIXY System 2.
static int getThreadPriority()
          Gets the priority of a thread.
static java.lang.String getTutorialHtmlMessageAfterPairing()
          Returns the tutorial message of the PIXY system when the step is after making pairs between detected stars and catalog data.
static java.lang.String getTutorialHtmlMessageAfterStarsDetected()
          Returns the tutorial message of the PIXY system when the step is after stars are detected from the image.
static java.lang.String getTutorialHtmlMessageAtBeginning()
          Returns the tutorial message of the PIXY system when the step is at the beginning.
static javax.swing.ImageIcon getTutorialPixyIcon()
          Gets the icon to run the image examination in the tutorial mode.
static java.lang.String getVersion()
          Returns the version.
static java.lang.String[] getVersionAndCopyright()
          Returns the version and copyright message.
static void initialize()
          Initializes the system configuration.
private static void readConfiguration()
          Reads the configuration of the system.
private static void saveConfiguration()
          Saves the configuration of the system.
static void setDefaultCatalogPath(java.lang.String catalog_name, java.lang.String path)
          Sets the default catalog path.
static void setDefaultFitsOrder(java.lang.String order)
          Sets the default FITS data order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

configuration

private static XmlConfiguration configuration
The configuration of the system.

pixy2_icon

private static final javax.swing.ImageIcon pixy2_icon
The image icon of the PIXY System 2.

single_pixy_icon

private static final javax.swing.ImageIcon single_pixy_icon
The icon to run the image examination.

tutorial_pixy_icon

private static final javax.swing.ImageIcon tutorial_pixy_icon
The icon to run the image examination in the tutorial mode.

review_icon

private static final javax.swing.ImageIcon review_icon
The icon to run the review.

multiple_pixy_icon

private static final javax.swing.ImageIcon multiple_pixy_icon
The icon to run the multiple image examination.

batch_pixy_icon

private static final javax.swing.ImageIcon batch_pixy_icon
The icon to run the batch examination.

status_success_icon

private static final javax.swing.ImageIcon status_success_icon
The image icon of the success status.

status_midway_icon

private static final javax.swing.ImageIcon status_midway_icon
The image icon of the midway status.

status_error_icon

private static final javax.swing.ImageIcon status_error_icon
The image icon of the error status.
Constructor Detail

Resource

public Resource()
Method Detail

initialize

public static void initialize()
Initializes the system configuration.

getSystemIcon

public static javax.swing.ImageIcon getSystemIcon()
Gets the image icon of the PIXY System 2. return the image icon of the PIXY System 2.

getSinglePixyIcon

public static javax.swing.ImageIcon getSinglePixyIcon()
Gets the icon to run the image examination. return the icon to run the image examination.

getTutorialPixyIcon

public static javax.swing.ImageIcon getTutorialPixyIcon()
Gets the icon to run the image examination in the tutorial mode. return the icon to run the image examination in the tutorial mode.

getReviewIcon

public static javax.swing.ImageIcon getReviewIcon()
Gets the icon to run the review. return the icon to run the review.

getMultiplePixyIcon

public static javax.swing.ImageIcon getMultiplePixyIcon()
Gets the icon to run the multiple image examination. return the icon to run the multiple image examination.

getBatchPixyIcon

public static javax.swing.ImageIcon getBatchPixyIcon()
Gets the icon to run the batch examination. return the icon to run the batch examination.

getVersion

public static java.lang.String getVersion()
Returns the version.
Returns:
the version.

getStatusSuccessIcon

public static javax.swing.ImageIcon getStatusSuccessIcon()
Gets the icon of the success status.
Returns:
the icon of the success status.

getStatusMidwayIcon

public static javax.swing.ImageIcon getStatusMidwayIcon()
Gets the icon of the midway status.
Returns:
the icon of the midway status.

getStatusErrorIcon

public static javax.swing.ImageIcon getStatusErrorIcon()
Gets the icon of the error status.
Returns:
the icon of the error status.

getThreadPriority

public static int getThreadPriority()
Gets the priority of a thread.
Returns:
the priority of a thread.

readConfiguration

private static void readConfiguration()
Reads the configuration of the system. This method must be invoked only once when the system launches.

saveConfiguration

private static void saveConfiguration()
Saves the configuration of the system.

setDefaultCatalogPath

public static void setDefaultCatalogPath(java.lang.String catalog_name,
                                         java.lang.String path)
Sets the default catalog path. Several paths can be described separating with path separator.
Parameters:
catalog_name - the catalog name.
path - the default path.

getDefaultCatalogPath

public static java.lang.String getDefaultCatalogPath(java.lang.String catalog_name)
Gets the default catalog path. Several paths can be described separating with path separator.
Parameters:
catalog_name - the catalog name.
Returns:
the default catalog path of the specified catalog.

setDefaultFitsOrder

public static void setDefaultFitsOrder(java.lang.String order)
Sets the default FITS data order.
Parameters:
order - the default FITS data order.

getDefaultFitsOrder

public static java.lang.String getDefaultFitsOrder()
Gets the default FITS data order.
Returns:
the default FITS data order.

getVersionAndCopyright

public static java.lang.String[] getVersionAndCopyright()
Returns the version and copyright message.
Returns:
the version and copyright message.

getSpecialThanksHtmlMessage

public static java.lang.String getSpecialThanksHtmlMessage()
Returns the HTML string of special thanks messages.
Returns:
the HTML string of special thanks messages.

getSampleImageFilename

public static final java.lang.String getSampleImageFilename()
Gets the filename of the sample image.
Returns:
the filename of the sample image.

getSampleImageCoor

public static final Coor getSampleImageCoor()
Gets the R.A. and Decl. of the center of the sample image.
Returns:
the R.A. and Decl. of the center of the sample image.

getSampleImageDate

public static final JulianDay getSampleImageDate()
Gets the date and time of the sample image.
Returns:
the date and time of the sample image.

getSampleImageExposureInSecond

public static final double getSampleImageExposureInSecond()
Gets the exposure time of the sample image in second.
Returns:
the exposure time of the sample image in second.

getSampleImageHorizontalFieldOfView

public static final double getSampleImageHorizontalFieldOfView()
Gets the horizontal field of view of the sample image in degree.
Returns:
the horizontal field of view of the sample image in degree.

getSampleImageVerticalFieldOfView

public static final double getSampleImageVerticalFieldOfView()
Gets the vertical field of view of the sample image in degree.
Returns:
the vertical field of view of the sample image in degree.

getSampleStarCatalogFilename

public static final java.lang.String getSampleStarCatalogFilename()
Gets the filename of the sample star catalog.
Returns:
the filename of the sample star catalog.

getSampleImageMagSystemCode

public static final java.lang.String getSampleImageMagSystemCode()
Gets the magnitude system code of the sample.
Returns:
the magnitude system code of the sample.

getSampleImageChipCode

public static final java.lang.String getSampleImageChipCode()
Gets the CCD chip of the sample.
Returns:
the CCD chip of the sample.

getHelpHtmlMessageAtBeginning

public static java.lang.String getHelpHtmlMessageAtBeginning()
Returns the help message of the PIXY system when the step is at the beginning.
Returns:
the HTML string of help message.

getTutorialHtmlMessageAtBeginning

public static java.lang.String getTutorialHtmlMessageAtBeginning()
Returns the tutorial message of the PIXY system when the step is at the beginning.
Returns:
the HTML string of tutorial message.

getHelpHtmlMessageAfterImageOpened

public static java.lang.String getHelpHtmlMessageAfterImageOpened()
Returns the help message of the PIXY system when the step is after the image is opened.
Returns:
the HTML string of help message.

getHelpHtmlMessageAfterStarsDetected

public static java.lang.String getHelpHtmlMessageAfterStarsDetected()
Returns the help message of the PIXY system when the step is after stars are detected from the image.
Returns:
the HTML string of help message.

getTutorialHtmlMessageAfterStarsDetected

public static java.lang.String getTutorialHtmlMessageAfterStarsDetected()
Returns the tutorial message of the PIXY system when the step is after stars are detected from the image.
Returns:
the HTML string of tutorial message.

getHelpHtmlMessageAfterMatching

public static java.lang.String getHelpHtmlMessageAfterMatching(boolean failed_flag)
Returns the help message of the PIXY system when the step is after matching between detected stars and catalog data.
Parameters:
failed_flag - true if matching was failed.
Returns:
the HTML string of help message.

getHelpHtmlMessageAfterPairing

public static java.lang.String getHelpHtmlMessageAfterPairing()
Returns the help message of the PIXY system when the step is after making pairs between detected stars and catalog data.
Returns:
the HTML string of help message.

getSecondHelpHtmlMessageAfterPairing

public static java.lang.String getSecondHelpHtmlMessageAfterPairing()
Returns the help message of the PIXY system when the step is after making pairs between detected stars and catalog data.
Returns:
the HTML string of help message.

getTutorialHtmlMessageAfterPairing

public static java.lang.String getTutorialHtmlMessageAfterPairing()
Returns the tutorial message of the PIXY system when the step is after making pairs between detected stars and catalog data.
Returns:
the HTML string of tutorial message.

getReviewHelpHtmlMessageAtBeginning

public static java.lang.String getReviewHelpHtmlMessageAtBeginning()
Returns the help message of the PIXY system to review at the beginning.
Returns:
the HTML string of help message.

getReviewHelpHtmlMessageWhenImageNotFound

public static java.lang.String getReviewHelpHtmlMessageWhenImageNotFound(java.lang.String path)
Returns the help message of the PIXY system to review when the image is not found.
Parameters:
path - the path of the image.
Returns:
the HTML string of help message.

static void ()
Initializes the system configuration.