|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.OperationObservable | +--net.aerith.misao.pixy.ThumbnailImageCreater
The ThumbnailImageCreater
is a class to create the
thumbnail image objects or image files based on the specified list
of XML magnitude records.
Inner Class Summary | |
protected class |
ThumbnailImageCreater.FolderAndRecord
The FolderAndRecord is a set of the folder and the
magnitude record to create a thumbnail image. |
Field Summary | |
protected FileManager |
file_manager
The file manager. |
protected InformationDBManager |
info_manager
The information database manager. |
static int |
MAGNIFICATION_KEEP_ORIGINAL
The number of policy on the magnification which indicates to create the thumbnail image without magnification. |
static int |
MAGNIFICATION_SPECIFIED_RESOLUTION
The number of policy on the magnification which indicates to create the thumbnail image with the specified resolution. |
protected int |
policy_magnification
The policy on the magnification. |
protected int |
policy_position
The policy on the position. |
protected int |
policy_rotation
The policy on the rotation. |
static int |
POSITION_TARGET_AT_CENTER
The number of policy on the position which indicates to create the thumbnail image as the target star locates at the center, even if it is at the edge of the original image. |
protected double |
resolution
The resolution, the pixel size in arcsec. |
static int |
ROTATION_KEEP_ORIGINAL
The number of policy on the rotation which indicates to create the thumbnail image without rotation. |
static int |
ROTATION_NORTH_UP_AT_RIGHT_ANGLES
The number of policy on the rotation which indicates to create the thumbnail image as north is up by rotating at right angles. |
protected java.util.Vector |
thumbnail_list
The list of the folder and the magnitude record. |
protected Size |
thumbnail_size
The size of the thumbnail image. |
Fields inherited from class net.aerith.misao.util.OperationObservable |
observer_list |
Constructor Summary | |
ThumbnailImageCreater(FileManager file_manager)
Constructs a ThumbnailImageCreater . |
Method Summary | |
void |
addRecord(XmlMagRecord record)
Adds the magnitude record. |
void |
addRecord(XmlMagRecord record,
java.io.File folder)
Adds the set of the folder and magnitude record. |
void |
clean()
Cleans up the sets of the folder and magnitude record. |
MonoImage[] |
create()
Creates the thumbnail image objects of the previously added records. |
MonoImage[] |
create(XmlMagRecord[] records)
Creates the thumbnail image objects. |
java.io.File[] |
createFile()
Creates the thumbnail image files of the previously added records. |
java.io.File[] |
createFile(XmlMagRecord[] records,
java.io.File folder)
Creates the thumbnail image files. |
protected MonoImage |
createThumbnailImage(MonoImage image,
Position target_position,
XmlInformation info)
Creates the thumbnail image. |
void |
setDBManager(InformationDBManager info_manager)
Sets the information database manager. |
void |
setFileManager(FileManager file_manager)
Sets the file manager. |
void |
setMagnification(int policy)
Sets the policy on the magnification. |
void |
setPosition(int policy)
Sets the policy on the position. |
void |
setResolution(double pixel_size)
Sets the resolution, the pixel size in arcsec. |
void |
setRotation(int policy)
Sets the policy on the rotation. |
void |
setSize(Size size)
Sets the size of the thumbnail image. |
Methods inherited from class net.aerith.misao.util.OperationObservable |
addObserver,
deleteObserver,
notifyEnd,
notifyFailed,
notifyStart,
notifySucceeded,
notifyWarned |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.util.Vector thumbnail_list
protected Size thumbnail_size
protected int policy_position
protected int policy_magnification
protected int policy_rotation
protected double resolution
protected InformationDBManager info_manager
protected FileManager file_manager
public static final int POSITION_TARGET_AT_CENTER
public static final int MAGNIFICATION_KEEP_ORIGINAL
public static final int MAGNIFICATION_SPECIFIED_RESOLUTION
public static final int ROTATION_KEEP_ORIGINAL
public static final int ROTATION_NORTH_UP_AT_RIGHT_ANGLES
Constructor Detail |
public ThumbnailImageCreater(FileManager file_manager)
ThumbnailImageCreater
.file_manager
- the file manager.Method Detail |
public void setSize(Size size)
size
- the size of the thumbnail image.public void setPosition(int policy)
policy
- the number of policy on the position.public void setMagnification(int policy)
policy
- the number of policy on the magnification.public void setResolution(double pixel_size)
pixel_size
- the pixel size in arcsec.public void setRotation(int policy)
policy
- the number of policy on the rotation.public void addRecord(XmlMagRecord record)
record
- the magnitude record.public void addRecord(XmlMagRecord record, java.io.File folder)
record
- the magnitude record.folder
- the folder to create the thumbnail image.public void clean()
public void setDBManager(InformationDBManager info_manager)
info_manager
- the information database manager.public void setFileManager(FileManager file_manager)
file_manager
- the file manager.public MonoImage[] create(XmlMagRecord[] records)
records
- the array of XML magnitude records.public MonoImage[] create()
public java.io.File[] createFile(XmlMagRecord[] records, java.io.File folder)
records
- the array of XML magnitude records.folder
- the folder to create the files.public java.io.File[] createFile()
protected MonoImage createThumbnailImage(MonoImage image, Position target_position, XmlInformation info)
image
- the original image object.target_position
- the (x,y) position of the target.info
- the XML information document.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |