org.stellarium.ui
Class StelSdl

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.stellarium.StelApp
          extended by org.stellarium.ui.StelSdl
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.media.opengl.GLEventListener, ApplicationCallback

public class StelSdl
extends StelApp
implements javax.media.opengl.GLEventListener

See Also:
stel_sdl.cpp

Nested Class Summary
 
Nested classes/interfaces inherited from class org.stellarium.StelApp
StelApp.DATE_FORMAT, StelApp.DRAWMODE, StelApp.TIME_FORMAT, StelApp.TZ_FORMAT
 
Field Summary
(package private)  java.awt.Cursor cursor
           
private  long didIt
           
private  javax.media.opengl.GLCanvas glCanvas
           
private  javax.swing.JFrame jFrame
           
(package private)  long lastCount
          Used For The Tick Counter
(package private)  long tickCount
          Used For The Tick Counter
 
Fields inherited from class org.stellarium.StelApp
initialized, screenH, screenW
 
Constructor Summary
StelSdl()
           
 
Method Summary
(package private)  java.awt.Cursor createCursor(char[][] image)
           
 void display(javax.media.opengl.GLAutoDrawable drawable)
           
 void displayChanged(javax.media.opengl.GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged)
           
private  void draw()
           
 void init(javax.media.opengl.GLAutoDrawable drawable)
           
 void initSDL(int w, int h, int bbpMode, boolean fullScreen)
           
 void orderRepaint()
           
 void reshape(javax.media.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
           
(package private)  void resizeGL(int w, int h)
           
 void startMainLoop()
          Start the main loop until the end of the execution
private  void update()
           
 
Methods inherited from class org.stellarium.StelApp
draw, getAppLanguage, getCommander, getConf, getCore, getCustomTzName, getDateFormatStr, getFps, getGMTShift, getGMTShift, getISO8601TimeLocal, getMouseCursorTimeout, getMouseZoom, getPresetSkyTime, getPrintableDateLocal, getPrintableDateUTC, getPrintableTimeLocal, getPrintableTimeUTC, getScripts, getSelectedScript, getStartupTimeMode, getTempTimeVelocity, getTimeFormatStr, getTimeMultiplier, getUi, getVideoModeList, getViewPortDistorterType, getVisionModeChart, getVisionModeNight, init, initData, initFromGLInit, isFlagTimePause, isVisionModeNormal, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseMoved, playStartupScript, quit, recordCommand, restoreFrom2DfullscreenProjection, saveCurrentConfig, set2DfullscreenProjection, setAppLanguage, setCustomTimezone, setCustomTzName, setDateFormatStr, setFlagTimePause, setGMTShift, setPresetSkyTime, setSelectedScript, setSelectedScriptDirectory, setStartupTimeMode, setTempTimeVelocity, setTimeFormatStr, setTimeMultiplier, setViewPortDistorterType, setVisionModeChart, setVisionModeNight, setVisionModeNormal, update
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tickCount

long tickCount
Used For The Tick Counter


lastCount

long lastCount
Used For The Tick Counter


cursor

java.awt.Cursor cursor

jFrame

private javax.swing.JFrame jFrame

glCanvas

private javax.media.opengl.GLCanvas glCanvas

didIt

private long didIt
Constructor Detail

StelSdl

public StelSdl()
        throws StellariumException
Throws:
StellariumException
Method Detail

initSDL

public void initSDL(int w,
                    int h,
                    int bbpMode,
                    boolean fullScreen)
Specified by:
initSDL in class StelApp

startMainLoop

public void startMainLoop()
Description copied from class: StelApp
Start the main loop until the end of the execution

Specified by:
startMainLoop in class StelApp

resizeGL

void resizeGL(int w,
              int h)

init

public void init(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
init in interface javax.media.opengl.GLEventListener

reshape

public void reshape(javax.media.opengl.GLAutoDrawable drawable,
                    int x,
                    int y,
                    int width,
                    int height)
Specified by:
reshape in interface javax.media.opengl.GLEventListener

display

public void display(javax.media.opengl.GLAutoDrawable drawable)
Specified by:
display in interface javax.media.opengl.GLEventListener

draw

private void draw()

update

private void update()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

displayChanged

public void displayChanged(javax.media.opengl.GLAutoDrawable drawable,
                           boolean modeChanged,
                           boolean deviceChanged)
Specified by:
displayChanged in interface javax.media.opengl.GLEventListener

orderRepaint

public void orderRepaint()
Specified by:
orderRepaint in interface ApplicationCallback

createCursor

java.awt.Cursor createCursor(char[][] image)