|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jview.JNormalizedCanvas
jview.JViewportCanvas
jview.JFrameCanvas
jview.JFitsCanvas
ccd.JCameraCanvas
public class JCameraCanvas
A fits canvas takes a FITS object and displays the image as the background
image of a JViewportCanvas. Calls to JFitsCanvas.setScaling(int) allows
different scaling algorithms to be used for the displayed images, as defined
in the ScaleUtils class. It uses the
jar-package from IVOA
fits. It additinoally implements UserCoordinates to convert
normalized coordinates into true CCD-pixel values. This cannot be done as a
simple on-screen display, as we might have here scaling and windowing.
| Nested Class Summary | |
|---|---|
static class |
JCameraCanvas.CameraCursor
A camera cursor does not zoom the underlying component, but prepares for a new exposure with a normally lesser frame (the one selected) |
static class |
JCameraCanvas.Show
A test class. |
| Nested classes/interfaces inherited from class jview.JFrameCanvas |
|---|
JFrameCanvas.Test |
| Nested classes/interfaces inherited from class jview.JViewportCanvas |
|---|
JViewportCanvas.ViewportKey |
| Nested classes/interfaces inherited from class jview.JNormalizedCanvas |
|---|
JNormalizedCanvas.ShowImage |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 static String |
CAMERA
Camera drawings. |
private Rectangle |
chipsize
The chip size for restore in camera mode. |
private static DrawingInfo |
DEFCAMERACOLOR
Default generic color, if no foreground was set. |
private static String |
DEFCAMERACURSOR
Camera cursor name for ID. |
private static boolean |
DEFCAMERAMODE
Default camera modus. |
private static String |
DEFCURSORCLASSES
Default cursor classes, no special names. |
static String |
KEY_CAMERACOLOR
If true, selecting a viewport means preparing a new frame. |
static String |
KEY_CAMERAMODE
If true, selecting a viewport means preparing a new frame. |
private ShapeDraw |
nextview
If the user selected a viewport, we wait for the next fits to apply. |
private Rectangle |
nextwindow
If binning changes during viewport selection and exposure. |
| Fields inherited from class jview.JFitsCanvas |
|---|
ARRAY, KEY_FORMATWCS, KEY_HIGHMODE, KEY_KEEP, KEY_LOWKEEP, KEY_LOWMODE, KEY_MAXMAGNIFY, KEY_NEVERESTIMATESIZE, KEY_RGBGRAY, KEY_SCALING, KEY_SMARTKEEP, KEY_XTENSION, KEY_XTENSIONFLIP, WCS |
| Fields inherited from class jview.JViewportCanvas |
|---|
MAXVIEW, VIEWPORTIMAGEPROPERTY, VIEWPORTPROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JCameraCanvas(ResourceSupplying prop)
Constructs a new fits canvas from the properties. |
|
| Method Summary | |
|---|---|
void |
clearNextWindow()
Clears the next window. |
Rectangle |
getNextWindow()
Gets the next window on the CCD in pixels. |
void |
init()
Initializes the camera canvas by adding the camera drawing info. |
boolean |
isCameraMode()
Return true if the canvas is in camera-mode. |
boolean |
resetViewport()
Resets the viewport to show the entrie viewport. |
void |
setCameraMode(boolean mode)
Sets the canvas into camera or default mode. |
protected void |
setChipSize(Dimension chip)
Sets the chip size. |
protected void |
setChipSize(Rectangle chip)
Sets the chip size. |
void |
setComposedProperties(ResourceSupplying prop)
Defaults the scaling algorithm. |
void |
setFits(nom.tam.fits.Fits reload,
int xorigin,
int yorigin,
int xbinning,
int ybinning)
Sets the fits image. |
| Methods inherited from class jview.JFrameCanvas |
|---|
calculateActiveCanvas, calculateShapeTransform, getArea, isScreenInNormalized, paintObjects, prepareCanvas, wasReshaped |
| Methods inherited from class jview.JViewportCanvas |
|---|
addAttachedViewport, addZoom, getViewport, getViewportImage, isMaximalViewport, isNormalizedOnScreen, removeAttachedViewport, selectArea, selectViewport, setViewportImage, transferView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jview.NormalizedCoordinates |
|---|
getArea, getNormalized, getNormalizedRect, getScreen, getScreenRect, getViewport, isNormalizedOnScreen, isScreenInNormalized |
| Field Detail |
|---|
public static final String KEY_CAMERAMODE
public static final String KEY_CAMERACOLOR
private static final String DEFCURSORCLASSES
private static final boolean DEFCAMERAMODE
private static final DrawingInfo DEFCAMERACOLOR
private static final String CAMERA
private static final String DEFCAMERACURSOR
private ShapeDraw nextview
private Rectangle nextwindow
private Rectangle chipsize
| Constructor Detail |
|---|
public JCameraCanvas(ResourceSupplying prop)
| Method Detail |
|---|
public void setComposedProperties(ResourceSupplying prop)
setComposedProperties in interface ResourceAwaresetComposedProperties in class JFitsCanvaspublic void init()
init in interface Initializableinit in class JFitsCanvasprotected void setChipSize(Dimension chip)
protected void setChipSize(Rectangle chip)
public void setFits(nom.tam.fits.Fits reload,
int xorigin,
int yorigin,
int xbinning,
int ybinning)
setFits in class JFitsCanvaspublic Rectangle getNextWindow()
public void clearNextWindow()
public boolean isCameraMode()
public void setCameraMode(boolean mode)
public boolean resetViewport()
resetViewport in class JViewportCanvas
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||