org.stellarium.ui
Class StelUI

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.stellarium.ui.StelUI
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
Direct Known Subclasses:
StelUIConf

public abstract class StelUI
extends java.awt.event.MouseAdapter
implements java.awt.event.KeyListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener

Handles a Stellarium User Interface

Version:
0.8.2
Author:
Jérôme Beau
See Also:
stel_ui.h, stel_ui.cpp

Nested Class Summary
(package private)  class StelUI.ButtonAction
           
(package private)  class StelUI.SButton
           
 
Field Summary
(package private)  javax.swing.JSpinner altIncDec
           
protected  StelApp app
          The main application instance
protected  StelUI.ButtonAction atmosphereAction
           
protected  javax.swing.JCheckBox atmosphereCbx
           
protected  StelUI.ButtonAction azimuthGridAction
           
protected  javax.swing.JCheckBox azimuthGridCbx
           
(package private)  java.lang.String baseCFontName
           
(package private)  float baseCFontSize
           
protected  SFontIfc baseFont
          The standard font
(package private)  java.lang.String baseFontName
           
(package private)  float baseFontSize
           
protected  STexture baseTex
          The standard fill texture
protected  StelUI.SButton btDecTimeSpeed
           
protected  javax.swing.JToggleButton btFlagAtmosphere
           
protected  javax.swing.JToggleButton btFlagAzimuthGrid
           
protected  javax.swing.JToggleButton btFlagCardinals
           
protected  javax.swing.JToggleButton btFlagChart
           
protected  javax.swing.JToggleButton btFlagConfig
           
protected  javax.swing.JToggleButton btFlagConstellationArt
           
protected  javax.swing.JToggleButton btFlagConstellationDraw
           
protected  javax.swing.JToggleButton btFlagConstellationName
           
protected  javax.swing.JToolBar btFlagCtr
          The container for the button
protected  javax.swing.JToggleButton btFlagEquatorGrid
           
protected  javax.swing.JToggleButton btFlagEquatorialMode
           
protected  StelUI.SButton btFlagGoto
           
protected  javax.swing.JToggleButton btFlagGround
           
protected  javax.swing.JToggleButton btFlagHelp
           
(package private)  StelLabel btFlagHelpLbl
          The dynamic information about the button under the mouse
protected  javax.swing.JToggleButton btFlagNebulaName
           
protected  javax.swing.JToggleButton btFlagNight
           
protected  StelUI.SButton btFlagQuit
           
protected  StelUI.SButton btFlagSearch
           
(package private)  StelLabel btFlagTimeControlLbl
           
protected  StelUI.SButton btFlipHorz
           
protected  StelUI.SButton btFlipVert
           
protected  StelUI.SButton btIncTimeSpeed
           
protected  StelUI.SButton btRealTimeSpeed
           
protected  EditBox btScript
           
protected  javax.swing.JToolBar btTimeControlCtr
          Time control buttons
protected  StelUI.SButton btTimeNow
           
protected  javax.swing.JCheckBox cardinalCbx
           
protected  StelUI.ButtonAction cardinalsAction
           
protected  StelUI.ButtonAction chartVisionAction
           
protected  StelUI.ButtonAction configAction
           
protected  javax.swing.JTabbedPane configTabCtr
           
protected  javax.swing.JFrame configWin
          The window managing the configuration
(package private)  EditBox constellation_edit
           
protected  StelUI.ButtonAction constellationArtAction
           
protected  javax.swing.JCheckBox constellationCbx
           
protected  StelUI.ButtonAction constellationDrawAction
           
protected  StelUI.ButtonAction constellationNameAction
           
protected  javax.swing.JCheckBox constellationNameCbx
           
protected  StelCore core
          The Main core can be accessed because StelUI is a friend class
protected  SFontIfc courierFont
          The standard fixed size font
 java.text.DecimalFormat decimalFormat
           
protected  StelUI.ButtonAction decTimeAction
           
protected  java.awt.Container desktop
          The container which contains everything
(package private)  StdDlgWin dialogWin
           
protected  javax.swing.JCheckBox diskViewportCbx
           
private  javax.swing.JComponent displayTitleBar
           
