org.stellarium.ui
Class StelSdl
java.lang.Object
java.awt.event.MouseAdapter
org.stellarium.StelApp
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
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
|
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 |
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
StelSdl
public StelSdl()
throws StellariumException
- Throws:
StellariumException
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)
-
-