stella.jview
Class JGuiderCanvas

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by jview.JNormalizedCanvas
                  extended by jview.JViewportCanvas
                      extended by jview.JFrameCanvas
                          extended by jview.JFitsCanvas
                              extended by stella.jview.JGuiderCanvas
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, NormalizedCoordinates, NormalizedShapes, UserCoordinates, Zoomable, Initializable, PropertyAware, PropertyComposed, Savable

public class JGuiderCanvas
extends JFitsCanvas

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.

See Also:
Serialized Form

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.JFrameCanvas
KEY_ABSOLUTEHEIGHT, KEY_ABSOLUTEWIDTH, KEY_DRAWBOX, KEY_RELATIVEHEIGHT, KEY_RELATIVEWIDTH, KEY_TITLECOLOR, KEY_TITLEFONT, KEY_TITLEJUSTIFY, KEY_TITLEOFFSET, KEY_TITLETEXT, KEY_TOPCOLOR, KEY_TOPFONT, KEY_TOPJUSTIFY, KEY_TOPOFFSET, KEY_TOPSEPARATOR, KEY_TOPTEXT, KEY_XFRAME, KEY_XINSETABSOLUTE, KEY_XINSETRELATIVE, KEY_YFRAME, KEY_YINSETABSOLUTE, KEY_YINSETRELATIVE
 
Fields inherited from class jview.JViewportCanvas
MAXVIEW, VIEWPORTIMAGEPROPERTY, VIEWPORTPROPERTY
 
Fields inherited from class jview.JNormalizedCanvas
BACKGROUNDIMAGEPROPERTY, EXPORTACTION, GENERIC, inverse, KEY_BACKGROUND, KEY_CANVASNAME, KEY_CANVASTIP, KEY_CURSORCLASSES, KEY_CURSORPROPS, KEY_DRAWINGSETS, KEY_FOREGROUND, KEY_MAXIMUMHEIGHT, KEY_MAXIMUMWIDTH, KEY_MINIMUMHEIGHT, KEY_MINIMUMWIDTH, KEY_PREFERREDHEIGHT, KEY_PREFERREDWIDTH, KEY_PRINTFONT, KEY_PRINTFONTSCALE, KEY_PRINTSHAPESCALE, KEY_RESTORESHAPES, KEY_XFLIPIMAGE, KEY_YFLIPIMAGE, PRINTACTION, SAVEACTION, transform
 
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.JFitsCanvas
clearHistogram, getArrayTransformation, getBinning, getDisplay, getDisplayDivide, getDisplayMap, getFits, getFITSImageBits, getFITSImageData, getFITSImageSize, getFITSImageValue, getFraction, getHdu, getHistogram, getHistogramBounds, getOffset, getPreferredSize, getScaling, getSkyTransformation, getTotalSize, getUserTransformation, getXtensionCount, reconstructHdu, revertFromFits, revertImage, scanFits, setFits, setFraction, setHistogramBounds, setScaling, setTotalSize, setUserTransformation, silentlySelectViewport
 
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 jview.JNormalizedCanvas
addCrossCursor, addDrawable, addDrawable, addDrawable, addDrawingInfo, addLink, addLink, addPoint, addPoint, addText, addText, allInside, applyDrawingInfo, assignCursorLabel, clearAllDrawable, clearAllText, clearDrawable, clearText, createCanvasCursor, disabledCanvas, drawPoints, drawPointsMap, drawShapes, drawShapesMap, drawText, drawTextMap, firePropertyChange, getActions, getAnimationInfo, getBackground, getBackgroundImage, getCanvasCursor, getClosest, getClosest, getClosest, getClosestShape, getComposedProperties, getFromName, getImageOperation, getInside, getInsideShapes, getInverseTransform, getLink, getLinkedTo, getMaximumSize, getMinimumSize, getNormalized, getNormalizedRect, getSaveBuffer, getScreen, getScreenRect, getShapeTransform, isEmpty, isFlipX, isFlipY, paintComponent, paintPointsList, paintShapesList, paintTextList, printComponent, removeDrawable, removeDrawable, removeLink, removeText, removeText, repaintLater, repaintNow, setBackgroundImage, setBounds, setComplete, setCursor, setCursor, setDrawable, setImageOperation, setLink, setPrepare, startAnimation, stopAnimation
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, 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 jview.NormalizedCoordinates
getArea, getNormalized, getNormalizedRect, getScreen, getScreenRect, getViewport, isNormalizedOnScreen, isScreenInNormalized
 

Field Detail

KEY_ASPECTRATIO

public static final String KEY_ASPECTRATIO
The aspect ratio, the fits x-size/y-size.

See Also:
Constant Field Values

KEY_DIRECTPINHOLE

public static final String KEY_DIRECTPINHOLE
The key to the direct pinhole normalized coordinates.