protected  MapPicture earthMap
           
protected  javax.swing.JCheckBox eclipticCbx
           
protected  javax.swing.JCheckBox equatorCbx
           
protected  StelUI.ButtonAction equatorGridAction
           
protected  javax.swing.JCheckBox equatorGridCbx
           
protected  StelUI.ButtonAction equatorialModeAction
           
protected  LabeledCheckBox fisheyeProjectionCbx
           
(package private)  boolean flagConfig
           
protected  boolean flagEnableTuiMenu
           
(package private)  boolean flagHelp
           
(package private)  boolean flagInfos
           
(package private)  boolean flagMenu
           
(package private)  boolean flagScriptsRemoveableDiskMounted
          Is the removeable disk for scripts mounted?
(package private)  boolean flagSearch
           
(package private)  boolean flagShowAppName
           
(package private)  boolean flagShowDate
           
protected  boolean flagShowFov
           
protected  boolean flagShowFps
           
protected  boolean flagShowGravityUi
           
(package private)  boolean flagShowScriptBar
           
(package private)  boolean flagShowSelectedObjectInfo
           
(package private)  boolean flagShowTime
           
(package private)  boolean flagShowTopBar
           
protected  boolean flagShowTuiDateTime
           
protected  boolean flagShowTuiMenu
           
protected  boolean flagShowTuiShortObjInfo
           
protected  STexture flipBaseTex
          The standard fill texture
protected  javax.swing.JCheckBox fogCbx
           
protected  StelUI.ButtonAction gotoAction
           
protected  StelUI.ButtonAction groundAction
           
protected  javax.swing.JCheckBox groundCbx
           
(package private)  SColor guiBaseColor
           
(package private)  SColor guiTextColor
           
(package private)  boolean hasDragged
           
protected  StelUI.ButtonAction helpAction
           
(package private)  TextLabel helpTextLabel
           
(package private)  StdBtWin helpWin
          The window containing the help info
protected  StelUI.ButtonAction horizontalSplitAction
           
protected  StelUI.ButtonAction incTimeAction
           
(package private)  StelContainer infoSelectCtr
           
(package private)  TextLabel infoSelectTxtlbl
          The JLabel displaying the infos about the selected object
(package private)  boolean initialized
           
(package private)  boolean isDragging
           
(package private)  double lastJD
           
protected  javax.swing.JSpinner latIncDec
           
(package private)  javax.swing.JLabel lblMapLocation
           
(package private)  javax.swing.JLabel lblMapPointer
           
(package private)  StelLabel lblSearchMessage
           
(package private)  StelLabel licenceTxtLbl
           
(package private)  StdBtWin licenceWin
          The window containing the info (licence)
protected  javax.swing.JSpinner longIncDec
           
protected  javax.swing.JSpinner maxMagNebulaName
           
protected  javax.swing.JSpinner maxMagStarName
           
(package private)  javax.swing.JLabel messageTxtLbl
          window for transient messages
protected  javax.swing.JCheckBox moonX4Cbx
           
protected  double mouseCursorTimeout
          Seconds to hide cursor when not used. 0 means no timeout
(package private)  double mouseTimeLeft
          for cursor timeout (seconds)
(package private)  EditBox nebula_edit
           
protected  StelUI.ButtonAction nebulaNameAction
           
protected  CheckBox nebulasCbx
           
protected  javax.swing.JCheckBox nebulasNamesCbx
           
protected  javax.swing.JCheckBox nebulasNoTextureCbx
           
protected  StelUI.ButtonAction nightModeAction
           
(package private)  boolean opaqueGUI
           
(package private)  EditBox planet_edit
           
protected  javax.swing.JCheckBox planetsCbx
           
protected  javax.swing.JCheckBox planetsHintsCbx
           
(package private)  int previousX
           
(package private)  int previousY
           
protected  StelUI.ButtonAction quitAction
           
protected  StelUI.ButtonAction realTimeAction
           
protected  javax.swing.JList screenSizeSl
           
(package private)  boolean scriptDirectoryRead
           
protected  StelUI.ButtonAction searchAction
           
(package private)  StdBtWin searchWin
          The window managing the search - Tony
protected  javax.swing.JCheckBox selConstellationCbx
           
(package private)  EditBox star_edit
           
protected  javax.swing.JCheckBox starNamesCbx
           
protected  javax.swing.JCheckBox starsCbx
           
protected  javax.swing.JSpinner starTwinkleAmount
           
protected  javax.swing.JCheckBox starTwinkleCbx
           
(package private)  CheckBox systemTzCbx
           
protected  javax.swing.JLabel systemTzLbl2
           
protected  STexture texDown
          Down arrow texture
protected  STexture texUp
          Up arrow texture
protected  TimeItem timeCurrent
           
protected  StelUI.ButtonAction timeNowAction
           
protected  javax.swing.JLabel timeSpeedLbl2
           
 javax.swing.JLabel topBar
           
protected  java.lang.String topBarAppNameLbl
           
protected  java.lang.String topBarDateLbl
          The top bar containing the Main infos (date, time, fps etc...)
protected  java.lang.String topBarFOVLbl
           
protected  java.lang.String topBarFpsLbl
           
protected  java.lang.String topBarHourLbl
           
(package private)  STUI.IntegerItem tuiAdminHOffset
           
(package private)  STUI.ActionConfirmItem tuiAdminLoadDefault
           
(package private)  STUI.ActionConfirmItem tuiAdminSaveDefault
           
(package private)  STUI.ActionItem tuiAdminUpdateMe
           
(package private)  STUI.IntegerItem tuiAdminVOffset
           
(package private)  STUI.MultiSetItem<java.lang.String> tuiEffectLandscape
           
(package private)  STUI.BooleanItem tuiEffectManualZoom
           
(package private)  STUI.BooleanItem tuiEffectPointObj
           
(package private)  STUI.DecimalItem tuiEffectZoomDuration
           
protected  SFontIfc tuiFont
          The standard tui font - separate from gui so can reload on the fly
(package private)  STUI.MultiSetItem<java.lang.String> tuiGeneralSkyCulture
           
(package private)  STUI.MultiSetItem<java.lang.String> tuiGeneralSkyLocale
           
(package private)  STUI.IntegerItem tuiLocationAltitude
           
(package private)  STUI.DecimalItem tuiLocationLatitude
           
(package private)  STUI.DecimalItem tuiLocationLongitude
           
(package private) static STUI.Branch tuiRoot
           
(package private)  STUI.MultiSetItem<java.lang.String> tuiScriptsLocal
           
(package private)  STUI.MultiSetItem<java.lang.String> tuiScriptsRemoveable
           
(package private)  STUI.DecimalItem tuiStarLabelMaxMag
           
(package private)  STUI.DecimalItem tuiStarMagScale
           
(package private)  STUI.BooleanItem tuiStarsShow
           
(package private)  STUI.DecimalItem tuiStarsTwinkle
           
(package private)  STUI.MultiSetItem<java.lang.String> tuiTimeDisplayFormat
           
(package private)  TimeItem tuiTimePresetSkyTime
           
(package private)  TimeZoneItem tuiTimeSetTmz
           
(package private)  TimeItem tuiTimeSkyTime
           
(package private)  STUI.MultiSetItem<java.lang.String> tuiTimeStartupTime
           
(package private)  TimeZoneItem tzSelector
           
(package private) static int UI_BT
           
(package private) static int UI_PADDING
           
(package private) static int UI_SCRIPT_BAR
           
protected  StelUI.ButtonAction verticalSplitAction
           
(package private)  boolean waitOnLocation
           
 
Constructor Summary
StelUI(StelCore someCore, StelApp someApp)
           
 
Method Summary
(package private)  void autoCompleteSearchedObject()
           
(package private)  void btDecTimeSpeedCb()
           
(package private)  void btIncTimeSpeedCb()
           
(package private)  void btRealTimeSpeedCb()
           
(package private)  void btTimeNowCb()
           
(package private)  void cbEditScriptExecute()
           
(package private)  void cbEditScriptInOut()
           
(package private)  void cbEditScriptKey()
           
protected abstract  javax.swing.JFrame createConfigWindow()
           
 java.awt.Container createDesktop(IniFileParser conf, java.awt.Container someDesktop, javax.media.opengl.GLCanvas glCanvas)
           
