|
||||||||||
| 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
stella.jview.JGuiderCanvas
public class JGuiderCanvas
A guider canvas is used to display acquire or guiding fits frames. We support fits loading and allow overplotting of various status symbols. In the default properties, we set the normalized coordinates of the acquire guider center, aka the direct pinhole position, as well as the fiber position. The guider center is indicated with a big cross strecthing the entire drawbale area, while the fiber position is a circle with a diameter according to the apperture size on the sky. Then, we can add catalog stars, detected stars, spurious objects, stripes, mirrors and mirror ghosts with the appropriate methods. The shift that was applied and arrows denoting the alt/az directions may also be added. Zooming is not allowed, this panel is meant for display.
| Nested Class Summary | |
|---|---|
static class |
JGuiderCanvas.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 |
ALTAZ
The set name for the pinhole. |
private static String |
APERTURE
The set name for the pinhole. |
private static String |
CATALOG
The set name for the pinhole. |
private static Shape |
CATALOGSHAPE
The shape for drawing catalog entries. |
private static Point2D |
DEFALTAZCENTER
The key to the position of the alt/az indicator. |
private static double |
DEFALTSIZE
The key to the normalized altitude arrow length. |
private static double |
DEFAZSIZE
The key to the normalized altitude arrow length. |
private static double |
DEFCATALOGMAG
The size scaling constant for magnitude in normalized coordinates. |
private static double |
DEFCATALOGZERO
The size for a zero magnitude star in normalized coordinates. |
private static String |
DEFDRAWINGSETS
Defines my drawing sets. |
private static double |
DEFMINSTARSIZE
The minimum size for a star detection in normalized coordinates. |
private static boolean |
DEFSHOWALTAZ
Default showing of alt/az direction. |
private static boolean |
DEFSHOWAPERTURE
Default showing of aperture. |
private static boolean |
DEFSHOWCATALOG
Default showing of stars. |
private static boolean |
DEFSHOWGHOSTS
Default showing of stars. |
private static boolean |
DEFSHOWMIRRORS
Default showing of stars. |
private static boolean |
DEFSHOWPINHOLE
Default showing of pinhole. |
private static boolean |
DEFSHOWSPURIOUS
Default showing of stars. |
private static boolean |
DEFSHOWSTARS
Default showing of stars. |
private static boolean |
DEFSHOWSTRIPS
Default showing of stars. |
private static double |
DEFSPURIOUSZERO
The size for a spurious detections in normalized coordinates. |
private static double |
DEFSTARMAG
The size scaling constant for magnitude in normalized coordinates. |
private static double |
DEFSTARZERO
The size for a zero magnitude star in normalized coordinates. |
private static String |
GHOST
The set name for the pinhole. |
private static Shape |
GHOSTSHAPE
The shape for drawing ghost detections. |
static String |
KEY_ALTAZCENTER
The key to the position of the alt/az indicator. |
static String |
KEY_ALTSIZE
The key to the normalized altitude arrow length. |
static String |
KEY_APERTURE
The key to the aperture normalized position. |
static String |
KEY_APERTURESIZE
The key to the normalized aperture diameter. |
static String |
KEY_ASPECTRATIO
The aspect ratio, the fits x-size/y-size. |
static String |
KEY_AZSIZE
The key to the normalized altitude arrow length. |
static String |
KEY_CATALOGMAG
The size scaling constant for magnitude in normalized coordinates. |
static String |
KEY_CATALOGZERO
The size for a zero magnitude star in normalized coordinates. |
static String |
KEY_DIRECTPINHOLE
The key to the direct pinhole normalized coordinates. |
static String |
KEY_MINSTARSIZE
The minimum size for a star detection in normalized coordinates. |
static String |
KEY_SHOWALTAZ
If true, the direction of height and azimuth is displayed. |
static String |
KEY_SHOWAPERTURE
If true, the aperture is displayed. |
static String |
KEY_SHOWCATALOG
If true, stars are shown, if set. |
static String |
KEY_SHOWGHOSTS
If true, stars are shown, if set. |
static String |
KEY_SHOWMIRRORS
If true, stars are shown, if set. |
static String |
KEY_SHOWPINHOLE
If true, direct pinhole position is drawn as a cross. |
static String |
KEY_SHOWSPURIOUS
If true, stars are shown, if set. |
static String |
KEY_SHOWSTARS
If true, stars are shown, if set. |
static String |
KEY_SHOWSTRIPS
If true, stars are shown, if set. |
static String |
KEY_SPURIOUSZERO
The size for a spurious detections in normalized coordinates. |
static String |
KEY_STARMAG
The size scaling constant for magnitude in normalized coordinates. |
static String |
KEY_STARZERO
The size for a zero magnitude star in normalized coordinates. |
private static String |
MIRROR
The set name for the pinhole. |
private static Shape |
MIRRORSHAPE
The shape for drawing mirror detections. |
private static String |
PINHOLE
The set name for the pinhole. |
private static String |
SHIFT
The set name for the pinhole. |
private static String |
SPURIOUS
The set name for the pinhole. |
private static Shape |
SPURIOUSSHAPE
The shape for drawing spurious detections. |
private static String |
STAR
The set name for the pinhole. |
private static Shape |
STARSHAPE
The shape for drawing stars. |
private static String |
STRIP
The set name for the pinhole. |
private static Shape |
STRIPSHAPE
The shape for drawing strip detections. |
| Fields inherited from class jview.JFitsCanvas |
|---|
KEY_HIGHMODE, KEY_KEEP, KEY_LOWKEEP, KEY_LOWMODE, KEY_MAXMAGNIFY, KEY_RGBGRAY, KEY_SCALING, KEY_SMARTKEEP, KEY_XTENSION, KEY_XTENSIONFLIP |
| 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 | |
|---|---|
JGuiderCanvas(PropertyBearing info)
Constructs a new Guider canvas. |
|
| Method Summary | |
|---|---|
private static double |
getAspectless(double angle,
double aspect)
Converts an angle in degrees into an angle that should be displayed. |
void |
init()
On init, we add the pinhole position and the aperture, if desired. |
void |
setCatalogStars(List catalog)
Adds the catalog star as Guiding.RawStar objects. |
void |
setComposedProperties(PropertyBearing prop)
Defaults the showXXX booleans. |
void |
setGhosts(List catalog)
Adds the catalog star as Guiding.RawStar objects. |
void |
setImageRotation(double angle)
We set the image rotation that was effective during the exposure. |
void |
setMirrors(List catalog)
Adds the catalog star as Guiding.RawStar objects. |
void |
setPixelShift(Point2D shift)
We set the pixel shift calculated. |
private void |
setRaw(List stars,
String set,
Shape template,
double m0,
double m1)
Adds a list of raw stars to this drawables. |
void |
setSpurious(List catalog)
Adds the catalog star as Guiding.RawStar objects. |
void |
setStars(List catalog)
Adds the catalog star as Guiding.RawStar objects. |
void |
setStrips(List catalog)
Adds the catalog star as Guiding.RawStar objects. |
| 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, resetViewport, 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_ASPECTRATIO
public static final String KEY_DIRECTPINHOLE
public static final String KEY_APERTURE
public static final String KEY_APERTURESIZE
public static final String KEY_ALTAZCENTER
public static final String KEY_ALTSIZE
public static final String KEY_AZSIZE
public static final String KEY_SHOWPINHOLE
public static final String KEY_SHOWAPERTURE
public static final String KEY_SHOWALTAZ
public static final String KEY_SHOWSTARS
public static final String KEY_SHOWMIRRORS
public static final String KEY_SHOWGHOSTS
public static final String KEY_SHOWSPURIOUS
public static final String KEY_SHOWSTRIPS
public static final String KEY_SHOWCATALOG
public static final String KEY_CATALOGZERO
public static final String KEY_CATALOGMAG
public static final String KEY_STARZERO
public static final String KEY_STARMAG
public static final String KEY_SPURIOUSZERO
public static final String KEY_MINSTARSIZE
private static final String PINHOLE
private static final String APERTURE
private static final String ALTAZ
private static final String SHIFT
private static final String STAR
private static final String CATALOG
private static final String STRIP
private static final String SPURIOUS
private static final String MIRROR
private static final String GHOST
private static final Point2D DEFALTAZCENTER
private static final double DEFALTSIZE
private static final double DEFAZSIZE
private static final boolean DEFSHOWPINHOLE
private static final boolean DEFSHOWAPERTURE
private static final boolean DEFSHOWALTAZ
private static final boolean DEFSHOWSTARS
private static final boolean DEFSHOWMIRRORS
private static final boolean DEFSHOWGHOSTS
private static final boolean DEFSHOWSPURIOUS
private static final boolean DEFSHOWSTRIPS
private static final boolean DEFSHOWCATALOG
private static final double DEFCATALOGZERO
private static final double DEFCATALOGMAG
private static final double DEFSTARZERO
private static final double DEFSTARMAG
private static final double DEFSPURIOUSZERO
private static final double DEFMINSTARSIZE
private static final String DEFDRAWINGSETS
private static final Shape STARSHAPE
private static final Shape CATALOGSHAPE
private static final Shape SPURIOUSSHAPE
private static final Shape MIRRORSHAPE
private static final Shape GHOSTSHAPE
private static final Shape STRIPSHAPE
| Constructor Detail |
|---|
public JGuiderCanvas(PropertyBearing info)
setComposedProperties(util.PropertyBearing) method.
| Method Detail |
|---|
public void setComposedProperties(PropertyBearing prop)
setComposedProperties in interface PropertyAwaresetComposedProperties in class JFitsCanvaspublic void init()
init in interface Initializableinit in class JFitsCanvaspublic void setImageRotation(double angle)
public void setPixelShift(Point2D shift)
public void setCatalogStars(List catalog)
Guiding.RawStar objects.
If called with null, all entries are deleted.
public void setStars(List catalog)
Guiding.RawStar objects.
If called with null, all entries are deleted.
public void setMirrors(List catalog)
Guiding.RawStar objects.
If called with null, all entries are deleted.
public void setGhosts(List catalog)
Guiding.RawStar objects.
If called with null, all entries are deleted.
public void setStrips(List catalog)
Guiding.RawStar objects.
If called with null, all entries are deleted.
public void setSpurious(List catalog)
Guiding.RawStar objects.
If called with null, all entries are deleted.
private void setRaw(List stars,
String set,
Shape template,
double m0,
double m1)
private static final double getAspectless(double angle,
double aspect)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||