See Also:
Constant Field Values

KEY_APERTURE

public static final String KEY_APERTURE
The key to the aperture normalized position.

See Also:
Constant Field Values

KEY_APERTURESIZE

public static final String KEY_APERTURESIZE
The key to the normalized aperture diameter.

See Also:
Constant Field Values

KEY_ALTAZCENTER

public static final String KEY_ALTAZCENTER
The key to the position of the alt/az indicator.

See Also:
Constant Field Values

KEY_ALTSIZE

public static final String KEY_ALTSIZE
The key to the normalized altitude arrow length.

See Also:
Constant Field Values

KEY_AZSIZE

public static final String KEY_AZSIZE
The key to the normalized altitude arrow length.

See Also:
Constant Field Values

KEY_SHOWPINHOLE

public static final String KEY_SHOWPINHOLE
If true, direct pinhole position is drawn as a cross.

See Also:
Constant Field Values

KEY_SHOWAPERTURE

public static final String KEY_SHOWAPERTURE
If true, the aperture is displayed.

See Also:
Constant Field Values

KEY_SHOWALTAZ

public static final String KEY_SHOWALTAZ
If true, the direction of height and azimuth is displayed.

See Also:
Constant Field Values

KEY_SHOWSTARS

public static final String KEY_SHOWSTARS
If true, stars are shown, if set.

See Also:
Constant Field Values

KEY_SHOWMIRRORS

public static final String KEY_SHOWMIRRORS
If true, stars are shown, if set.

See Also:
Constant Field Values

KEY_SHOWGHOSTS

public static final String KEY_SHOWGHOSTS
If true, stars are shown, if set.

See Also:
Constant Field Values

KEY_SHOWSPURIOUS

public static final String KEY_SHOWSPURIOUS
If true, stars are shown, if set.

See Also:
Constant Field Values

KEY_SHOWSTRIPS

public static final String KEY_SHOWSTRIPS
If true, stars are shown, if set.

See Also:
Constant Field Values

KEY_SHOWCATALOG

public static final String KEY_SHOWCATALOG
If true, stars are shown, if set.

See Also:
Constant Field Values

KEY_CATALOGZERO

public static final String KEY_CATALOGZERO
The size for a zero magnitude star in normalized coordinates.

See Also:
Constant Field Values

KEY_CATALOGMAG

public static final String KEY_CATALOGMAG
The size scaling constant for magnitude in normalized coordinates.

See Also:
Constant Field Values

KEY_STARZERO

public static final String KEY_STARZERO
The size for a zero magnitude star in normalized coordinates.

See Also:
Constant Field Values

KEY_STARMAG

public static final String KEY_STARMAG
The size scaling constant for magnitude in normalized coordinates.

See Also:
Constant Field Values

KEY_SPURIOUSZERO

public static final String KEY_SPURIOUSZERO
The size for a spurious detections in normalized coordinates.

See Also:
Constant Field Values

KEY_MINSTARSIZE

public static final String KEY_MINSTARSIZE
The minimum size for a star detection in normalized coordinates.

See Also:
Constant Field Values

PINHOLE

private static final String PINHOLE
The set name for the pinhole.

See Also:
Constant Field Values

APERTURE

private static final String APERTURE
The set name for the pinhole.

See Also:
Constant Field Values

ALTAZ

private static final String ALTAZ
The set name for the pinhole.

See Also:
Constant Field Values

SHIFT

private static final String SHIFT
The set name for the pinhole.

See Also:
Constant Field Values

STAR

private static final String STAR
The set name for the pinhole.

See Also:
Constant Field Values

CATALOG

private static final String CATALOG
The set name for the pinhole.

See Also:
Constant Field Values

STRIP

private static final String STRIP
The set name for the pinhole.

See Also:
Constant Field Values

SPURIOUS

private static final String SPURIOUS
The set name for the pinhole.

See Also:
Constant Field Values

MIRROR

private static final String MIRROR
The set name for the pinhole.

See Also:
Constant Field Values

GHOST

private static final String GHOST
The set name for the pinhole.

See Also:
Constant Field Values

DEFALTAZCENTER

private static final Point2D DEFALTAZCENTER
The key to the position of the alt/az indicator.


DEFALTSIZE

private static final double DEFALTSIZE
The key to the normalized altitude arrow length.

See Also:
Constant Field Values

DEFAZSIZE

private static final double DEFAZSIZE
The key to the normalized altitude arrow length.

See Also:
Constant Field Values

DEFSHOWPINHOLE

private static final boolean DEFSHOWPINHOLE
Default showing of pinhole.

See Also:
Constant Field Values

DEFSHOWAPERTURE

private static final boolean DEFSHOWAPERTURE
Default showing of aperture.

See Also:
Constant Field Values

DEFSHOWALTAZ