(package private)  javax.swing.JToolBar createFlagButtons(IniFileParser conf)
          Create the button panel in the lower left corner
(package private)  StellariumComponent createHelpWindow()
           
(package private)  StellariumComponent createLicenceWindow()
          The window containing the info (licence)
(package private) abstract  StellariumComponent createSearchWindow()
           
(package private)  javax.swing.JToolBar createTimeControlButtons()
          Create the button panel in the lower right corner
(package private)  javax.swing.JLabel createTopBar()
           
protected abstract  void dialogCallback()
           
 void draw()
           
 void drawGravityUI()
           
(package private) abstract  void drawTUI()
          Display the tui
protected  void finalize()
           
 MapPicture getEarthMap()
           
 double getMouseCursorTimeout()
           
(package private)  java.lang.String getTitleWithAltitude()
           
 SFontIfc getTuiFont()
           
(package private)  void gotoSearchedObject()
           
 void guiUpdateWidgets(int deltaTime)
          Update changing values
(package private)  void helpWinHideBtCallback()
           
 void init_tui()
           
 void init(IniFileParser conf)
           
 boolean isFlagShowScriptBar()
           
 boolean isFlagShowSelectedObjectInfo()
           
 boolean isFlagShowTuiDateTime()
           
 boolean isFlagShowTuiMenu()
           
 boolean isFlagShowTuiShortObjInfo()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
           
(package private)  void SDL_ShowCursor(boolean b)
           
(package private)  void search_win_hideBtCallback()
           
(package private)  void setColorScheme(java.lang.String skinFile, java.lang.String section)
           
 void setFlagShowScriptBar(boolean flagShowScriptBar)
           
 void setFlagShowSelectedObjectInfo(boolean flagShowSelectedObjectInfo)
           
 void setFlagShowTuiDateTime(boolean flagShowTuiDateTime)
           
(package private)  void setFlagShowTuiMenu(boolean flag)
           
 void setFlagShowTuiShortObjInfo(boolean flagShowTuiShortObjInfo)
           
private  void setShowTopBar(boolean conf)
           
(package private)  void setTitleObservatoryName(java.lang.String name)
           
 void setTuiFont(SFontIfc sFontIfc)
           
 void showMessage(java.lang.String someMessage, int someTimeOut)
          draws a message window to display a message to user if timeout is zero, won't time out otherwise use miliseconds
 void tui_update_widgets()
           
(package private) abstract  void tuiUpdateIndependentWidgets()
          For widgets that aren't tied directly to current settings
(package private) abstract  void updateConfigForm()
           
(package private)  void updateInfoSelectString()
          Update the infos about the selected object in the TextLabel widget
(package private)  void updateTopBar()
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayTitleBar

private javax.swing.JComponent displayTitleBar

decimalFormat

public java.text.DecimalFormat decimalFormat

topBar

public javax.swing.JLabel topBar

UI_PADDING

static final int UI_PADDING
See Also:
Constant Field Values

UI_BT

static final int UI_BT
See Also:
Constant Field Values

UI_SCRIPT_BAR

static final int UI_SCRIPT_BAR
See Also:
Constant Field Values

lastJD

double lastJD

flagShowTuiMenu

protected boolean flagShowTuiMenu

core

protected StelCore core
The Main core can be accessed because StelUI is a friend class


app

protected StelApp app
The main application instance


initialized

boolean initialized

baseFont

protected SFontIfc baseFont
The standard font


courierFont

protected SFontIfc courierFont
The standard fixed size font


tuiFont

protected SFontIfc tuiFont
The standard tui font - separate from gui so can reload on the fly


baseTex

protected STexture baseTex
The standard fill texture


flipBaseTex

protected STexture flipBaseTex
The standard fill texture


texUp

protected STexture texUp
Up arrow texture


texDown

protected STexture texDown
Down arrow texture


flagShowTopBar

boolean flagShowTopBar

flagShowFps

protected boolean flagShowFps

flagShowTime

boolean flagShowTime

flagShowDate

boolean flagShowDate

flagShowAppName

boolean flagShowAppName

