|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
org.stellarium.StelCore
public class StelCore
Main class for Stellarium.
Manage all the objects to be used in the program.
Nested Class Summary | |
---|---|
static class |
StelCore.FontParam
|
static class |
StelCore.MOUNT_MODE
|
Field Summary | |
---|---|
private ApplicationCallback |
applicationCallback
|
private ConstellationMgr
|
asterisms
Manage constellations (boundaries, names etc..) |
private StelAtmosphere |
atmosphere
Atmosphere |
private float |
autoMoveDuration
Duration of movement for the auto move to a selected object |
(package private) SkyGrid |
aziGrid
Azimutal grid |
(package private)
java.lang.String |
baseFontFile
The font file used by default during initialization |
(package private) Cardinals |
cardinalsPoints
Cardinals points |
(package private) SColor |
chartColor
? |
(package private) float |
constellationFontSize
size for constellation labels |
(package private) double |
deltaAlt
View movement |
(package private) double |
deltaAz
View movement |
(package private) double |
deltaFov
View movement |
(package private) SkyLine |
eclipticLine
Eclptic line |
(package private) SkyLine |
equatorLine
Celestial Equator line |
(package private) SkyGrid |
equGrid
Equatorial grid |
(package private) boolean |
firstTime
For init to track if reload or first time setup |
(package private) boolean |
flagEnableMoveKeys
|
(package private) boolean |
flagEnableZoomKeys
|
private boolean |
flagManualZoom
Define whether auto zoom can go further |
private static float |
FontSizeCardinalPoints
|
private static float |
FontSizeConstellations
|
private static float |
FontSizeGeneral
|
private static float |
FontSizeSolarSystem
|
(package private) HipStarMgr |
hipStars
Manage the hipparcos stars |
(package private) float |
initFov
Default viewing FOV |
(package private)
javax.vecmath.Point3d |
initViewPos
Default viewing direction |
(package private) Landscape |
landscape
The landscape ie the fog, the ground and "decor" |
protected LoadingBar |
loadingBar
|
private java.lang.String |
localeDir
The directory containing the translation .mo file |
(package private) SkyLine |
meridianLine
Meridian line |
(package private) MeteorMgr
|
meteors
Manage meteor showers |
(package private) MilkyWay
|
milkyWay
Our galaxy |
(package private) double |
moveSpeed
Speed of movement and zooming |
private Navigator |
navigation
Manage all navigation parameters, coordinate transformations etc.. |
(package private) NebulaMgr
|
nebulas
Manage the nebulas |
(package private) boolean |
objectPointerVisibility
Should selected object pointer be drawn |
private Observator |
observatory
Manage observer position and locales for its country |
private DefaultProjector
|
projection
Manage the projection mode and matrix |
(package private) ImageMgr
|
scriptImages
for script loaded image display |
private StelObject |
selectedObject
The selected object in stellarium |
(package private) float |
skyBrightness
Current sky Brightness in ? |
private java.lang.String |
skyCultureDir
The directory containing data for the culture used for constellations, etc. |
private SkyLocalizer |
skyloc
For sky cultures and locales |
private Translator |
skyTranslator
The translator used for astronomical object naming |
SolarSystem |
ssystem
Manage the solar system |
private TelescopeMgr
|
telescopeMgr
For managing connected telescopes |
private ToneReproductor
|
toneConverter
Tones conversion between stellarium world and display device |
(package private) double |
zoomSpeed
Speed of movement and zooming |
Constructor Summary | |
---|---|
StelCore(ApplicationCallback applicationCallback)
|
Method Summary | |
---|---|
void |
autoZoomIn(float moveDuration)
Go and zoom to the selected object. |
void |
autoZoomIn(float moveDuration,
boolean allowManualZoom)
|
void |
autoZoomOut(float moveDuration)
Unzoom and go to the init position |
void |
autoZoomOut(float moveDuration,
boolean full)
|
StelObject |
cleverFind(int x, int y)
Find in a "clever" way an object from its screen position |
(package private) StelObject |
cleverFind(javax.vecmath.Point3d v)
Find in a "clever" way an object from its equatorial position |
void |
close()
|
void |
dragView(int x1,
int y1, int x2, int y2)
Make the first screen position correspond to the second (useful for mouse dragging) |
(package private) double |
draw(int deltaTime)
Execute all the drawing functions |
private void |
drawChartBackground()
|
protected void |
finalize()
|
(package private) boolean |
findAndSelect(int x,
int y)
Find and select an object near given screen position |
boolean |
findAndSelect(javax.vecmath.Point3d pos)
Find and select an object near given equatorial position |
boolean |
findAndSelectI18n(java.lang.String nameI18n)
Find and select an object from its translated name |
double |
getAimFov()
If is currently zooming, return the target FOV, otherwise return current FOV |
float |
getAtmosphereFadeDuration()
Get atmosphere fade duration in s |
float |
getAutoMoveDuration()
Get automove duration in seconds |
SColor |
getColorAzimutalGrid()
|
SColor |
getColorCardinalPoints()
Get Cardinals Points color |
SColor |
getColorConstellationBoundaries()
|
SColor |
getColorConstellationLine()
Get constellation line color |
SColor |
getColorConstellationNames()
Get constellation names color |
SColor |
getColorEclipticLine()
|
SColor |
getColorEquatorGrid()
|
SColor |
getColorEquatorLine()
|
SColor |
getColorMeridianLine()
|
SColor |
getColorNebulaCircle()
|
SColor |
getColorNebulaLabels()
|
SColor |
getColorPlanetsNames()
|
SColor |
getColorPlanetsOrbits()
|
SColor |
getColorPlanetsTrails()
|
(package private) SColor |
getColorStarCircles()
|
(package private) SColor |
getColorStarNames()
|
double |
getConstellationArtFadeDuration()
Get constellation art intensity |
double |
getConstellationArtIntensity()
Get constellation art intensity |
private java.lang.String |
getCursorPos(int x,
int y)
|
java.lang.String |
getDataDir()
Get the name of the directory containing the data |
boolean |
getFlagAtmosphere()
Get flag for displaying Atmosphere |
boolean |
getFlagAzimutalGrid()
Get flag for displaying Azimutal Grid |
boolean |
getFlagBrightNebulae()
Get flag for displaying Nebulae as brigth |
boolean |
getFlagCardinalsPoints()
Get flag for displaying Cardinals Points |
boolean |
getFlagConstellationArt()
Get display flag of constellation art |
boolean |
getFlagConstellationBoundaries()
Get display flag of constellation boundaries |
boolean |
getFlagConstellationIsolateSelected()
Get whether selected constellation is drawn alone |
boolean |
getFlagConstellationLines()
Get display flag of constellation lines |
boolean |
getFlagConstellationNames()
Get display flag of constellation names. |
boolean |
getFlagEclipticLine()
Get flag for displaying Ecliptic Line |
boolean |
getFlagEquatorGrid()
Get flag for displaying Equatorial Grid |
boolean |
getFlagEquatorLine()
Get flag for displaying Equatorial Line |
boolean |
getFlagFog()
Get flag for displaying Fog |
boolean |
getFlagGravityLabels()
Get flag for enabling gravity labels |
boolean |
getFlagHasSelected()
Return whether an object is currently selected |
boolean |
getFlagLandscape()
Get flag for displaying Landscape |
boolean |
getFlagLightTravelTime()
|
boolean |
getFlagLockSkyPosition()
Set whether sky position is locked |
boolean |
getFlagManualAutoZoom()
Get whether auto zoom can go further than normal |
boolean |
getFlagMeridianLine()
Get flag for displaying Meridian Line |
boolean |
getFlagMilkyWay()
Get flag for displaying Milky Way |
boolean |
getFlagMoonScaled()
Get flag for displaying a scaled Moon |
boolean |
getFlagNebula()
Get flag for displaying Nebulae |
boolean |
getFlagNebulaDisplayNoTexture()
Get flag for displaying Nebulae without textures |
boolean |
getFlagNebulaHints()
Get flag for displaying Nebulae Hints |
boolean |
getFlagPlanets()
Get flag for displaying Planets |
boolean |
getFlagPlanetsHints()
Get flag for displaying Planets Hints |
boolean |
getFlagPlanetsOrbits()
Get flag for displaying Planets Orbits |
boolean |
getFlagPlanetsTrails()
Get flag for displaying Planets Trails |
boolean |
getFlagPointStar()
|
boolean |
getFlagStarName()
|
boolean |
getFlagStars()
|
(package private) boolean |
getFlagStarSciName()
|
boolean |
getFlagStarTwinkle()
|
(package private) boolean |
getFlagTelescopeName()
|
(package private) boolean |
getFlagTelescopes()
|
boolean |
getFlagTracking()
Get object tracking |
boolean |
getFlipHorz()
get/set horizontal/vertical image flip |
boolean |
getFlipVert()
|
void |
getFontForLocale(java.lang.String _locale,
StelCore.FontParam _font,
StelCore.FontParam _fixedFont)
TESTING font file and scaling to use for a given locale |
double |
getFov()
Get current FOV (in degree) |
ImageMgr
|
getImageMgr()
Return the current image manager which display users images |
(package private) boolean |
getIsTimeNow()
Get wether the current stellarium time is the real world time |
double |
getJDay()
Get the current date in Julian Day |
java.lang.String |
getLandscapeAuthorName()
|
java.lang.String |
getLandscapeDescription()
|
java.lang.String |
getLandscapeName()
|
LoadingBar |
getLoadingBar()
|
float |
getMaxMagStarName()
|
(package private) float |
getMaxMagStarSciName()
|
int |
getMeteorsRate()
Get Meteor Rate in number per hour |
float |
getMilkyWayIntensity()
Get Milky Way intensity |
float |
getMoonScale()
Get Moon scale |
StelCore.MOUNT_MODE
|
getMountMode()
Get current mount type |
Navigator |
getNavigation()
|
double |
getNebulaCircleScale()
Get Nebulae Hints circle scale |
float |
getNebulaMaxMagHints()
Get maximum magnitude at which nebulae hints are displayed |
Observator |
getObservatory()
Return the current observatory (as a object) |
java.lang.String |
getPlanetHashString()
For use by TUI |
double |
getPlanetsScale()
Get base planets display scaling factor |
DefaultProjector
|
getProjection()
|
java.lang.String |
getProjectionType()
Get the projection type |
StelObject |
getSelectedObject()
|
java.lang.String |
getSelectedObjectInfo()
Get a multiline String describing the currently selected object |
SColor |
getSelectedObjectInfoColor()
Get a color used to display info about the currently selected object |
java.lang.String |
getSelectedObjectShortInfo()
Get a 1 line String briefly describing the currently selected object |
java.lang.String |
getSkyCulture()
Get the current sky culture I18 name |
java.lang.String |
getSkyCultureDir()
|
java.lang.String |
getSkyCultureHash()
|
java.lang.String |
getSkyCultureListI18()
Get the I18 available sky culture names |
java.lang.String |
getSkyLanguage()
|
(package private) float |
getStarLimitingMag()
|
float |
getStarMagScale()
|
float |
getStarScale()
|
float |
getStarTwinkleAmount()
|
double |
getTimeSpeed()
Get time speed in JDay/sec |
Translator |
getTranslator()
|
int |
getViewportHeight()
Get viewport height |
int |
getViewportHorizontalOffset()
Get the horizontal viewport offset in pixels |
boolean |
getViewportMaskDisk()
Get whether a disk mask must be drawn over the viewport |
int |
getViewportPosX()
Get viewport X position |
int |
getViewportPosY()
Get viewport Y position |
int |
getViewportVerticalOffset()
Get the vertical viewport offset in pixels |
int |
getViewportWidth()
Get viewport width |
double |
getZoomSpeed()
|
void |
gotoSelectedObject()
Go to the selected object |
void |
initData(IniFileParser conf)
|
boolean |
initGL1(IniFileParser conf)
Load core data and initialize with default values |
boolean |
initGL2(IniFileParser conf)
|
boolean |
initGL3(IniFileParser conf)
|
void |
keyPressed(java.awt.event.KeyEvent keyEvent)
|
void |
keyReleased(java.awt.event.KeyEvent keyEvent)
|
void |
keyTyped(java.awt.event.KeyEvent keyEvent)
|
(package private) java.util.List<java.lang.String>
|
listMatchingObjectsI18n(java.lang.String objPrefix)
|
java.util.List<java.lang.String>
|
listMatchingObjectsI18n(java.lang.String objPrefix,
int maxNbItem)
Find and return the list of at most maxNbItem objects auto-completing the passed object I18n name |
boolean |
loadLandscape(java.util.Map<java.lang.String,java.lang.String> param)
Load a landscape based on a hash of parameters mirroring the landscape.ini file and make it the current landscape |
(package private) void |
loadObservatory()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Handle mouse clics |
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Handle mouse move |
void |
moveObserver(double lat,
double lon, double alt, int delay, java.lang.String name)
Move to a new latitude and longitude on home planet |
void |
panView(double delta_az,
double delta_alt)
Move view in alt/az (or equatorial if in that mode) coordinates |
void |
printGravity(SFontIfc font,
float x, float y, java.lang.String str)
Print the passed String so that it is oriented in the drection of the gravity |
void |
printGravity(SFontIfc font,
float x, float y, java.lang.String str, boolean speedOptimize, float xshift, float yshift)
|
void |
repaint()
|
private StelObject |
searchByNameI18n(java.lang.String name)
Find any kind of object by the name |
private boolean |
selectObject(StelObject obj)
Select passed object |
boolean |
selectObject(java.lang.String type,
java.lang.String id)
Find and select an object based on selection type and standard name or number |
void |
setAtmosphereFadeDuration(float f)
Set atmosphere fade duration in s |
void |
setAutoMoveDuration(float f)
Set automove duration in seconds |
void |
setColorAzimutalGrid(SColor v)
|
void |
setColorCardinalPoints(SColor v)
Set Cardinals Points color |
void |
setColorConstellationBoundaries(SColor v)
|
void |
setColorConstellationLine(SColor v)
Set constellation line color |
void |
setColorConstellationNames(SColor v)
Set constellation names color |
void |
setColorEclipticLine(SColor v)
|
void |
setColorEquatorGrid(SColor v)
|
void |
setColorEquatorLine(SColor v)
|
void |
setColorMeridianLine(SColor v)
|
void |
setColorNebulaCircle(SColor v)
|
void |
setColorNebulaLabels(SColor v)
|
void |
setColorPlanetsNames(SColor v)
|
void |
setColorPlanetsOrbits(SColor v)
|
void |
setColorPlanetsTrails(SColor v)
|
(package private) void |
setColorScheme(IniFileParser conf,
java.lang.String section)
Please keep saveCurrentSettings up to date with any new color settings added here |
(package private) void |
setColorStarCircles(SColor v)
|
(package private) void |
setColorStarNames(SColor v)
|
void |
setConstellationArtFadeDuration(float f)
Set constellation art intensity |
void |
setConstellationArtIntensity(float f)
Set constellation art intensity |
void |
setFlagAtmosphere(boolean b)
Set flag for displaying Atmosphere |
void |
setFlagAzimutalGrid(boolean b)
Set flag for displaying Azimutal Grid |
void |
setFlagBrightNebulae(boolean b)
Set flag for displaying Nebulae as bright |
void |
setFlagCardinalsPoints(boolean b)
Set flag for displaying Cardinals Points |
void |
setFlagConstellationArt(boolean b)
Set display flag of constellation art |
void |
setFlagConstellationBoundaries(boolean b)
Set display flag of constellation boundaries |
void |
setFlagConstellationIsolateSelected(boolean b)
Set whether selected constellation is drawn alone |
void |
setFlagConstellationLines(boolean b)
Set display flag of constellation lines |
void |
setFlagConstellationNames(boolean b)
Set display flag of constellation names |
void |
setFlagEclipticLine(boolean b)
Set flag for displaying Ecliptic Line |
void |
setFlagEquatorGrid(boolean b)
Set flag for displaying Equatorial Grid |
void |
setFlagEquatorLine(boolean b)
Set flag for displaying Equatorial Line |
void |
setFlagFog(boolean b)
Set flag for displaying Fog |
void |
setFlagGravityLabels(boolean b)
Set flag for enabling gravity labels |
void |
setFlagLandscape(boolean b)
Set flag for displaying Landscape |
void |
setFlagLightTravelTime(boolean b)
|
void |
setFlagLockSkyPosition(boolean b)
Set whether sky position is to be locked |
void |
setFlagManualAutoZoom(boolean b)
Set whether auto zoom can go further than normal |
void |
setFlagMeridianLine(boolean b)
Set flag for displaying Meridian Line |
void |
setFlagMilkyWay(boolean b)
Set flag for displaying Milky Way |
void |
setFlagMoonScaled(boolean b)
Set flag for displaying a scaled Moon |
void |
setFlagNebula(boolean b)
Set flag for displaying Nebulae |
void |
setFlagNebulaDisplayNoTexture(boolean b)
Set flag for displaying Nebulae even without textures |
void |
setFlagNebulaHints(boolean b)
Set flag for displaying Nebulae Hints |
void |
setFlagPlanets(boolean b)
Set flag for displaying Planets |
void |
setFlagPlanetsHints(boolean b)
Set flag for displaying Planets Hints |
void |
setFlagPlanetsOrbits(boolean b)
Set flag for displaying Planets Orbits |
void |
setFlagPlanetsTrails(boolean b)
Set flag for displaying Planets Trails |
void |
setFlagPointStar(boolean b)
|
void |
setFlagSelectedObjectPointer(boolean b)
Set whether a pointer is to be drawn over selected object |
void |
setFlagStarName(boolean b)
|
void |
setFlagStars(boolean b)
|
(package private) void |
setFlagStarSciName(boolean b)
|
void |
setFlagStarTwinkle(boolean b)
|
(package private) void |
setFlagTelescopeName(boolean b)
|
(package private) void |
setFlagTelescopes(boolean b)
|
void |
setFlagTracking(boolean b)
Set object tracking |
void |
setFlipHorz(boolean flip)
|
void |
setFlipVert(boolean flip)
|
void |
setFov(double f)
Set the current FOV (in degree) |
boolean |
setHomePlanet(java.lang.String planet)
|
void |
setJDay(double JD)
Set the current date in Julian Day |
boolean |
setLandscape(java.lang.String newLandscapeName)
Set the landscape |
void |
setMaxFov(double f)
Set the maximum FOV (in degree) |
void |
setMaximizedViewport(int screenW,
int screenH)
Maximize viewport according to passed screen values |
void |
setMaxMagStarName(float f)
|
(package private) void |
setMaxMagStarSciName(float f)
|
void |
setMeteorsRate(int f)
Set Meteor Rate in number per hour |
void |
setMilkyWayIntensity(float f)
Set Milky Way intensity |
void |
setMoonScale(float f)
Set Moon scale |
void |
setMountMode(StelCore.MOUNT_MODE m)
Set current mount type |
void |
setNebulaCircleScale(float f)
Set Nebulae Hints circle scale |
void |
setNebulaMaxMagHints(float f)
Set maximum magnitude at which nebulae hints are displayed |
void |
setPlanetsScale(double f)
Set base planets display scaling factor |
void |
setPlanetsSelected(java.lang.String englishName)
|
void |
setProjectionType(java.lang.String sptype)
Set the projection type |
boolean |
setSkyCulture(java.lang.String cultureName)
Set the current sky culture according to passed name |
(package private) boolean |
setSkyCultureDir(java.lang.String cultureDir)
Set the current sky culture from the passed directory |
void |
setSkyLanguage(java.lang.String newSkyLocaleName)
|
void |
setSquareViewport(int screenW,
int screenH, int hoffset, int voffset)
Set a centered squared viewport with passed vertical and horizontal offset |
(package private) void |
setStarLimitingMag(float f)
|
void |
setStarMagScale(float f)
|
void |
setStarScale(float f)
|
void |
setStarTwinkleAmount(float f)
|
(package private) void |
setTimeNow()
Set stellarium time to current real world time |
void |
setTimeSpeed(double ts)
Set time speed in JDay/sec |
void |
setViewportHorizontalOffset(int hoff)
Set the horizontal viewport offset in pixels |
void |
setViewportMaskDisk()
Set whether a disk mask must be drawn over the viewport |
void |
setViewportMaskNone()
Set whether no mask must be drawn over the viewport |
(package private) void |
setViewportSize(int w,
int h)
Set the viewport width and height |
void |
setViewportVerticalOffset(int voff)
Set the vertical viewport offset in pixels |
void |
startPlanetsTrails(boolean b)
Start/stop displaying planets Trails |
void |
telescopeGoto(int nr)
|
void |
toggleMountMode()
Toggle current mount mode between equatorial and altazimutal |
(package private) void |
turnDown(boolean s)
|
(package private) void |
turnLeft(boolean s)
|
(package private) void |
turnRight(boolean s)
|
(package private) void |
turnUp(boolean s)
|
void |
unSelect()
Does not deselect selected constellation |
(package private) void |
update(int deltaTime)
Update all the objects in function of the time |
void |
updateMove(int deltaTime)
Increment/decrement smoothly the vision field and position |
void |
zoomIn(boolean s)
|
void |
zoomOut(boolean s)
|
void |
zoomTo(double aimFov)
Zoom to the given FOV (in degree) |
void |
zoomTo(double aimFOV,
double moveDuration)
|
void |
zoomTo(double aimFov,
float moveDuration)
|
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 |
---|
private static final float FontSizeCardinalPoints
private static final float FontSizeSolarSystem
private static final float FontSizeGeneral
private static final float FontSizeConstellations
protected LoadingBar loadingBar
private ApplicationCallback applicationCallback
java.lang.String baseFontFile
private java.lang.String localeDir
private java.lang.String skyCultureDir
private Translator skyTranslator
private Navigator navigation
private Observator observatory
private DefaultProjector projection
private StelObject selectedObject
HipStarMgr hipStars
private ConstellationMgr asterisms
NebulaMgr nebulas
public SolarSystem ssystem
private StelAtmosphere atmosphere
SkyGrid equGrid
SkyGrid aziGrid
SkyLine equatorLine
SkyLine eclipticLine
SkyLine meridianLine
Cardinals cardinalsPoints
MilkyWay milkyWay
MeteorMgr meteors
Landscape landscape
private ToneReproductor toneConverter
private SkyLocalizer skyloc
ImageMgr scriptImages
private TelescopeMgr telescopeMgr
float skyBrightness
boolean objectPointerVisibility
boolean flagEnableZoomKeys
boolean flagEnableMoveKeys
double deltaFov
double deltaAlt
double deltaAz
double moveSpeed
double zoomSpeed
float initFov
javax.vecmath.Point3d initViewPos
private boolean flagManualZoom
SColor chartColor
private float autoMoveDuration
boolean firstTime
float constellationFontSize
Constructor Detail |
---|
public StelCore(ApplicationCallback applicationCallback) throws StellariumException
StellariumException
Method Detail |
---|
public void repaint()
void setFlagTelescopes(boolean b)
boolean getFlagTelescopes()
void setFlagTelescopeName(boolean b)
boolean getFlagTelescopeName()
public void telescopeGoto(int nr)
public void close()
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public LoadingBar getLoadingBar()
public void initData(IniFileParser conf) throws StellariumException
StellariumException
public boolean initGL1(IniFileParser conf) throws StellariumException
conf
- The configuration source to load from
StellariumException
public boolean initGL2(IniFileParser conf) throws StellariumException
StellariumException
public boolean initGL3(IniFileParser conf) throws StellariumException
StellariumException
void update(int deltaTime) throws StellariumException
deltaTime
-
StellariumException
double draw(int deltaTime) throws StellariumException
deltaTime
-
StellariumException
public boolean setLandscape(java.lang.String newLandscapeName) throws StellariumException
StellariumException
public boolean loadLandscape(java.util.Map<java.lang.String,java.lang.String> param) throws StellariumException
StellariumException
void setViewportSize(int w, int h)
private StelObject searchByNameI18n(java.lang.String name)
name
-
public boolean findAndSelectI18n(java.lang.String nameI18n)
nameI18n
- the case sensitive object translated name
public boolean selectObject(java.lang.String type, java.lang.String id) throws StellariumException
StellariumException
public boolean findAndSelect(javax.vecmath.Point3d pos)
boolean findAndSelect(int x, int y)
StelObject cleverFind(javax.vecmath.Point3d v)
public StelObject cleverFind(int x, int y)
x
-
y
-
public void autoZoomIn(float moveDuration)
moveDuration
-
public void autoZoomIn(float moveDuration, boolean allowManualZoom)
public void autoZoomOut(float moveDuration)
moveDuration
-
public void autoZoomOut(float moveDuration, boolean full)
public boolean setSkyCulture(java.lang.String cultureName) throws StellariumException
StellariumException
boolean setSkyCultureDir(java.lang.String cultureDir) throws StellariumException
StellariumException
public void setSkyLanguage(java.lang.String newSkyLocaleName) throws StellariumException
newSkyLocaleName
- The name of the locale (e.g fr) to use for sky object labels
StellariumException
public Translator getTranslator()
void setColorScheme(IniFileParser conf, java.lang.String section) throws StellariumException
StellariumException
public SColor getSelectedObjectInfoColor()
private void drawChartBackground()
private java.lang.String getCursorPos(int x, int y)
public void setProjectionType(java.lang.String sptype) throws StellariumException
StellariumException
public void setFlipHorz(boolean flip)
public void setFlipVert(boolean flip)
void turnRight(boolean s)
void turnLeft(boolean s)
void turnUp(boolean s)
void turnDown(boolean s)
public void zoomIn(boolean s)
public void zoomOut(boolean s)
public void dragView(int x1, int y1, int x2, int y2)
public void updateMove(int deltaTime)
deltaTime
-
public boolean setHomePlanet(java.lang.String planet)
public java.lang.String getPlanetHashString()
void setTimeNow()
boolean getIsTimeNow()
private boolean selectObject(StelObject obj)
obj
- - to select
java.util.List<java.lang.String> listMatchingObjectsI18n(java.lang.String objPrefix)
public java.util.List<java.lang.String> listMatchingObjectsI18n(java.lang.String objPrefix, int maxNbItem)
objPrefix
- the case insensitive first letters of the searched object
maxNbItem
- the maximum number of returned object names
public void getFontForLocale(java.lang.String _locale, StelCore.FontParam _font, StelCore.FontParam _fixedFont) throws StellariumException
StellariumException
public void setFlagTracking(boolean b)
public void setFlagStars(boolean b)
public boolean getFlagStars()
public void setFlagStarName(boolean b)
public boolean getFlagStarName()
void setFlagStarSciName(boolean b)
boolean getFlagStarSciName()
public void setFlagStarTwinkle(boolean b)
public boolean getFlagStarTwinkle()
public void setFlagPointStar(boolean b)
public boolean getFlagPointStar()
public void setMaxMagStarName(float f)
public float getMaxMagStarName()
void setMaxMagStarSciName(float f)
float getMaxMagStarSciName()
public void setStarScale(float f)
public float getStarScale()
public void setStarMagScale(float f)
public float getStarMagScale()
public void setStarTwinkleAmount(float f)
public float getStarTwinkleAmount()
void setStarLimitingMag(float f)
float getStarLimitingMag()
SColor getColorStarNames()
SColor getColorStarCircles()
void setColorStarNames(SColor v)
void setColorStarCircles(SColor v)
public java.lang.String getDataDir()
public java.lang.String getSkyCultureDir()
public java.lang.String getSkyCulture()
public java.lang.String getSkyCultureListI18()
public java.lang.String getSkyCultureHash()
public java.lang.String getSkyLanguage()
public void setTimeSpeed(double ts)
public double getTimeSpeed()
public void setJDay(double JD)
public double getJDay()
public boolean getFlagTracking()
public void setFlagLockSkyPosition(boolean b)
public boolean getFlagLockSkyPosition()
public void setMountMode(StelCore.MOUNT_MODE m)
public StelCore.MOUNT_MODE getMountMode()
public void toggleMountMode()
public void gotoSelectedObject()
public void panView(double delta_az, double delta_alt)
public void setAutoMoveDuration(float f)
public float getAutoMoveDuration()
public void zoomTo(double aimFov)
public void zoomTo(double aimFov, float moveDuration)
public double getFov()
public double getAimFov()
public void setFov(double f)
public void setMaxFov(double f)
public void setFlagManualAutoZoom(boolean b)
public boolean getFlagManualAutoZoom()
public boolean getFlagHasSelected()
public void unSelect()
public void setFlagSelectedObjectPointer(boolean b)
public java.lang.String getSelectedObjectInfo()
public java.lang.String getSelectedObjectShortInfo()
public void setFlagConstellationLines(boolean b)
public boolean getFlagConstellationLines()
public void setFlagConstellationArt(boolean b)
public boolean getFlagConstellationArt()
public void setFlagConstellationNames(boolean b)
b
- If constellation names must be displayed.
public boolean getFlagConstellationNames()
public void setFlagConstellationBoundaries(boolean b)
public boolean getFlagConstellationBoundaries()
public SColor getColorConstellationBoundaries()
public void setConstellationArtIntensity(float f)
public double getConstellationArtIntensity()
public void setConstellationArtFadeDuration(float f)
public double getConstellationArtFadeDuration()
public void setFlagConstellationIsolateSelected(boolean b)
public boolean getFlagConstellationIsolateSelected()
public SColor getColorConstellationLine()
public void setColorConstellationLine(SColor v)
public SColor getColorConstellationNames()
public void setColorConstellationNames(SColor v)
public void setFlagPlanets(boolean b)
public boolean getFlagPlanets()
public void setFlagPlanetsTrails(boolean b)
public boolean getFlagPlanetsTrails()
public void setFlagPlanetsHints(boolean b)
public boolean getFlagPlanetsHints()
public void setFlagPlanetsOrbits(boolean b)
public boolean getFlagPlanetsOrbits()
public void setFlagLightTravelTime(boolean b)
public boolean getFlagLightTravelTime()
public SColor getColorPlanetsOrbits()
public SColor getColorPlanetsNames()
public void startPlanetsTrails(boolean b)
public SColor getColorPlanetsTrails()
public void setPlanetsScale(double f)
public double getPlanetsScale()
public void setPlanetsSelected(java.lang.String englishName)
englishName
- The planet name or "" to select no planet
public void setFlagMoonScaled(boolean b)
public boolean getFlagMoonScaled()
public void setMoonScale(float f)
public float getMoonScale()
public void setFlagAzimutalGrid(boolean b)
public boolean getFlagAzimutalGrid()
public SColor getColorAzimutalGrid()
public void setFlagEquatorGrid(boolean b)
public boolean getFlagEquatorGrid()
public SColor getColorEquatorGrid()
public void setFlagEquatorLine(boolean b)
public boolean getFlagEquatorLine()
public SColor getColorEquatorLine()
public void setFlagEclipticLine(boolean b)
public boolean getFlagEclipticLine()
public SColor getColorEclipticLine()
public void setFlagMeridianLine(boolean b)
public boolean getFlagMeridianLine()
public SColor getColorMeridianLine()
public void setFlagCardinalsPoints(boolean b)
public boolean getFlagCardinalsPoints()
public void setColorCardinalPoints(SColor v)
public SColor getColorCardinalPoints()
public void setColorConstellationBoundaries(SColor v)
public void setColorPlanetsOrbits(SColor v)
public void setColorPlanetsNames(SColor v)
public void setColorPlanetsTrails(SColor v)
public void setColorAzimutalGrid(SColor v)
public void setColorEquatorGrid(SColor v)
public void setColorEquatorLine(SColor v)
public void setColorEclipticLine(SColor v)
public void setColorMeridianLine(SColor v)
public void setColorNebulaLabels(SColor v)
public void setColorNebulaCircle(SColor v)
public void setViewportHorizontalOffset(int hoff)
public int getViewportHorizontalOffset()
public void setViewportVerticalOffset(int voff)
public int getViewportVerticalOffset()
public void setMaximizedViewport(int screenW, int screenH)
public void setSquareViewport(int screenW, int screenH, int hoffset, int voffset)
public void setViewportMaskDisk()
public boolean getViewportMaskDisk()
public void setViewportMaskNone()
public java.lang.String getProjectionType() throws StellariumException
StellariumException
public boolean getFlipHorz()
public boolean getFlipVert()
public void setFlagGravityLabels(boolean b)
public boolean getFlagGravityLabels()
public int getViewportWidth()
public int getViewportHeight()
public int getViewportPosX()
public int getViewportPosY()
public void printGravity(SFontIfc font, float x, float y, java.lang.String str)
public void printGravity(SFontIfc font, float x, float y, java.lang.String str, boolean speedOptimize, float xshift, float yshift)
public void setFlagLandscape(boolean b)
public boolean getFlagLandscape()
public void setFlagFog(boolean b)
public boolean getFlagFog()
public void setFlagAtmosphere(boolean b)
public boolean getFlagAtmosphere()
public void setAtmosphereFadeDuration(float f)
public float getAtmosphereFadeDuration()
public void setFlagMilkyWay(boolean b)
public boolean getFlagMilkyWay()
public void setMilkyWayIntensity(float f)
public float getMilkyWayIntensity()
public void setFlagNebula(boolean b)
public boolean getFlagNebula()
public void setFlagNebulaHints(boolean b)
public boolean getFlagNebulaHints()
public void setNebulaCircleScale(float f)
public double getNebulaCircleScale()
public void setFlagBrightNebulae(boolean b)
public boolean getFlagBrightNebulae()
public void setNebulaMaxMagHints(float f)
public float getNebulaMaxMagHints()
public void setFlagNebulaDisplayNoTexture(boolean b)
public boolean getFlagNebulaDisplayNoTexture()
public SColor getColorNebulaLabels()
public SColor getColorNebulaCircle()
public Observator getObservatory()
public void moveObserver(double lat, double lon, double alt, int delay, java.lang.String name)
public void setMeteorsRate(int f)
public int getMeteorsRate()
public ImageMgr getImageMgr()
public double getZoomSpeed()
public java.lang.String getLandscapeName()
public java.lang.String getLandscapeAuthorName()
public java.lang.String getLandscapeDescription()
void loadObservatory()
public Navigator getNavigation()
public DefaultProjector getProjection()
public StelObject getSelectedObject()
public void zoomTo(double aimFOV, double moveDuration)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class java.awt.event.MouseAdapter
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void keyTyped(java.awt.event.KeyEvent keyEvent)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent keyEvent)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent keyEvent)
keyReleased
in interface java.awt.event.KeyListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |