ccd
Class JCamera

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by jview.JExitFrame
                          extended by jview.JConfirmExitFrame
                              extended by jview.JBorderFrame
                                  extended by jview.JOpenFrame
                                      extended by jview.JFitsFrame
                                          extended by ccd.JCamera
All Implemented Interfaces:
CameraLabels, ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants, BorderLabels, Displayable, FitsFrameLabels, FitsLabels, PickListener, ClientObject, Initializable, LocalizedAware, LocalizedComposed, ImageOperation, Savable

public class JCamera
extends JFitsFrame
implements CameraLabels, ClientObject

A class that allows working with CcdDrivers, especially FechnerDrivers and have a graphical representation.

See Also:
Serialized Form

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.JFitsFrame
BIASACTION, COLORACTION, DARKACTION, FLATACTION, GAUSSACTION, HISTOGRAMACTION, HORIZONTALCUTACTION, INVERTACTION, KEY_BIASFITS, KEY_BINDNAME, KEY_COLORIZE, KEY_DARKFITS, KEY_FALSEPALETTE, KEY_FITSBINNING, KEY_FITSOFFSET, KEY_FLATTABLE, KEY_GAUSSFWHM, KEY_GAUSSMAXFWHM, KEY_GAUSSMAXTRUNC, KEY_GAUSSTRUNC, KEY_HEADERKEYS, KEY_INCLUDESTATUS, KEY_LOCALDIR, KEY_NEGATIVE, KEY_SCPCOMMAND, KEY_SCPTIMEOUT, KEY_SHOWGAUSS, KEY_SHOWTABLE, KEY_TELESCOPECHAR, KEY_TIMEDLOAD, KEY_TMPDIR, KEY_TMPFITS, NEXTXTENSIONACTION, PREVXTENSIONACTION, REDRAWACTION, RESETACTION, RESETPROPERTY, VERTICALCUTACTION, XTENSION
 
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 ccd.CameraLabels
KEY_CCDACCS, KEY_CCDITEMS, KEY_CCDMENU, KEY_CCDMNEMONIC, KEY_CCDREADERROR, KEY_CCDSETUPERROR, KEY_CCDTITLE, KEY_DRIVERERROR, KEY_DRIVERTITLE, KEY_EDITACCS, KEY_EDITITEMS, KEY_EDITMENU, KEY_EDITMNEMONIC, KEY_EXPOSURELABEL, KEY_EXPOSURELEFTTIP, KEY_EXPOSURETIP, KEY_FITSEMPTY, KEY_INCREMENTACC, KEY_INCREMENTITEM, KEY_INPUTTITLE, KEY_IOERRORTITLE, KEY_NEWDRIVER, KEY_NOEDIT, KEY_NUMBERINPUT, KEY_PLAYTIP, KEY_READERROR, KEY_RECORDACCS, KEY_RECORDITEMS, KEY_RECORDMENU, KEY_RECORDMNEMONIC, KEY_RECORDTIP, KEY_SLOWDISPLAY, KEY_STOPTIP, KEY_THREADSTATEERROR, KEY_THREADTITLE, KEY_WRITEERROR, KEY_XBINLABEL, KEY_XBINTIP, KEY_YBINLABEL, KEY_YBINTIP
 
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.JOpenFrame
createCheckBoxMenuItem, createLocalizedCheckBoxMenuItem, createLocalizedMenu, createLocalizedMenuItem, createLocalizedRadioButtonMenuItem, createMenu, createMenuItem, createRadioButtonMenuItem, exportCenter, getExportRepresentation, getHelpActions, getPrintRepresentation, getSaveFilter, populateMenu, printCenter, saveFile
 
Methods inherited from class jview.JBorderFrame
analyserListenTo, createButton, createCheckBox, createDataAnalysers, createFitters, createHelp, createLabel, createLocalizedButton, createLocalizedCheckBox, createLocalizedHelp, createLocalizedLabel, createLocalizedRadioButton, createRadioButton, createStatus, getAboutAction, getActiveFit, getBiggerStrut, getComposedProperties, getDataAnalysers, getFitterButtonGroup, getFitterComboBox, getIcon, getLesserStrut, getModelFittings, getStatusField, hasFired, printAlignment, setAlignment, setFired
 
Methods inherited from class jview.JConfirmExitFrame
disposeAndExit, disposeImmediately
 
Methods inherited from class jview.JExitFrame
setVisible
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
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.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
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

PROPERTIESACTION

public static final String PROPERTIESACTION
The action-event command for editing my properties.

See Also:
Constant Field Values

NEWPROFILEACTION

public static final String NEWPROFILEACTION
The action-event command for generating a new profile.

See Also:
Constant Field Values

EDITPROFILEACTION

public static final String EDITPROFILEACTION
The action-event command for editing a profile.