flagShowScriptBar

boolean flagShowScriptBar

flagShowFov

protected boolean flagShowFov

flagMenu

boolean flagMenu

flagHelp

boolean flagHelp

flagInfos

boolean flagInfos

flagConfig

boolean flagConfig

flagSearch

boolean flagSearch

flagShowSelectedObjectInfo

boolean flagShowSelectedObjectInfo

guiBaseColor

SColor guiBaseColor

guiTextColor

SColor guiTextColor

baseFontSize

float baseFontSize

baseFontName

java.lang.String baseFontName

baseCFontSize

float baseCFontSize

baseCFontName

java.lang.String baseCFontName

desktop

protected java.awt.Container desktop
The container which contains everything


opaqueGUI

boolean opaqueGUI

topBarDateLbl

protected java.lang.String topBarDateLbl
The top bar containing the Main infos (date, time, fps etc...)


topBarHourLbl

protected java.lang.String topBarHourLbl

topBarFpsLbl

protected java.lang.String topBarFpsLbl

topBarAppNameLbl

protected java.lang.String topBarAppNameLbl

topBarFOVLbl

protected java.lang.String topBarFOVLbl

btFlagCtr

protected javax.swing.JToolBar btFlagCtr
The container for the button


constellationDrawAction

protected StelUI.ButtonAction constellationDrawAction

btFlagConstellationDraw

protected javax.swing.JToggleButton btFlagConstellationDraw

constellationNameAction

protected StelUI.ButtonAction constellationNameAction

btFlagConstellationName

protected javax.swing.JToggleButton btFlagConstellationName

constellationArtAction

protected StelUI.ButtonAction constellationArtAction

btFlagConstellationArt

protected javax.swing.JToggleButton btFlagConstellationArt

azimuthGridAction

protected StelUI.ButtonAction azimuthGridAction

btFlagAzimuthGrid

protected javax.swing.JToggleButton btFlagAzimuthGrid

equatorGridAction

protected StelUI.ButtonAction equatorGridAction

btFlagEquatorGrid

protected javax.swing.JToggleButton btFlagEquatorGrid

groundAction

protected StelUI.ButtonAction groundAction

btFlagGround

protected javax.swing.JToggleButton btFlagGround

cardinalsAction

protected StelUI.ButtonAction cardinalsAction

btFlagCardinals

protected javax.swing.JToggleButton btFlagCardinals

atmosphereAction

protected StelUI.ButtonAction atmosphereAction

btFlagAtmosphere

protected javax.swing.JToggleButton btFlagAtmosphere

nebulaNameAction

protected StelUI.ButtonAction nebulaNameAction

btFlagNebulaName

protected javax.swing.JToggleButton btFlagNebulaName

helpAction

protected StelUI.ButtonAction helpAction

btFlagHelp

protected javax.swing.JToggleButton btFlagHelp

equatorialModeAction

protected StelUI.ButtonAction equatorialModeAction

btFlagEquatorialMode

protected javax.swing.JToggleButton btFlagEquatorialMode

configAction

protected StelUI.ButtonAction configAction

btFlagConfig

protected javax.swing.JToggleButton btFlagConfig

quitAction

protected StelUI.ButtonAction quitAction

btFlagQuit

protected StelUI.SButton btFlagQuit

searchAction

protected StelUI.ButtonAction searchAction

btFlagSearch

protected StelUI.SButton btFlagSearch

btScript

protected EditBox btScript

gotoAction

protected StelUI.ButtonAction gotoAction

btFlagGoto

protected StelUI.SButton btFlagGoto

horizontalSplitAction

protected StelUI.ButtonAction horizontalSplitAction

btFlipHorz

protected StelUI.SButton btFlipHorz

verticalSplitAction

protected StelUI.ButtonAction verticalSplitAction

btFlipVert

protected StelUI.SButton btFlipVert

chartVisionAction

protected StelUI.ButtonAction chartVisionAction

btFlagChart

protected javax.swing.JToggleButton btFlagChart

nightModeAction

protected StelUI.ButtonAction nightModeAction

btFlagNight

protected javax.swing.JToggleButton btFlagNight

btTimeControlCtr

