net.aerith.misao.toolkit.AgentDesktop
Class AgentHtmlImageGalleryOperation

java.lang.Object
  |
  +--net.aerith.misao.util.OperationObservable
        |
        +--net.aerith.misao.util.Operation
              |
              +--net.aerith.misao.util.MultiTaskOperation
                    |
                    +--net.aerith.misao.toolkit.HtmlImageGallery.HtmlImageGalleryOperation
                          |
                          +--net.aerith.misao.toolkit.AgentDesktop.AgentHtmlImageGalleryOperation

public class AgentHtmlImageGalleryOperation
extends HtmlImageGalleryOperation

The AgentHtmlImageGalleryOperation represents an operation to create HTML image gallery using the agent.


Field Summary
protected  Size image_size
          The image size.
protected  boolean ratate_north_up_at_right_angles
          True when to rotate north up at right angles.
protected  double resolution
          The resolution in arcsec/pixel.
protected  boolean unify_resolution
          True when to unify the resolution.
 
Fields inherited from class net.aerith.misao.toolkit.HtmlImageGallery.HtmlImageGalleryOperation
create_fits, creater, current_element_list, current_index, current_message_list, current_variability, db_manager, dialog, directory, dss_image, file_manager, gallery, hash_failed_images, past_image, warning_message_flag
 
Fields inherited from class net.aerith.misao.util.MultiTaskOperation
conductor
 
Fields inherited from class net.aerith.misao.util.Operation
monitor_set, stopped
 
Fields inherited from class net.aerith.misao.util.OperationObservable
observer_list
 
Constructor Summary
AgentHtmlImageGalleryOperation(MultiTaskConductor conductor, FileManager file_manager, GlobalDBManager db_manager, boolean fits, boolean past, boolean dss)
          Constructs an AgentHtmlImageGalleryOperation.
 
Method Summary
protected  Size getImageSize()
          Gets the image size.
protected  double getResolution()
          Gets the resolution in arcsec/pixel.
protected  boolean rotatesNorthUpAtRightAngles()
          Returns true when to rotate north up at right angles.
 void setDirectory(java.io.File directory)
          Sets the directory to create the HTML image gallery.
 void setImageSize(Size size)
          Sets the image size.
 void setResolution(double resolution)
          Sets the resolution in arcsec/pixel.
 void setResolutionUnified(boolean flag)
          Sets the flag to unify the resolution.
 void setRotatedNorthUpAtRightAngles(boolean flag)
          Sets the flag to rotate north up at right angles.
 int showSettingDialog()
          Shows the dialog to set parameters.
protected  boolean unifiesResolution()
          Returns true when to unify the resolution.
 
Methods inherited from class net.aerith.misao.toolkit.HtmlImageGallery.HtmlImageGalleryOperation
addCurrentElement, create2massAnchor, createDssAnchors, createImageGalleryElement, createSimbadAnchor, notifyEnd, notifyStart, operate, setWarningMessageEnabled
 
Methods inherited from class net.aerith.misao.util.MultiTaskOperation
operate, ready
 
Methods inherited from class net.aerith.misao.util.Operation
addMonitor, isStopped, perform, run, stop
 
Methods inherited from class net.aerith.misao.util.OperationObservable
addObserver, deleteObserver, notifyFailed, notifySucceeded, notifyWarned
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

image_size

protected Size image_size
The image size.

unify_resolution

protected boolean unify_resolution
True when to unify the resolution.

resolution

protected double resolution
The resolution in arcsec/pixel.

ratate_north_up_at_right_angles

protected boolean ratate_north_up_at_right_angles
True when to rotate north up at right angles.
Constructor Detail

AgentHtmlImageGalleryOperation

public AgentHtmlImageGalleryOperation(MultiTaskConductor conductor,
                                      FileManager file_manager,
                                      GlobalDBManager db_manager,
                                      boolean fits,
                                      boolean past,
                                      boolean dss)
Constructs an AgentHtmlImageGalleryOperation.
Parameters:
conductor - the conductor of multi task operation.
file_manager - the file manager.
db_manager - the database manager.
fits - true when to create FITS thumbnail images.
past - true when to add a past image from database.
dss - true when to add a DSS image.
Method Detail

showSettingDialog

public int showSettingDialog()
Shows the dialog to set parameters.
Overrides:
showSettingDialog in class HtmlImageGalleryOperation
Returns:
0 if OK button is pushed, or 2 if Cancel button is pushed.

setDirectory

public void setDirectory(java.io.File directory)
Sets the directory to create the HTML image gallery.
Parameters:
directory - the directory.

setImageSize

public void setImageSize(Size size)
Sets the image size.
Parameters:
size - the image size.

getImageSize

protected Size getImageSize()
Gets the image size.
Overrides:
getImageSize in class HtmlImageGalleryOperation
Returns:
the image size.

setResolutionUnified

public void setResolutionUnified(boolean flag)
Sets the flag to unify the resolution.
Parameters:
flag - true when to unify the resolution.

unifiesResolution

protected boolean unifiesResolution()
Returns true when to unify the resolution.
Overrides:
unifiesResolution in class HtmlImageGalleryOperation
Returns:
true when to unify the resolution.

setResolution

public void setResolution(double resolution)
Sets the resolution in arcsec/pixel.
Parameters:
resolution - the resolution in arcsec/pixel.

getResolution

protected double getResolution()
Gets the resolution in arcsec/pixel.
Overrides:
getResolution in class HtmlImageGalleryOperation
Returns:
the resolution in arcsec/pixel.

setRotatedNorthUpAtRightAngles

public void setRotatedNorthUpAtRightAngles(boolean flag)
Sets the flag to rotate north up at right angles.
Parameters:
flag - true when to rotate north up at right angles.

rotatesNorthUpAtRightAngles

protected boolean rotatesNorthUpAtRightAngles()
Returns true when to rotate north up at right angles.
Overrides:
rotatesNorthUpAtRightAngles in class HtmlImageGalleryOperation
Returns:
true when to rotate north up at right angles.