See Also:
Constant Field Values

LOADPROFILEACTION

public static final String LOADPROFILEACTION
The action-event command for loading a new profile.

See Also:
Constant Field Values

SAVEPROFILEACTION

public static final String SAVEPROFILEACTION
The action-event command for saving a profile.

See Also:
Constant Field Values

IMAGENUMBERACTION

public static final String IMAGENUMBERACTION
The action-event command for setting the number of images to take.

See Also:
Constant Field Values

FITSSAVEACTION

public static final String FITSSAVEACTION
The action-event command for sving the fits file.

See Also:
Constant Field Values

EXTRAACTION

public static final String EXTRAACTION
The action-event command for special CCD commands.

See Also:
Constant Field Values

KEY_DRIVERCLASSES

public static final String KEY_DRIVERCLASSES
The key to the known camera driver classes

See Also:
Constant Field Values

KEY_EXTRAMETHODS

public static final String KEY_EXTRAMETHODS
If the current active driver supports extra methods.

See Also:
Constant Field Values

KEY_PROFILE

public static final String KEY_PROFILE
The key to the CCD camera properties.

See Also:
Constant Field Values

KEY_EDITACTIONS

public static final String KEY_EDITACTIONS
The edit menu items action commands.

See Also:
Constant Field Values

KEY_CCDACTIONS

public static final String KEY_CCDACTIONS
The CCD menu items action commands.

See Also:
Constant Field Values

KEY_RECORDACTIONS

public static final String KEY_RECORDACTIONS
The record menu items action commands.

See Also:
Constant Field Values

KEY_RETRIEVEALWAYS

public static final String KEY_RETRIEVEALWAYS
If true, we retrieve and display the fits before proceeding.

See Also:
Constant Field Values

KEY_EXPOSURETIME

public static final String KEY_EXPOSURETIME
The exposure time in ms stored.

See Also:
Constant Field Values

KEY_MAXEXPOSURE

public static final String KEY_MAXEXPOSURE
The maximum exposure time in ms.

See Also:
Constant Field Values

KEY_EXPOSURESTEP

public static final String KEY_EXPOSURESTEP
The stepping in the exposure time spinner.

See Also:
Constant Field Values

KEY_MAXBINNING

public static final String KEY_MAXBINNING
The maximum binning allowed.

See Also:
Constant Field Values

KEY_TOPINSET

public static final String KEY_TOPINSET
The forced inset for the top bar.

See Also:
Constant Field Values

MAXSIZE

private static final int MAXSIZE
A default maximum size.

See Also:
Constant Field Values

FALLBACK

private static final Map FALLBACK
A fall-back solution for the profile. Mimics a fechner driver.


WAITING

private static final int WAITING
The waiting state of the display thread.

See Also:
Constant Field Values

RETRIEVING

private static final int RETRIEVING
The retrieval state of the display thread.

See Also:
Constant Field Values

DISPLAYING

private static final int DISPLAYING
The image-updating state of the display thread.

See Also:
Constant Field Values

DEFRESOURCEBUNDLES

private static final String DEFRESOURCEBUNDLES
The resource bundles for localized labels and text.

See Also:
Constant Field Values

DEFDRIVERCLASSES

private static final String DEFDRIVERCLASSES
A coma-separated list of known driver classes.

See Also:
Constant Field Values

DEFPROFILE

private static final String DEFPROFILE
The default CCD driver resource.

See Also:
Constant Field Values

DEFRETRIEVEALWAYS

private static final boolean DEFRETRIEVEALWAYS
Default retrieve-and-wait state.

See Also:
Constant Field Values

DEFEXPOSURETIME

private static final double DEFEXPOSURETIME
The default exposure time.

See Also:
Constant Field Values

DEFMAXEXPOSURE

private static final double DEFMAXEXPOSURE
The default maximum exposure time.

See Also:
Constant Field Values

DEFEXPOSURESTEP

private static final double DEFEXPOSURESTEP
The default stepping in the exposure time.

See Also:
Constant Field Values

DEFMAXBINNING

private static final int DEFMAXBINNING
The default maximum binning allowed.

See Also:
Constant Field Values

DEFTOPINSET

private static final int DEFTOPINSET
The default maximum binning allowed.

See Also:
Constant Field Values

DEFWORKBACKGROUND

private static final boolean DEFWORKBACKGROUND
The default maximum binning allowed.

See Also:
Constant Field Values

DEFFILEACTIONS

private static final String DEFFILEACTIONS
The action commands used for identfiying file menu actions.

See Also:
Constant Field Values

DEFEDITACTIONS

private static final String DEFEDITACTIONS
The action commands used for edit menus items.

See Also:
Constant Field Values

DEFCCDACTIONS

private static final String DEFCCDACTIONS
The action commands used for ccd menus items.

