JEphem site
tig API
Build classes

jephem.tools
Class SkyMapBase

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--jephem.tools.SkyMapBase
All Implemented Interfaces:
javax.accessibility.Accessible, ConstellationConstants, GeneralConstants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, SpaceConstants
Direct Known Subclasses:
SkyMap

public class SkyMapBase
extends javax.swing.JPanel
implements ConstellationConstants, SpaceConstants, GeneralConstants

Contains the geometrical functionalities of a sky map ; do not use this class directly, use instead SkyMap.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int MINUS
          Constant to indicate indirect sens of rotation (clockwise).
static int PLUS
          Constant to indicate direct sens of rotation (anti-clockwise).
static int X
          Constant to indicate X axis.
static int Y
          Constant to indicate Y axis.
static int Z
          Constant to indicate Z axis.
 
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 jephem.astro.sky.ConstellationConstants
And, Ant, Aps, Aql, Aqr, Ara, Ari, Aur, Boo, Cae, Cam, Cap, Car, Cas, Cen, Cep, Cet, Cha, Cir, CMa, CMi, Cnc, Col, Com, CrA, CrB, Crt, Cru, Crv, CVn, Cyg, Del, Dor, Dra, Equ, Eri, For, Gem, Gru, Her, Hor, Hya, Hyi, Ind, Lac, Leo, Lep, Lib, LMi, Lup, Lyn, Lyr, Men, Mic, Mon, Mus, NB_CONSTELLATIONS, Nor, Oct, Oph, Ori, Pav, Peg, Per, Phe, Pic, PsA, Pse, Pup, Pyx, Ret, Scl, Sco, Sct, Ser, SerA, SerB, Sex, Sge, Sgr, Tau, Tel, TrA, Tri, Tuc, UMa, UMi, Vel, Vir, Vol, Vul
 
Fields inherited from interface jephem.astro.spacetime.SpaceConstants
CARTESIAN, COORD_V0, COORD_V1, COORD_V2, COORD_X0, COORD_X1, COORD_X2, COORDGROUP_DELTA_BETA_LAMBDA, COORDGROUP_DIST_ALPHA_DELTA, COORDGROUP_RLB, COORDGROUP_XYZ, FRAME_EC_HELIO_GEOMETRIC, FRAME_ECLIPTIC, FRAME_EQUATORIAL, FRAME_GALACTIC, FRAME_HORIZONTAL_TOPOCENTRIC, FRAME_THEORY, LIGHT_VELOCITY, NB_COORDS, SPHERICAL
 
Fields inherited from interface tig.GeneralConstants
BLANK, FS, LS, NO_SPECIF, SPACE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SkyMapBase()
          Unique constructor.
 
Method Summary
 void drawCircle(java.awt.Graphics2D g2, double alpha0, double epsilon0, double delta0)
          Draws a circle on the given Graphics2D, taking into account the eye matrix.
 Matrix3 getEyeMatrix()
          Returns the eye matrix, used to define the viewer's orientation.
 double getZoom()
          Returns the zoom of this sky map.
 void rotateEye(int direction, double increment)
          Changes the orientation of the viewer's eye and repaints.
 void setEyeMatrix(Matrix3 em)
          Sets the eye matrix, used to define the viewer's orientation.
 void setEyeOrientation(double theta, double phi)
          Sets the orientation of the viewer's eye and repaints.
 void setZoom(double zoom)
          Sets the zoom of this sky map, and repaints.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, 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
 

Field Detail

MINUS

public static final int MINUS
Constant to indicate indirect sens of rotation (clockwise).

See Also:
Constant Field Values

PLUS

public static final int PLUS
Constant to indicate direct sens of rotation (anti-clockwise).

See Also:
Constant Field Values

X

public static final int X
Constant to indicate X axis.

See Also:
Constant Field Values

Y

public static final int Y
Constant to indicate Y axis.

See Also:
Constant Field Values

Z

public static final int Z
Constant to indicate Z axis.

See Also:
Constant Field Values
Constructor Detail

SkyMapBase

public SkyMapBase()
Unique constructor. The base frame is set to equatorial frame.

Method Detail

drawCircle

public void drawCircle(java.awt.Graphics2D g2,
                       double alpha0,
                       double epsilon0,
                       double delta0)
Draws a circle on the given Graphics2D, taking into account the eye matrix.
The angles specify the circle orientation :

Parameters:
alpha0 - in degrees.
epsilon0 - in degrees.
delta0 - in degrees.

getEyeMatrix

public Matrix3 getEyeMatrix()
Returns the eye matrix, used to define the viewer's orientation.


getZoom

public double getZoom()
Returns the zoom of this sky map.


rotateEye

public void rotateEye(int direction,
                      double increment)
Changes the orientation of the viewer's eye and repaints.

Parameters:
direction - Use constants of this class to expree it.
increment - The value of the rotation angle, in degres.

setEyeMatrix

public void setEyeMatrix(Matrix3 em)
Sets the eye matrix, used to define the viewer's orientation.


setEyeOrientation

public void setEyeOrientation(double theta,
                              double phi)
Sets the orientation of the viewer's eye and repaints.
The parameters designate the direction to which the eye should look ; they are expressed in degrees, in sky coordinates.


setZoom

public void setZoom(double zoom)
Sets the zoom of this sky map, and repaints.


JEphem site
tig API
Build classes