protected javax.swing.JToolBar btTimeControlCtr
Time control buttons


decTimeAction

protected StelUI.ButtonAction decTimeAction

btDecTimeSpeed

protected StelUI.SButton btDecTimeSpeed

realTimeAction

protected StelUI.ButtonAction realTimeAction

btRealTimeSpeed

protected StelUI.SButton btRealTimeSpeed

incTimeAction

protected StelUI.ButtonAction incTimeAction

btIncTimeSpeed

protected StelUI.SButton btIncTimeSpeed

timeNowAction

protected StelUI.ButtonAction timeNowAction

btTimeNow

protected StelUI.SButton btTimeNow

btFlagHelpLbl

StelLabel btFlagHelpLbl
The dynamic information about the button under the mouse


btFlagTimeControlLbl

StelLabel btFlagTimeControlLbl

infoSelectCtr

StelContainer infoSelectCtr

infoSelectTxtlbl

TextLabel infoSelectTxtlbl
The JLabel displaying the infos about the selected object


licenceWin

StdBtWin licenceWin
The window containing the info (licence)


licenceTxtLbl

StelLabel licenceTxtLbl

helpWin

StdBtWin helpWin
The window containing the help info


helpTextLabel

TextLabel helpTextLabel

messageTxtLbl

javax.swing.JLabel messageTxtLbl
window for transient messages


configWin

protected javax.swing.JFrame configWin
The window managing the configuration


configTabCtr

protected javax.swing.JTabbedPane configTabCtr

searchWin

StdBtWin searchWin
The window managing the search - Tony


dialogWin

StdDlgWin dialogWin

starsCbx

protected javax.swing.JCheckBox starsCbx

starNamesCbx

protected javax.swing.JCheckBox starNamesCbx

maxMagStarName

protected javax.swing.JSpinner maxMagStarName

starTwinkleCbx

protected javax.swing.JCheckBox starTwinkleCbx

starTwinkleAmount

protected javax.swing.JSpinner starTwinkleAmount

constellationCbx

protected javax.swing.JCheckBox constellationCbx

constellationNameCbx

protected javax.swing.JCheckBox constellationNameCbx

selConstellationCbx

protected javax.swing.JCheckBox selConstellationCbx

nebulasCbx

protected CheckBox nebulasCbx

nebulasNamesCbx

protected javax.swing.JCheckBox nebulasNamesCbx

nebulasNoTextureCbx

protected javax.swing.JCheckBox nebulasNoTextureCbx

maxMagNebulaName

protected javax.swing.JSpinner maxMagNebulaName

planetsCbx

protected javax.swing.JCheckBox planetsCbx

planetsHintsCbx

protected javax.swing.JCheckBox planetsHintsCbx

moonX4Cbx

protected javax.swing.JCheckBox moonX4Cbx

equatorGridCbx

protected javax.swing.JCheckBox equatorGridCbx

azimuthGridCbx

protected javax.swing.JCheckBox azimuthGridCbx

equatorCbx

protected javax.swing.JCheckBox equatorCbx

eclipticCbx

protected javax.swing.JCheckBox eclipticCbx

groundCbx

protected javax.swing.JCheckBox groundCbx

cardinalCbx

protected javax.swing.JCheckBox cardinalCbx

atmosphereCbx

protected javax.swing.JCheckBox atmosphereCbx

fogCbx

protected javax.swing.JCheckBox fogCbx

waitOnLocation

boolean waitOnLocation

earthMap

protected MapPicture earthMap

lblMapLocation

javax.swing.JLabel lblMapLocation

lblMapPointer

javax.swing.JLabel lblMapPointer

latIncDec

protected javax.swing.JSpinner latIncDec

longIncDec

protected javax.swing.JSpinner longIncDec

altIncDec

javax.swing.JSpinner altIncDec

timeCurrent

protected TimeItem timeCurrent

systemTzCbx

CheckBox systemTzCbx

tzSelector

TimeZoneItem tzSelector

systemTzLbl2

protected javax.swing.JLabel systemTzLbl2

timeSpeedLbl2

protected javax.swing.JLabel timeSpeedLbl2

fisheyeProjectionCbx

