|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jview.JExitFrame
jview.JConfirmExitFrame
jview.JBorderFrame
jview.JOpenFrame
jview.JFitsFrame
ccd.JCamera
public class JCamera
A class that allows working with CcdDrivers, especially
FechnerDrivers and have a graphical representation.
| Nested Class Summary | |
|---|---|
static class |
JCamera.Deployment
Deploys from a jar archive. |
protected class |
JCamera.DisplayThread
The thread waiting on the read-out thread for notification. |
protected class |
JCamera.ExposeThread
The exposure thread repeadetly calls the ccd's CcdDriver.expose()
method until stopped or until the predefined number of exposures is
reached. |
| Nested classes/interfaces inherited from class jview.JOpenFrame |
|---|
JOpenFrame.Show |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private CcdDriver |
ccd
The ccd driver for retrieving fits files. |
private JToggleButton |
connected
The label changing its icon according to the connection status. |
private static String |
DEFCCDACTIONS
The action commands used for ccd menus items. |
private static boolean |
DEFCONNECTONINIT
If true, the connection is established on start-up. |
private static String |
DEFDRIVERCLASSES
A coma-separated list of known driver classes. |
private static String |
DEFEDITACTIONS
The action commands used for edit menus items. |
private static double |
DEFEXPOSURESTEP
The default stepping in the exposure time. |
private static double |
DEFEXPOSURETIME
The default exposure time. |
private static String |
DEFFILEACTIONS
The action commands used for identfiying file menu actions. |
private static String |
DEFICONCONNECT
The default connect resource. |
private static String |
DEFICONDISCONNECT
The default connect resource. |
private static int |
DEFMAXBINNING
The default maximum binning allowed. |
private static double |
DEFMAXEXPOSURE
The default maximum exposure time. |
private static String |
DEFPROFILE
The default CCD driver resource. |
private static String |
DEFRECORDACTIONS
The action commands used for record menus items. |
private static String |
DEFRESOURCEBUNDLES
The resource bundles for localized labels and text. |
private static boolean |
DEFRETRIEVEALWAYS
Default retrieve-and-wait state. |
private static int |
DEFTOPINSET
The default maximum binning allowed. |
private static boolean |
DEFWORKBACKGROUND
The default maximum binning allowed. |
private static int |
DISPLAYING
The image-updating state of the display thread. |
private JCamera.DisplayThread |
dodisplay
A thread waiting for notification of a finished exposure. |
private JCamera.ExposeThread |
doexpose
A thread doing the exposures. |
private List |
driverlist
A list of known class names implementing CcdDriver. |
static String |
EDITPROFILEACTION
The action-event command for editing a profile. |
private NumberFormat |
expformat
The formatter for the exposure number to be displayed. |
private JLabel |
expleft
The label displaying the number of exposures left if cont. |
private JSpinner |
exptime
The spinner harbouring the exposure time in sec. |
static String |
EXTRAACTION
The action-event command for special CCD commands. |
private JComboBox |
extras
A list of extra method names the current driver supports. |
private static Map |
FALLBACK
A fall-back solution for the profile. |
static String |
FITSSAVEACTION
The action-event command for sving the fits file. |
private int |
imagenumber
The number of images to record, zero means unlimited run. |
static String |
IMAGENUMBERACTION
The action-event command for setting the number of images to take. |
static String |
KEY_CCDACTIONS
The CCD menu items action commands. |
static String |
KEY_DRIVERCLASSES
The key to the known camera driver classes |
static String |
KEY_EDITACTIONS
The edit menu items action commands. |
static String |
KEY_EXPOSURESTEP
The stepping in the exposure time spinner. |
static String |
KEY_EXPOSURETIME
The exposure time in ms stored. |
static String |
KEY_EXTRAMETHODS
If the current active driver supports extra methods. |
static String |
KEY_MAXBINNING
The maximum binning allowed. |
static String |
KEY_MAXEXPOSURE
The maximum exposure time in ms. |
static String |
KEY_PROFILE
The key to the CCD camera properties. |
static String |
KEY_RECORDACTIONS
The record menu items action commands. |
static String |
KEY_RETRIEVEALWAYS
If true, we retrieve and display the fits before proceeding. |
static String |
KEY_TOPINSET
The forced inset for the top bar. |
private File |
lastfits
The last fits-save path. |
private File |
lastprofile
The last profile path. |
static String |
LOADPROFILEACTION
The action-event command for loading a new profile. |
private static int |
MAXSIZE
A default maximum size. |
private JButton |
movie
The continuous exposure button. |
static String |
NEWPROFILEACTION
The action-event command for generating a new profile. |
static String |
PROPERTIESACTION
The action-event command for editing my properties. |
private static int |
RETRIEVING
The retrieval state of the display thread. |
static String |
SAVEPROFILEACTION
The action-event command for saving a profile. |
private JButton |
single
The single exposure button. |
private JButton |
stop
The stop-exposures button. |
private static int |
WAITING
The waiting state of the display thread. |
private JSpinner |
xbin
The spinner harbouring x binning. |
private int |
xmax
Current maximum size of ccd in x-direction. |
private int |
xorigin
Record origin changes. |
private JSpinner |
ybin
The spinner harbouring y binning. |
private int |
ymax
Current maximum size of ccd in y-direction. |
private int |
yorigin
Record origin changes. |
| Fields inherited from class jview.JOpenFrame |
|---|
EMPTYACTION, EXITACTION, EXPORTACTION, KEY_FILEACTIONS, KEY_FILEHOME, OPENACTION, PRINTACTION, SAVEACTION |
| Fields inherited from class jview.JBorderFrame |
|---|
DATACLEANSE, KEY_ABOUTURL, KEY_ACTIONCLASS, KEY_AIPLOGO, KEY_BIGGERSTRUT, KEY_DATAANALYSER, KEY_EASTALIGNMENT, KEY_FITTERS, KEY_FITTERTIPS, KEY_HELPSIZE, KEY_LESSERSTRUT, KEY_NOLOGO, KEY_NORTHALIGNMENT, KEY_SOUTHALIGNMENT, KEY_WESTALIGNMENT, MODELFITTER |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface jview.FitsFrameLabels |
|---|
KEY_BIASFRAME, KEY_BIASFRAMETIP, KEY_DARKFRAME, KEY_DARKFRAMETIP, KEY_FITSERROR, KEY_FITSTITLE, KEY_FLATFRAME, KEY_FLATFRAMETIP, KEY_HISTOGRAM, KEY_HISTOGRAMTIP, KEY_HORIZONTALCUT, KEY_HORIZONTALCUTTIP, KEY_NEXTFRAME, KEY_NEXTFRAMETIP, KEY_PREVFRAME, KEY_PREVFRAMETIP, KEY_VERTICALCUT, KEY_VERTICALCUTTIP, KEY_VIEWPORTTIP |
| Fields inherited from interface jview.FitsLabels |
|---|
KEY_COLORLABEL, KEY_COLORTIP, KEY_GAUSSLABEL, KEY_GAUSSTIP, KEY_INVERTLABEL, KEY_INVERTTIP, KEY_KEEPTIP, KEY_REDRAWLABEL, KEY_REDRAWTIP, KEY_RESETLABEL, KEY_RESETTIP, KEY_SCALELABEL, KEY_SCALETIP |
| Fields inherited from interface jview.BorderLabels |
|---|
KEY_ABOUT, KEY_ABOUTACC, KEY_FILEACCS, KEY_FILEITEMS, KEY_FILEMENU, KEY_FILEMNEMONIC, KEY_HELPMENU, KEY_HELPMNEMONIC, KEY_HELPTITLE, KEY_NOHELP, KEY_NOURLACCESS, KEY_TITLE |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JCamera(LocalizedSupplying prop)
Constructs a new camera from properties. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Action events are issued by the scaling list and the buttons. |
boolean |
connect()
Connects to the camera. |
protected JFitsCanvas |
createFitsCanvas(ResourceSupplying info)
A ccd camera normally does not zoom, but select a new frame. |
boolean |
disconnect()
Disconnects from the camera. |
private Map |
editProfile(Map prop)
Edits a profile using JPropertyEdit. |
private void |
expose(int count)
Does the specified number of exposures. |
protected List |
getBottomItems()
Returns the list of bottom items, which is the status panel plus the connect button. |
protected List<JMenu> |
getMenus()
Adds the camera menu items to the menu list. |
protected List<Object> |
getTopItems()
Returns the list of items to add to the north box. |
void |
init()
Initializes the jcamera. |
private static JCamera |
launch(Map<String,String> inf,
Map<String,String> ccd)
Launches the JCamera GUI from the given properties. |
static void |
main(String[] arg)
The command line argument are the properties of the frame. |
private void |
newProfile(Map<String,String> ccddriver)
Creates a new camera driver. |
protected boolean |
openFile(File fitsfile)
Opens a pre-recorded file for display. |
void |
setComposedProperties(LocalizedSupplying prop)
Sets a LocalizedSupplying object as a composite of the canvas. |
private void |
stop()
Called only if exposures are underway. |
| Methods inherited from class jview.JFitsFrame |
|---|
doFits, getDisplayMap, getFitsCanvas, getLeftItems, getOpenFilter, getRepresentation, getRightItems, getSaveBuffer, getSaveRepresentation, isColorized, isNegative, itemStateChanged, prepareToDisplay, processPick, reset, stateChanged, toggleColorize, toggleNegative |
| Methods inherited from class jview.JConfirmExitFrame |
|---|
disposeAndExit, disposeImmediately |
| Methods inherited from class jview.JExitFrame |
|---|
setVisible |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.LocalizedComposed |
|---|
getComposedProperties |
| Methods inherited from interface jview.Displayable |
|---|
getIcon |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String PROPERTIESACTION
public static final String NEWPROFILEACTION
public static final String EDITPROFILEACTION
public static final String LOADPROFILEACTION
public static final String SAVEPROFILEACTION
public static final String IMAGENUMBERACTION
public static final String FITSSAVEACTION
public static final String EXTRAACTION
public static final String KEY_DRIVERCLASSES
public static final String KEY_EXTRAMETHODS
public static final String KEY_PROFILE
public static final String KEY_EDITACTIONS
public static final String KEY_CCDACTIONS
public static final String KEY_RECORDACTIONS
public static final String KEY_RETRIEVEALWAYS
public static final String KEY_EXPOSURETIME
public static final String KEY_MAXEXPOSURE
public static final String KEY_EXPOSURESTEP
public static final String KEY_MAXBINNING
public static final String KEY_TOPINSET
private static final int MAXSIZE
private static final Map FALLBACK
private static final int WAITING
private static final int RETRIEVING
private static final int DISPLAYING
private static final String DEFRESOURCEBUNDLES
private static final String DEFDRIVERCLASSES
private static final String DEFPROFILE
private static final boolean DEFRETRIEVEALWAYS
private static final double DEFEXPOSURETIME
private static final double DEFMAXEXPOSURE
private static final double DEFEXPOSURESTEP
private static final int DEFMAXBINNING
private static final int DEFTOPINSET
private static final boolean DEFWORKBACKGROUND
private static final String DEFFILEACTIONS
private static final String DEFEDITACTIONS
private static final String DEFCCDACTIONS
private static final String DEFRECORDACTIONS
private static final boolean DEFCONNECTONINIT
private static final String DEFICONCONNECT
private static final String DEFICONDISCONNECT
private int xorigin
private int yorigin
private int xmax
private int ymax
private CcdDriver ccd
private List driverlist
CcdDriver.
private JComboBox extras
private File lastfits
private File lastprofile
private JSpinner exptime
private JSpinner xbin
private JSpinner ybin
private JButton single
private JButton movie
private JButton stop
private JLabel expleft
private NumberFormat expformat
private int imagenumber
private JCamera.ExposeThread doexpose
private JCamera.DisplayThread dodisplay
private JToggleButton connected
| Constructor Detail |
|---|
public JCamera(LocalizedSupplying prop)
init() section
| Method Detail |
|---|
public void setComposedProperties(LocalizedSupplying prop)
LocalizedSupplying object as a composite of the canvas.
Defaults the necessary parameter.
setComposedProperties in interface LocalizedAwaresetComposedProperties in class JFitsFramepublic void init()
init in interface Initializableinit in class JFitsFrameprotected JFitsCanvas createFitsCanvas(ResourceSupplying info)
createFitsCanvas in class JFitsFramepublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListeneractionPerformed in class JFitsFrameprotected List<JMenu> getMenus()
getMenus in class JOpenFrameprotected List getBottomItems()
getBottomItems in class JFitsFrameprotected List<Object> getTopItems()
getTopItems in class JBorderFramepublic boolean connect()
connect in interface ClientObjectpublic boolean disconnect()
disconnect in interface ClientObjectprotected boolean openFile(File fitsfile)
openFile in class JFitsFrameprivate void expose(int count)
private void stop()
private Map editProfile(Map prop)
JPropertyEdit.
private void newProfile(Map<String,String> ccddriver)
private static JCamera launch(Map<String,String> inf,
Map<String,String> ccd)
public static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||