|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jview.JImageComponent
jview.JAntarctica
stella.jview.JAntarcticaNight
public class JAntarcticaNight
We display an image of the earth with the current day-night boundary overlayed.
| Nested Class Summary | |
|---|---|
static class |
JAntarcticaNight.Show
Shows the earth in a mercator projection with the current day/night terminator. |
| Nested classes/interfaces inherited from class jview.JImageComponent |
|---|
JImageComponent.Display |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private static double |
DEFDAYTWILIGHT
The default twilight border for bright twilight. |
private static double |
DEFNIGHTTWILIGHT
The default twilight border for pitch black. |
private static long |
DEFREFRESH
The default refresh interval in ms. |
static String |
KEY_ACCELERATE
If artificial advances desired, use this multiplier. |
static String |
KEY_DAYTWILIGHT
The sol-height border between night and twilight. |
static String |
KEY_FORDATE
If not for current time, but for specific. |
static String |
KEY_MERIDIAN
If the central meridian is different than zero. |
static String |
KEY_NIGHTTWILIGHT
The sol-height border between night and twilight. |
static String |
KEY_PROJECTION
The cylindrical projection of the map, class name. |
static String |
KEY_REFRESH
The refresh interval in ms. |
static String |
KEY_WORLD
The map resource to display, an image of the earth. |
private Longitude |
lambda
Longitude in antarctica. |
private Time |
now
Time instance for artificial advances. |
private Latitude |
phi
Latititude in antarctica. |
private SolHeight |
solh
Solar position. |
| Fields inherited from class jview.JAntarctica |
|---|
KEY_ANTARCTICA, KEY_RADIUS, KEY_XORIGIN, KEY_YORIGIN |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JAntarcticaNight(PropertyBearing info)
Constructs a new night earth giving its properties. |
|
| Method Summary | |
|---|---|
long |
getRefreshInterval()
The refresh interval is a property. |
void |
init()
Initializes additionally the parameters needed. |
boolean |
isFixedRate()
We do not want fixed rate, merely act like a cursor. |
boolean |
isRefreshNeeded()
We only want updates if we are visible. |
void |
paintComponent(Graphics g)
Paints the individual bars of twilight and night onto the component using x-or mode. |
void |
refresh()
On refresh, we repaint. |
void |
setComposedProperties(PropertyBearing prop)
Sets the proberties of the earth and defailts colors. |
| Methods inherited from class jview.JAntarctica |
|---|
getComposedProperties, getGeography, getPixel |
| Methods inherited from class jview.JImageComponent |
|---|
createBufferedImage, getImage, getPreferredSize, setImage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_WORLD
public static final String KEY_PROJECTION
public static final String KEY_MERIDIAN
public static final String KEY_NIGHTTWILIGHT
public static final String KEY_DAYTWILIGHT
public static final String KEY_REFRESH
public static final String KEY_FORDATE
public static final String KEY_ACCELERATE
private static final double DEFNIGHTTWILIGHT
private static final double DEFDAYTWILIGHT
private static final long DEFREFRESH
private SolHeight solh
private Longitude lambda
private Latitude phi
private Time now
| Constructor Detail |
|---|
public JAntarcticaNight(PropertyBearing info)
| Method Detail |
|---|
public void setComposedProperties(PropertyBearing prop)
setComposedProperties in interface PropertyAwaresetComposedProperties in class JAntarcticapublic void init()
init in interface Initializableinit in class JAntarcticapublic void paintComponent(Graphics g)
paintComponent in class JImageComponentpublic boolean isRefreshNeeded()
isRefreshNeeded in interface ConditionalRefreshingpublic long getRefreshInterval()
getRefreshInterval in interface Refreshingpublic void refresh()
refresh in interface Refreshingpublic boolean isFixedRate()
isFixedRate in interface RefreshingTimer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||