protected LabeledCheckBox fisheyeProjectionCbx

diskViewportCbx

protected javax.swing.JCheckBox diskViewportCbx

screenSizeSl

protected javax.swing.JList screenSizeSl

isDragging

boolean isDragging

hasDragged

boolean hasDragged

previousX

int previousX

previousY

int previousY

nebula_edit

EditBox nebula_edit

star_edit

EditBox star_edit

constellation_edit

EditBox constellation_edit

planet_edit

EditBox planet_edit

lblSearchMessage

StelLabel lblSearchMessage

tuiRoot

static STUI.Branch tuiRoot

tuiLocationLatitude

STUI.DecimalItem tuiLocationLatitude

tuiLocationLongitude

STUI.DecimalItem tuiLocationLongitude

tuiLocationAltitude

STUI.IntegerItem tuiLocationAltitude

tuiTimeSetTmz

TimeZoneItem tuiTimeSetTmz

tuiTimeSkyTime

TimeItem tuiTimeSkyTime

tuiTimePresetSkyTime

TimeItem tuiTimePresetSkyTime

tuiTimeStartupTime

STUI.MultiSetItem<java.lang.String> tuiTimeStartupTime

tuiTimeDisplayFormat

STUI.MultiSetItem<java.lang.String> tuiTimeDisplayFormat

tuiGeneralSkyCulture

STUI.MultiSetItem<java.lang.String> tuiGeneralSkyCulture

tuiGeneralSkyLocale

STUI.MultiSetItem<java.lang.String> tuiGeneralSkyLocale

tuiStarsShow

STUI.BooleanItem tuiStarsShow

tuiStarLabelMaxMag

STUI.DecimalItem tuiStarLabelMaxMag

tuiStarsTwinkle

STUI.DecimalItem tuiStarsTwinkle

tuiStarMagScale

STUI.DecimalItem tuiStarMagScale

tuiEffectLandscape

STUI.MultiSetItem<java.lang.String> tuiEffectLandscape

tuiEffectPointObj

STUI.BooleanItem tuiEffectPointObj

tuiEffectZoomDuration

STUI.DecimalItem tuiEffectZoomDuration

tuiEffectManualZoom

STUI.BooleanItem tuiEffectManualZoom

tuiScriptsLocal

STUI.MultiSetItem<java.lang.String> tuiScriptsLocal

tuiScriptsRemoveable

STUI.MultiSetItem<java.lang.String> tuiScriptsRemoveable

flagScriptsRemoveableDiskMounted

boolean flagScriptsRemoveableDiskMounted
Is the removeable disk for scripts mounted?


tuiAdminLoadDefault

STUI.ActionConfirmItem tuiAdminLoadDefault

tuiAdminSaveDefault

STUI.ActionConfirmItem tuiAdminSaveDefault

tuiAdminUpdateMe

STUI.ActionItem tuiAdminUpdateMe

tuiAdminVOffset

STUI.IntegerItem tuiAdminVOffset

tuiAdminHOffset

STUI.IntegerItem tuiAdminHOffset

scriptDirectoryRead

boolean scriptDirectoryRead

mouseTimeLeft

double mouseTimeLeft
for cursor timeout (seconds)


mouseCursorTimeout

protected double mouseCursorTimeout
Seconds to hide cursor when not used. 0 means no timeout


flagEnableTuiMenu

protected boolean flagEnableTuiMenu

flagShowGravityUi

protected boolean flagShowGravityUi

flagShowTuiDateTime

protected boolean flagShowTuiDateTime

flagShowTuiShortObjInfo

protected boolean flagShowTuiShortObjInfo
Constructor Detail

StelUI

public StelUI(StelCore someCore,
              StelApp someApp)
       throws StellariumException
Throws:
StellariumException
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

init

public void init(IniFileParser conf)
          throws StellariumException
Throws:
StellariumException

setShowTopBar

private void setShowTopBar(boolean conf)

createDesktop

public java.awt.Container createDesktop(IniFileParser conf,
                                        java.awt.Container someDesktop,
                                        javax.media.opengl.GLCanvas glCanvas)

createConfigWindow

protected abstract javax.swing.JFrame createConfigWindow()

