org.jscience.astronomy.solarsystem.ephemeris.gui
Class CSpherePanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by org.jscience.astronomy.solarsystem.ephemeris.gui.CSpherePanel
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class CSpherePanel
extends java.awt.Panel
implements java.awt.event.ActionListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener, java.awt.event.ComponentListener

DOCUMENT ME!

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 CelestialSphere app
          DOCUMENT ME!
 java.awt.Color buttcolor
          DOCUMENT ME!
static java.lang.String[] monthstr
          DOCUMENT ME!
protected  Matrix3D precess
          DOCUMENT ME!
protected  Matrix3D rotAltAz
          DOCUMENT ME!
protected  Matrix3D rotLatTime
          DOCUMENT ME!
 
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
CSpherePanel(CelestialSphere celestialsphere)
          Creates a new CSpherePanel object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionevent)
          DOCUMENT ME!
 void componentHidden(java.awt.event.ComponentEvent componentevent)
          DOCUMENT ME!
 void componentMoved(java.awt.event.ComponentEvent componentevent)
          DOCUMENT ME!
 void componentResized(java.awt.event.ComponentEvent componentevent)
          DOCUMENT ME!
 void componentShown(java.awt.event.ComponentEvent componentevent)
          DOCUMENT ME!
 void destroy()
          DOCUMENT ME!
 double getCookieLatitude()
          DOCUMENT ME!
 double getCookieLongitude()
          DOCUMENT ME!
 void mouseClicked(java.awt.event.MouseEvent mouseevent)
          DOCUMENT ME!
 void mouseDragged(java.awt.event.MouseEvent mouseevent)
          DOCUMENT ME!
 void mouseEntered(java.awt.event.MouseEvent mouseevent)
          DOCUMENT ME!
 void mouseExited(java.awt.event.MouseEvent mouseevent)
          DOCUMENT ME!
 void mouseMoved(java.awt.event.MouseEvent mouseevent)
          DOCUMENT ME!
 void mousePressed(java.awt.event.MouseEvent mouseevent)
          DOCUMENT ME!
 void mouseReleased(java.awt.event.MouseEvent mouseevent)
          DOCUMENT ME!
 void paint(java.awt.Graphics g)
          DOCUMENT ME!
 void rotateView()
          DOCUMENT ME!
 void saveCookie(double d, double d1)
          DOCUMENT ME!
 double scaleFactor()
          DOCUMENT ME!
 void setState(org.jscience.astronomy.solarsystem.ephemeris.gui.SettingsState settingsstate)
          DOCUMENT ME!
 void settingsHaveChanged()
          DOCUMENT ME!
 void tryDraw()
          DOCUMENT ME!
 void update(java.awt.Graphics g)
          DOCUMENT ME!
 void updateTime()
          DOCUMENT ME!
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, 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, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, 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

monthstr

public static final java.lang.String[] monthstr
DOCUMENT ME!


app

public CelestialSphere app
DOCUMENT ME!


precess

protected Matrix3D precess
DOCUMENT ME!


rotLatTime

protected Matrix3D rotLatTime
DOCUMENT ME!


rotAltAz

protected Matrix3D rotAltAz
DOCUMENT ME!


buttcolor

public java.awt.Color buttcolor
DOCUMENT ME!

Constructor Detail

CSpherePanel

public CSpherePanel(CelestialSphere celestialsphere)
Creates a new CSpherePanel object.

Parameters:
celestialsphere - DOCUMENT ME!
Method Detail

componentShown

public void componentShown(java.awt.event.ComponentEvent componentevent)
DOCUMENT ME!

Specified by:
componentShown in interface java.awt.event.ComponentListener
Parameters:
componentevent - DOCUMENT ME!

setState

public void setState(org.jscience.astronomy.solarsystem.ephemeris.gui.SettingsState settingsstate)
DOCUMENT ME!

Parameters:
settingsstate - DOCUMENT ME!

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent mouseevent)
DOCUMENT ME!

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
mouseevent - DOCUMENT ME!

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent mouseevent)
DOCUMENT ME!

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
mouseevent - DOCUMENT ME!

mousePressed

public void mousePressed(java.awt.event.MouseEvent mouseevent)
DOCUMENT ME!

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
mouseevent - DOCUMENT ME!

componentResized

public void componentResized(java.awt.event.ComponentEvent componentevent)
DOCUMENT ME!

Specified by:
componentResized in interface java.awt.event.ComponentListener
Parameters:
componentevent - DOCUMENT ME!

componentHidden

public void componentHidden(java.awt.event.ComponentEvent componentevent)
DOCUMENT ME!

Specified by:
componentHidden in interface java.awt.event.ComponentListener
Parameters:
componentevent - DOCUMENT ME!

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent mouseevent)
DOCUMENT ME!

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
mouseevent - DOCUMENT ME!

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent mouseevent)
DOCUMENT ME!

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
mouseevent - DOCUMENT ME!

getCookieLongitude

public double getCookieLongitude()
DOCUMENT ME!

Returns:
DOCUMENT ME!

destroy

public void destroy()
DOCUMENT ME!


paint

public void paint(java.awt.Graphics g)
DOCUMENT ME!

Overrides:
paint in class java.awt.Container
Parameters:
g - DOCUMENT ME!

saveCookie

public void saveCookie(double d,
                       double d1)
DOCUMENT ME!

Parameters:
d - DOCUMENT ME!
d1 - DOCUMENT ME!

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionevent)
DOCUMENT ME!

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
actionevent - DOCUMENT ME!

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent mouseevent)
DOCUMENT ME!

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
mouseevent - DOCUMENT ME!

mouseExited

public void mouseExited(java.awt.event.MouseEvent mouseevent)
DOCUMENT ME!

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
mouseevent - DOCUMENT ME!

tryDraw

public void tryDraw()
DOCUMENT ME!


update

public void update(java.awt.Graphics g)
DOCUMENT ME!

Overrides:
update in class java.awt.Container
Parameters:
g - DOCUMENT ME!

settingsHaveChanged

public void settingsHaveChanged()
DOCUMENT ME!


scaleFactor

public double scaleFactor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

updateTime

public void updateTime()
DOCUMENT ME!


componentMoved

public void componentMoved(java.awt.event.ComponentEvent componentevent)
DOCUMENT ME!

Specified by:
componentMoved in interface java.awt.event.ComponentListener
Parameters:
componentevent - DOCUMENT ME!

rotateView

public void rotateView()
DOCUMENT ME!


getCookieLatitude

public double getCookieLatitude()
DOCUMENT ME!

Returns:
DOCUMENT ME!