org.stellarium.ui.components
Class TimeItem
java.lang.Object
java.awt.event.KeyAdapter
org.stellarium.ui.components.StellariumComponent
org.stellarium.ui.components.CallbackComponent
org.stellarium.ui.components.StelContainer
org.stellarium.ui.components.TimeItem
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener,
java.awt.event.MouseWheelListener, java.util.EventListener
-
public class TimeItem
- extends StelContainer
Widget used to set time and date
Fields inherited from class org.stellarium.ui.components.StellariumComponent |
active, defaultPainter, desktop, focus, focusing, guiBaseColor, guiColorSchemeMember,
guiTextColor, moveToFront, needNewTopEdit, painter, pos, scissor, size, type, visible |
Methods inherited from class org.stellarium.ui.components.CallbackComponent |
callbackOnClic,
callbackOnMove,
getActive, getFocus, getIsMouseOver, getPos, getPosx, getPosy, getSize, getSizeX, getSizeY, getVisible, setActive, setFont,
setOnMouseInOutCallback,
setOnPressCallback,
setPos, setPos,
setPosx, setPosy, setSize, setSize,
setSizeX, setSizey, setTexture,
setVisible
|
Methods inherited from class org.stellarium.ui.components.StellariumComponent |
deleteScissor, disableScissor, enableScissor, getFont, getNeedNewEdit, getType, inFront, initScissor, isIn, mouseDragged,
mouseEntered,
mouseExited,
mousePressed,
mouseReleased,
mouseWheelMoved,
reshape,
reshape,
setBaseColor,
setDefaultPainter,
setGUIColorSchemeMember,
setInFront, setNeedNewEdit,
setOpaque, setPainter,
setTextColor
|
Methods inherited from class java.awt.event.KeyAdapter |
keyReleased, keyTyped |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
d
protected IntIncDec d
m
protected IntIncDec m
y
protected IntIncDec y
h
protected IntIncDec h
mn
protected IntIncDec mn
s
protected IntIncDec s
onChangeTimeCallback
protected StelCallback onChangeTimeCallback
TimeItem
public TimeItem(SFontIfc someFont,
STexture texUp,
STexture texDown)
TimeItem
TimeItem(SFontIfc someFont,
STexture texUp,
STexture texDown,
double someJD)
- Creates a new Time Item.
- Parameters:
someFont
- Item's font.
texUp
- Texture when up
texDown
- Texture when up
someJD
- The Julian Day
getJDay
public double getJDay()
-
getDateString
public java.lang.String getDateString()
- for use with commands - no special characters, just the local date
-
- Returns:
-
setJDay
public void setJDay(double JD)
-
draw
public void draw()
-
- Overrides:
draw
in class
StelContainer
-
onTimeChange
void onTimeChange()
-
setOnChangeTimeCallback
public void setOnChangeTimeCallback(StelCallback c)
-