private static final boolean DEFSHOWALTAZ
Default showing of alt/az direction.

See Also:
Constant Field Values

DEFSHOWSTARS

private static final boolean DEFSHOWSTARS
Default showing of stars.

See Also:
Constant Field Values

DEFSHOWMIRRORS

private static final boolean DEFSHOWMIRRORS
Default showing of stars.

See Also:
Constant Field Values

DEFSHOWGHOSTS

private static final boolean DEFSHOWGHOSTS
Default showing of stars.

See Also:
Constant Field Values

DEFSHOWSPURIOUS

private static final boolean DEFSHOWSPURIOUS
Default showing of stars.

See Also:
Constant Field Values

DEFSHOWSTRIPS

private static final boolean DEFSHOWSTRIPS
Default showing of stars.

See Also:
Constant Field Values

DEFSHOWCATALOG

private static final boolean DEFSHOWCATALOG
Default showing of stars.

See Also:
Constant Field Values

DEFCATALOGZERO

private static final double DEFCATALOGZERO
The size for a zero magnitude star in normalized coordinates.

See Also:
Constant Field Values

DEFCATALOGMAG

private static final double DEFCATALOGMAG
The size scaling constant for magnitude in normalized coordinates.

See Also:
Constant Field Values

DEFSTARZERO

private static final double DEFSTARZERO
The size for a zero magnitude star in normalized coordinates.

See Also:
Constant Field Values

DEFSTARMAG

private static final double DEFSTARMAG
The size scaling constant for magnitude in normalized coordinates.

See Also:
Constant Field Values

DEFSPURIOUSZERO

private static final double DEFSPURIOUSZERO
The size for a spurious detections in normalized coordinates.

See Also:
Constant Field Values

DEFMINSTARSIZE

private static final double DEFMINSTARSIZE
The minimum size for a star detection in normalized coordinates.

See Also:
Constant Field Values

DEFDRAWINGSETS

private static final String DEFDRAWINGSETS
Defines my drawing sets.

See Also:
Constant Field Values

STARSHAPE

private static final Shape STARSHAPE
The shape for drawing stars. Must be scaled down and shifted.


CATALOGSHAPE

private static final Shape CATALOGSHAPE
The shape for drawing catalog entries. Scale down and shift.


SPURIOUSSHAPE

private static final Shape SPURIOUSSHAPE
The shape for drawing spurious detections. Initialized in static.


MIRRORSHAPE

private static final Shape MIRRORSHAPE
The shape for drawing mirror detections. Initialized in static.


GHOSTSHAPE

private static final Shape GHOSTSHAPE
The shape for drawing ghost detections. Initialized in static.


STRIPSHAPE

private static final Shape STRIPSHAPE
The shape for drawing strip detections. Initialized in static.

Constructor Detail

JGuiderCanvas

public JGuiderCanvas(PropertyBearing info)
Constructs a new Guider canvas. Parameters are defaulted in the setComposedProperties(util.PropertyBearing) method.

Method Detail

setComposedProperties

public void setComposedProperties(PropertyBearing prop)
Defaults the showXXX booleans. Direct pinhole position etc. is not defaulted, because it differes from guider to acquire frames, but if present it is parsed into a Point2D object.

Specified by:
setComposedProperties in interface PropertyAware
Overrides:
setComposedProperties in class JFitsCanvas

init

public void init()
On init, we add the pinhole position and the aperture, if desired.

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

setImageRotation

public void setImageRotation(double angle)
We set the image rotation that was effective during the exposure. The alt/az direction is drawn if requested.


setPixelShift

public void setPixelShift(Point2D shift)
We set the pixel shift calculated. Whenever this method is called, the pixel shift is drawn.


setCatalogStars

public void setCatalogStars(List catalog)
Adds the catalog star as Guiding.RawStar objects. If called with null, all entries are deleted.


setStars

public void setStars(List catalog)
Adds the catalog star as Guiding.RawStar objects. If called with null, all entries are deleted.


setMirrors

public void setMirrors(List catalog)
Adds the catalog star as Guiding.RawStar objects. If called with null, all entries are deleted.


setGhosts

public void setGhosts(List catalog)
Adds the catalog star as Guiding.RawStar objects. If called with null, all entries are deleted.


setStrips

public void setStrips(List catalog)
Adds the catalog star as Guiding.RawStar objects. If called with null, all entries are deleted.


setSpurious

public void setSpurious(List catalog)
Adds the catalog star as Guiding.RawStar objects. If called with null, all entries are deleted.


setRaw

private void setRaw(List stars,
                    String set,
                    Shape template,
                    double m0,
                    double m1)
Adds a list of raw stars to this drawables. If called with null, all entries are deleted.


getAspectless

private static final double getAspectless(double angle,
                                          double aspect)
Converts an angle in degrees into an angle that should be displayed.