dialogCallback

protected abstract void dialogCallback()

showMessage

public void showMessage(java.lang.String someMessage,
                        int someTimeOut)
draws a message window to display a message to user if timeout is zero, won't time out otherwise use miliseconds


createTopBar

javax.swing.JLabel createTopBar()

updateTopBar

void updateTopBar()
            throws StellariumException
Throws:
StellariumException

createFlagButtons

javax.swing.JToolBar createFlagButtons(IniFileParser conf)
                                 throws StellariumException
Create the button panel in the lower left corner

Parameters:
conf - The configuration
Returns:
The created tool bar, populated with its buttons
Throws:
StellariumException

createTimeControlButtons

javax.swing.JToolBar createTimeControlButtons()
                                        throws StellariumException
Create the button panel in the lower right corner

Throws:
StellariumException

btDecTimeSpeedCb

void btDecTimeSpeedCb()

btIncTimeSpeedCb

void btIncTimeSpeedCb()

btRealTimeSpeedCb

void btRealTimeSpeedCb()

btTimeNowCb

void btTimeNowCb()

cbEditScriptInOut

void cbEditScriptInOut()

cbEditScriptKey

void cbEditScriptKey()

cbEditScriptExecute

void cbEditScriptExecute()
                   throws StellariumException
Throws:
StellariumException

createLicenceWindow

StellariumComponent createLicenceWindow()
The window containing the info (licence)


createHelpWindow

StellariumComponent createHelpWindow()

helpWinHideBtCallback

void helpWinHideBtCallback()

draw

public void draw()

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter

mouseWheelMoved

public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener

keyPressed

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

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

guiUpdateWidgets

public void guiUpdateWidgets(int deltaTime)
Update changing values

Parameters:
deltaTime -

updateInfoSelectString

void updateInfoSelectString()
Update the infos about the selected object in the TextLabel widget


setTitleObservatoryName

void setTitleObservatoryName(java.lang.String name)

getTitleWithAltitude

java.lang.String getTitleWithAltitude()

setColorScheme

void setColorScheme(java.lang.String skinFile,
                    java.lang.String section)
              throws StellariumException
Throws:
StellariumException

setFlagShowTuiMenu

void setFlagShowTuiMenu(boolean flag)

isFlagShowTuiMenu

public boolean isFlagShowTuiMenu()

getTuiFont

public SFontIfc getTuiFont()

getEarthMap

public MapPicture getEarthMap()

createSearchWindow

abstract StellariumComponent createSearchWindow()

search_win_hideBtCallback

void search_win_hideBtCallback()

autoCompleteSearchedObject

void autoCompleteSearchedObject()

gotoSearchedObject

void gotoSearchedObject()

init_tui

public void init_tui()

tui_update_widgets

public void tui_update_widgets()

drawGravityUI

public void drawGravityUI()

setTuiFont

public void setTuiFont(SFontIfc sFontIfc)

getMouseCursorTimeout

public double getMouseCursorTimeout()

isFlagShowSelectedObjectInfo

public boolean isFlagShowSelectedObjectInfo()

setFlagShowSelectedObjectInfo

public void setFlagShowSelectedObjectInfo(boolean flagShowSelectedObjectInfo)

isFlagShowTuiDateTime

public boolean isFlagShowTuiDateTime()

setFlagShowTuiDateTime

public void setFlagShowTuiDateTime(boolean flagShowTuiDateTime)

isFlagShowTuiShortObjInfo

public boolean isFlagShowTuiShortObjInfo()

setFlagShowTuiShortObjInfo

public void setFlagShowTuiShortObjInfo(boolean flagShowTuiShortObjInfo)

isFlagShowScriptBar

public boolean isFlagShowScriptBar()

setFlagShowScriptBar

public void setFlagShowScriptBar(boolean flagShowScriptBar)

tuiUpdateIndependentWidgets

abstract void tuiUpdateIndependentWidgets()
For widgets that aren't tied directly to current settings


drawTUI

abstract void drawTUI()
Display the tui


updateConfigForm

abstract void updateConfigForm()

SDL_ShowCursor

void SDL_ShowCursor(boolean b)