org.stellarium.ui
Class STUI.TimeItem

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by org.stellarium.ui.STUI.Component
          extended by org.stellarium.ui.STUI.CallbackComponent
              extended by org.stellarium.ui.STUI.TimeItem
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener
Enclosing class:
STUI

static class STUI.TimeItem
extends STUI.CallbackComponent


Field Summary
protected  STUI.IntegerItem current_edit
           
protected  STUI.IntegerItem d
           
protected  STUI.IntegerItem h
           
protected  double JD
           
protected  java.lang.String label
           
protected  STUI.IntegerItem m
           
protected  STUI.IntegerItem mn
           
protected  STUI.IntegerItem s
           
protected  double second
           
protected  STUI.IntegerItem y
           
protected  int[] ymdhms
           
 
Fields inherited from class org.stellarium.ui.STUI.CallbackComponent
onChangeCallback
 
Fields inherited from class org.stellarium.ui.STUI.Component
active
 
Constructor Summary
STUI.TimeItem(java.lang.String _label)
           
STUI.TimeItem(java.lang.String _label, double _JD)
           
 
Method Summary
(package private)  void computeJD()
          Code originally from libnova which appeared to be totally wrong...
(package private)  void computeYmdhms()
          Code originally from libnova which appeared to be totally wrong...
(package private)  double getJDay()
           
 java.lang.String getString()
          Convert Julian day to yyyy/mm/dd hh:mm:ss and return the String
(package private)  boolean isEditable()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
(package private)  void setJDay(double jd)
           
 
Methods inherited from class org.stellarium.ui.STUI.CallbackComponent
keyReleased, keyTyped, setOnChangeCallback
 
Methods inherited from class org.stellarium.ui.STUI.Component
getActive, getCleanString, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JD

protected double JD

current_edit

protected STUI.IntegerItem current_edit

label

protected java.lang.String label

ymdhms

protected int[] ymdhms

second

protected double second

y

protected STUI.IntegerItem y

m

protected STUI.IntegerItem m

d

protected STUI.IntegerItem d

h

protected STUI.IntegerItem h

mn

protected STUI.IntegerItem mn

s

protected STUI.IntegerItem s
Constructor Detail

STUI.TimeItem

STUI.TimeItem(java.lang.String _label,
              double _JD)

STUI.TimeItem

STUI.TimeItem(java.lang.String _label)
Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class STUI.Component

getString

public java.lang.String getString()
Convert Julian day to yyyy/mm/dd hh:mm:ss and return the String

Overrides:
getString in class STUI.Component

computeYmdhms

void computeYmdhms()
Code originally from libnova which appeared to be totally wrong... New code from celestia


computeJD

void computeJD()
Code originally from libnova which appeared to be totally wrong... New code from celestia


isEditable

boolean isEditable()
Overrides:
isEditable in class STUI.Component

getJDay

double getJDay()

setJDay

void setJDay(double jd)