See Also:
Constant Field Values

DEFRECORDACTIONS

private static final String DEFRECORDACTIONS
The action commands used for record menus items.

See Also:
Constant Field Values

DEFCONNECTONINIT

private static final boolean DEFCONNECTONINIT
If true, the connection is established on start-up.

See Also:
Constant Field Values

DEFICONCONNECT

private static final String DEFICONCONNECT
The default connect resource.

See Also:
Constant Field Values

DEFICONDISCONNECT

private static final String DEFICONDISCONNECT
The default connect resource.

See Also:
Constant Field Values

xorigin

private int xorigin
Record origin changes.


yorigin

private int yorigin
Record origin changes.


xmax

private int xmax
Current maximum size of ccd in x-direction.


ymax

private int ymax
Current maximum size of ccd in y-direction.


ccd

private CcdDriver ccd
The ccd driver for retrieving fits files.


driverlist

private List driverlist
A list of known class names implementing CcdDriver.


extras

private JComboBox extras
A list of extra method names the current driver supports.


lastfits

private File lastfits
The last fits-save path.


lastprofile

private File lastprofile
The last profile path.


exptime

private JSpinner exptime
The spinner harbouring the exposure time in sec. Queried on expose.


xbin

private JSpinner xbin
The spinner harbouring x binning. Queried on expose.


ybin

private JSpinner ybin
The spinner harbouring y binning. Queried on expose.


single

private JButton single
The single exposure button.


movie

private JButton movie
The continuous exposure button.


stop

private JButton stop
The stop-exposures button.


expleft

private JLabel expleft
The label displaying the number of exposures left if cont. rec.


expformat

private NumberFormat expformat
The formatter for the exposure number to be displayed.


imagenumber

private int imagenumber
The number of images to record, zero means unlimited run.


doexpose

private JCamera.ExposeThread doexpose
A thread doing the exposures. Waits for server method exit.


dodisplay

private JCamera.DisplayThread dodisplay
A thread waiting for notification of a finished exposure.


connected

private JToggleButton connected
The label changing its icon according to the connection status.

Constructor Detail

JCamera

public JCamera(LocalizedSupplying prop)
Constructs a new camera from properties. The initialization is done in the init() section

Method Detail

setComposedProperties

public void setComposedProperties(LocalizedSupplying prop)
Sets a LocalizedSupplying object as a composite of the canvas. Defaults the necessary parameter.

Specified by:
setComposedProperties in interface LocalizedAware
Overrides:
setComposedProperties in class JFitsFrame

init

public void init()
Initializes the jcamera. This method calls the super class init after its necessary setup has been generated. This includes constructing the fits canvas and the camera driver.

Specified by:
init in interface Initializable
Overrides:
init in class JFitsFrame

createFitsCanvas

protected JFitsCanvas createFitsCanvas(ResourceSupplying info)
A ccd camera normally does not zoom, but select a new frame.

Overrides:
createFitsCanvas in class JFitsFrame

actionPerformed

public void actionPerformed(ActionEvent ae)
Action events are issued by the scaling list and the buttons.

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class JFitsFrame

getMenus

protected List<JMenu> getMenus()
Adds the camera menu items to the menu list.

Overrides:
getMenus in class JOpenFrame

getBottomItems

protected List getBottomItems()
Returns the list of bottom items, which is the status panel plus the connect button.

Overrides:
getBottomItems in class JFitsFrame

getTopItems

protected List<Object> getTopItems()
Returns the list of items to add to the north box.

Overrides:
getTopItems in class JBorderFrame

connect

public boolean connect()
Connects to the camera. If connection fails, the parent component shows an information message.

Specified by:
connect in interface ClientObject

disconnect

public boolean disconnect()
Disconnects from the camera. If disconnection fails, the parent component shows an information message.

Specified by:
disconnect in interface ClientObject

openFile

protected boolean openFile(File fitsfile)
Opens a pre-recorded file for display.

Overrides:
openFile in class JFitsFrame

expose

private void expose(int count)
Does the specified number of exposures. We check if we are in a state that allows recording. If so, we first start the display thread which immediately goes into wait state and waits for the exposure thread to be notified.


stop

private void stop()
Called only if exposures are underway. We cannot stop the CCD from reading, but we can cancel the read-out thread and the display thread. Note that the last ccd frame will be retrieved and stored on the server side, but will not be displayed.


editProfile

private Map editProfile(Map prop)
Edits a profile using JPropertyEdit.


newProfile

private void newProfile(Map<String,String> ccddriver)
Creates a new camera driver.


launch

private static JCamera launch(Map<String,String> inf,
                              Map<String,String> ccd)
Launches the JCamera GUI from the given properties.


main

public static void main(String[] arg)
The command line argument are the properties of the frame.